max-cache-size value by default is set to maximum value of uint64_t in chroot mode
Summary
The max-cache-size is set to the max value of uint64_t in chroot mode by default.
Steps to reproduce
Run named in chroot mode.
What is the current bug behavior?
The max-cache-size is set to the max value of uint64_t in chroot mode.
What is the expected correct behavior?
By default, the max-cache-size should be set to the 90% of the physical memory size.
Relevant configuration files
Relevant logs and/or screenshots
Run in choot mode:
11-Sep-2018 13:45:55.660 none:99: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB)
Run in normal mode:
11-Sep-2018 13:50:34.153 none:100: 'max-cache-size 90%' - setting to 174419MB (out of 193799MB)
Possible fixes
Some configuration files might be copied to chroot/etc/
like localtime
, but I have no idea what configuration files should be copied.