Linux restart inotify configuration max_user_watches is invalid and is restored. The default value 8192 is correct.

Source: Internet
Author: User
Tags inotify

In Linux, an important configuration for Rsync + inotify-tools to implement real-time data synchronization is to set the max_user_watches value of Inotify. If this value is not set, errors may occur when a large number of files are encountered.

Generally, you can directly modify the file as follows:

/Proc/sys/fs/inotify/max_user_watches

Or the modification method is as follows:

Sysctl-w fs. inotify. max_user_watches = "99999999"

However, after these modifications, the Linux system restarts inotify and the configuration of max_user_watches is invalid. The default value is 8192. Many new users may not understand this. I will not explain it in detail. If you are free to understand it: sysctl

Haole, okay, very simple ..

Starting from: http://www.jincon.com/archives/119/

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.