VFS: maximum file size 1231582

I am running the Linux 2.6.36 kernel and I see some random errors. Such things as

ls: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Error 23

Yes, my system cannot run the 'ls' command sequentially :(

I note a few errors in dmesg output:

# dmesg | tail
[2808967.543203] EXT4-fs (sda3): re-mounted. Opts: (null)
[2837776.220605] xv[14450] general protection ip:7f20c20c6ac6 sp:7fff3641b368 error:0 in libpng14.so.14.4.0[7f20c20a9000+29000]
[4931344.685302] EXT4-fs (md16): re-mounted. Opts: (null)
[4982666.631444] VFS: file-max limit 1231582 reached
[4982666.764240] VFS: file-max limit 1231582 reached
[4982767.360574] VFS: file-max limit 1231582 reached
[4982901.904628] VFS: file-max limit 1231582 reached
[4982964.930556] VFS: file-max limit 1231582 reached
[4982966.352170] VFS: file-max limit 1231582 reached
[4982966.649195] top[31095]: segfault at 14 ip 00007fd6ace42700 sp 00007fff20746530 error 6 in libproc-3.2.8.so[7fd6ace3b000+e000]

Obviously, file-max errors look suspicious, and the latter are grouped together.

# cat /proc/sys/fs/file-max
1231582
# cat /proc/sys/fs/file-nr
1231712 0       1231582

This also looks a little strange, but the fact is that I can not open 1.2 million files on this system. I use it only one, and it is not displayed to anyone outside the local network.

# lsof | wc
  16046  148253 1882901
# ps -ef | wc 
    574    6104   44260

I saw the documentation that said:

file-max and file-nr:

The kernel dynamically allocates files, but so far does not free them.

-max , ​​Linux. , , .

-nr , , . Linux 2.6 0 - , , .

, -, printk, " VFS: ".

, ​​ , . , , . , , , Linux- ( ). , , .

- , ? , , , , . , Firefox, 2000 lsof (!), , "ls", , . (: , . , , /)

.

+3
1

, , .

, serverfault ( )

, , NFSv4, , . NFS, 5 script, rrdtool , NFS. , , , ( ) . , script ( , ), , 900 , .

:   1) NFSv3.   2) script.   3) , NFS.   4) NFSv4, (Bruce Fields , , )

, .

.

+4

Source: https://habr.com/ru/post/1791867/


All Articles