For running a kafka service (with jbod disks, where we encountered problems due to too many open files) with an increased LimitNOFILE
of 500000,
we decided to increase the fs.file-max
from 500000
to 1000000
on our RHEL 7.x server.
As I understand when increasing fs.file
it also has an impact about open more file descriptors.
so we want to understand if other kernel parameters should be update also when increasing the fs.file-max
?
from reading , I saw that inode-max
, should be “3-4 times larger than the value in file-max,
but we not found this parameter on our server
more /proc/sys/fs/inode-max
/proc/sys/fs/inode-max: No such file or directory
more /etc/sysctl.conf
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
fs.file-max = 500000
vm.swappiness = 10
vm.vfs_cache_pressure = 50
net.core.somaxconn=1024
fs.file-max
is the maximum number of open files. What other things would you need to increase to solve the problem you're having? We don't know what that problem is, so it's kind of hard to know what else you need to increase!file-max
. Tell us your problem before discussing the solution, engineering rule nr. 1!