You are not logged in.

#1 2019-10-15 16:05:09

ArchLinuxSU
Member
Registered: 2019-10-09
Posts: 13

/proc/sys/fs/file-max is always reset

Immediately after a reboot, the contents of the /proc/sys/fs/file-max file are reset. I do not know how to make this value sustainable. It is possible that the constant is set elsewhere, but I cannot understand where.

sysctl -p was executed.

Offline

#2 2019-10-15 16:21:48

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: /proc/sys/fs/file-max is always reset

What conf file should be setting the value and what is its contents?

Offline

#3 2019-10-15 17:15:38

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: /proc/sys/fs/file-max is always reset

ArchLinuxSU wrote:

Immediately after a reboot, the contents of the /proc/sys/fs/file-max file are reset. [...]
sysctl [...]

sysctl - ArchWiki:

To preserve changes between reboots, add or modify the appropriate lines in /etc/sysctl.d/99-sysctl.conf


--
saint_abroad

Offline

#4 2019-10-15 17:22:26

ArchLinuxSU
Member
Registered: 2019-10-09
Posts: 13

Re: /proc/sys/fs/file-max is always reset

sabroad wrote:
ArchLinuxSU wrote:

Immediately after a reboot, the contents of the /proc/sys/fs/file-max file are reset. [...]
sysctl [...]

sysctl - ArchWiki:

To preserve changes between reboots, add or modify the appropriate lines in /etc/sysctl.d/99-sysctl.conf


I do not have such a file in the /etc/sysctl.d directory. How to configure it for my case?

Offline

#5 2019-10-15 17:26:36

loqs
Member
Registered: 2014-03-06
Posts: 18,928

Re: /proc/sys/fs/file-max is always reset

Read the sysctl.conf man page.

Offline

Board footer

Powered by FluxBB