/proc folder Explanation

Source: Internet
Author: User
Tags inotify

Mans 5 Proc

http://blog.itpub.net/15480802/viewspace-753819/

/proc/sys/fs/file-Max This file defines a system-wide limit on the number of open files forAll processes. (See also setr-Limit (2), which can used by a process toSetThe per-process limit, rlimit_nofile, on the number of files it may open.) If YouGetLots of error messages about running outof file handles,Tryincreasing ThisValue:echo100000>/proc/sys/fs/file-Max the kernel constant Nr_open imposes an upper limit on the value then may be placedinchfile-Max. If you increase/proc/sys/fs/file-max, being sure to Increase/proc/sys/fs/inode-max to3-4 times theNewValue Of/proc/sys/fs/file-max, or you'll run outof Inodes. /proc/sys/fs/file-nr this (read-Only ) file gives the number of files presently opened. It contains three numbers:the number of allocated file handles, the number of free file handles and the Maximum number of File Han-DLEs.  The kernel allocates file handles dynamically, but it doesn ' t free them again. If The number of allocated files isclose to the maximum, you should consider increasing the maximum. when the number in the free file handles islarge, you ' ve encountered a peakinchyour usage of file handles and you probably don ' t need to increase the maximum. /proc/sys/fs/inode-Max This file contains the maximum number ofinch-memory inodes. On some (2.4) systems, it may is not present. This value should is3-4Times larger than the valueinchfile-Max, since stdin, stdout and network sockets also need an inode to handle them. When you regularly run outof Inodes, you need to increase Thisvalue. /proc/sys/fs/inode-nr This file contains the first and the values frominode-State . /proc/sys/fs/inode-State The This file contains seven Numbers:nr_inodes, Nr_free_inodes, Preshrink and four dummy value S. Nr_inodes isThe number of inodes the system has allocated. This can is slightly more than inode-Max because Linux allocates them one page full at a time.  Nr_free_inodes represents the number of free inodes. Preshrink isNon-zero when the Nr_inodes > inode-Max and the system needs to prune the Inode list instead of allocating more. /proc/sys/fs/inotify (Since Linux2.6. -This is directory contains files max_queued_events, max_user_instances, and max_user_watches, that can be used to limit the amount of kernel memory consumed by the inotifyInterface. For further details, see INotify (7). /proc/sys/fs/lease- Break-Time this file specifies the grace period, the kernel grants to a process holding a file LEAs E (Fcntl (2) after it had sent a signal to the process notifying it that another process iswaiting to open the file. If the lease holder does not remove or downgrade the lease within Thisgrace period, the kernel forcibly breaks the lease. /proc/sys/fs/leases-enable this file can is used to enable or disable file leases (Fcntl (2) on a system-wide basis. If Thisfile contains the value0, leases is disabled. A non-zero value enables leases. /proc/sys/fs/mqueue (Since Linux2.6.6This directory contains files Msg_max, Msgsize_max, and Queues_max, controlling the resources used by  POSIX message queues. See Mq_overview (7) forDetails.

/proc folder Explanation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.