Max files too low

Hi
Problem:

Max files too low - you may want to increase it

How to increase it?

I read this information but it tells me nothing:

Max files allowed = %ld
Logs the nfiles currently configured.
Log level: PBSEVENT_DEBUG | PBSEVENT_DEBUG2
Max files too low - you may want to increase it
If nfiles is <1024, the pbs_comm daemon emits the message. If nfiles configured is <100, the startup aborts.
Usually nfiles must be configured to allow the number of connections (usually the number of MoMs) the
pbs_comm process is going to handle.

Anyone can remark in this topic?

Hi, I am interested in an answer as well, please explain what is this configuration effects, how to change it and when.

Thanks,
Roy

u can increase the nfiles limit using ulimit command before starting pbs_comm, or u can make a permanent change using systemctl… see this page for help: How to Increase Number of Open Files Limit in Linux

1 Like

Thanks @subhasisb , can you please explain what are the instructions as to decide which value should we set it to?

Is it based on number of Moms? Number of jobs? etc.

Thanks,
Roy

pbs_comm is a broker - it is the component that mediates messages between the server/mom and between moms. It consumes one file descriptor per tcp connection. These endpoints (server, moms) that connect to the same pbs_comm consumes one fd, each. So, the number of moms primarily dictate the value of nfiles u need for comm.

Of course, some fds are already consumed by the pbs_comm process in libraries, configuration files etc (we can keep aside a hundred for that). Thus, if you have 2000 moms, then you might want to set nfiles to something like 2500…

Thank you @subhasisb thats very helpful information