modifying Linux system parameters to support single-machine open millions of file handles at the same time

Source: Internet
Author: User

The maximum number of open file handles per process set by Ulimit-n (Setrlimit (Rlimit_nofile)) before Linux kernel 2.6.25 cannot exceed Nr_open (1024*1024), which is more than 100 W ( Unless the kernel is recompiled, after 2.6.25, the kernel exports a SYS interface to modify the maximum value (/proc/sys/fs/nr_open).


The specific changelog:

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9cfe015aa424b3c003baba3841a60dd9b5ad319b


In/etc/sysctl.conf, the fs.nr_open=2000000 can be.

modifying Linux system parameters to support single-machine open millions of file handles at the same time

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.