On a workstation running Debian 12 kernel 6.1.0-32-amd64, you can increase the number of open files without encountering any issues due to the 192GB DDR3 memory. To set the soft limit, follow these steps:
-
Open a terminal.
-
Run the command:
sudo sysctl -w fs.file-max=1000000This command sets the soft limit for the number of open files to 1,000,000.
-
To make the change permanent, add the following line to the
/etc/sysctl.conffile:fs.file-max=1000000 -
Save and close the file.
-
To reload the
sysctl.conffile and apply the changes, run the command:sudo sysctl -p /etc/sysctl.conf
Now, you have successfully increased the soft limit for the number of open files on your Debian 12 workstation.
References