Set JIT maturity to 100 once rate of TC increase is too small
commite86332ecb7c4fc9530ee389a647c0e028ed46454
authorGuilherme Ottoni <ottoni@fb.com>
Tue, 9 Jan 2018 22:07:51 +0000 (9 14:07 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 9 Jan 2018 22:24:27 +0000 (9 14:24 -0800)
tree6cf0c4e01daf9992df6a9ca5252e9a13356eeedc
parent5cba9a924236d034fa83763069a3bbc40108d93c
Set JIT maturity to 100 once rate of TC increase is too small

Summary:
With semantic routing, some partitions generate a lot less code and so they were
never reaching JIT maturity of 100.  This diff uses warmupStatusString(), which
checks the rate at which the TC is increasing, to tweak JIT maturity
calculation, forcing it to 100 once the server is regarded as warmed up.  This
diff also adjusts Eval.JitWarmupMaxCodeGenRate to a more reasonable value.

Reviewed By: binliu19

Differential Revision: D6681807

fbshipit-source-id: b29cd23034bbb03acb5c0e1e43c7a03896cab551
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/jit/tc-record.cpp