Shouldn't disabling JIT also disable the JIT translation-cache?
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
I'm attempting to lower hhvm's memory usage for 3v4l.org; and I expected that disabling the JIT would reduce the amount of memory that's being used for the [translation cache](https://docs.hhvm.com/hhvm/configuration/INI-settings#jit-settings__jit-translation-cache-size) to 0. However, this is not the case. I have tried disabling the JIT through the commandline (using both `-d hhvm.jit=0` and `-v Eval.Jit=false`) and cli.hdf (using `Eval { Jit = false }`) and php.ini (using `[hhvm] hhvm.jit = 0`).
However; I still get this error:
> could not allocate 218103807 bytes for translation cache
Alternatively I've also tried lowering the size itself by using
```
hhvm.jit_a_size = 16M
hhvm.jit_a_cold_size = 10M
hhvm.jit_a_frozen_size = 10M
hhvm.jit_global_data_size = 2M
hhvm.jit_a_hot_size = 10M
hhvm.jit_a_prof_size = 16M
```
and while this lowers the size to ~ 70 M; it still throws the same error (memory size is currently limited to 512M total). Complete config can be found at https://3v4l.org/6KJfh
Contributor guide
Assessment
This issue has not been assessed yet.