Ubuntu Troubleshooting

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 20:30, 20 December 2017 by Admin (Talk | contribs)

Jump to: navigation, search

Error: Too many open files in system

Unable to get a directory listing or execute some commands. Console returns error message containing the text "Too many open files in system."

Everything in Linux are files; Linux forks most things including devices, sockets and pipes as files. There is a kernel parameter called “file-max” which controls the maximum number of files that can be opened in a system. The default value is 65K (approx), can be find using the following command:

sysctl -a | grep file-max

To check the count of number of files open, we can use the following command:

lsof | wc –l

To prevent Ubuntu from running out of filehandles you need to make sure that there are enough file handles available at the system level, and that the user you are running Ubuntu as is allowed to use enough file handles:

Run the command sysctl -a. If this is less than 200000, increase the number of file handles by editing /etc/sysctl.conf and changing the property fs.file-max to 200000. If there isn't a value set already for this property, you need to add the line fs.file-max=200000.

vi /etc/sysctl.conf

add to file:

fs.file-max=200000

save and execute the command:

sysctl -p

Slow Graphics Performance

One known issue is that fglrx is no longer supported with Ubuntu 16.04, as AMD is working on a new open-source driver. You can run sudo ubuntu-drivers devices to see the detected drivers.

sudo ubuntu-drivers devices

In the list it offered a "recommended" driver. For example, nvidia-304 - distro non-free recommended

sudo apt install nvidia-304

ref: https://askubuntu.com/questions/761429/kubuntu-16-04-driver-manager-broken