Skip to content

Commit

Permalink
[update] add cruby process text to process warmup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmf-san committed Jun 8, 2024
1 parent d5298d4 commit e204dfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions refm/api/src/_builtin/Process
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@ Process.wait2 # => [70024, #<Process::Status: pid 70024 exit 0>]

アプリケーションがプリフォークモデルでデプロイされる場合は、最初のフォークが行なわれる前に元のプロセスで呼び出しされることが推奨されます。
本メソッドが行う最適化は実装依存であり、将来的に予告なく変更される可能性があります。
CRubyでは、本メソッドは次のようにメジャーGCを実行します。
(1) ヒープを圧縮します
(2) 残存する全てのオブジェクトを古い世代に昇格します
(3) 全ての文字列のコーダレンジを事前計算します
(4) すべての空のヒープページを解放し、解放したページ数だけ割当可能なページカウンターを増分します
(5) 空のmallocページを解放するためにmalloc_trimを呼び出します
#@end

#@since 1.9.1
Expand Down

0 comments on commit e204dfa

Please sign in to comment.