Directory limit and file number limit management in Linux

Source: Internet
Author: User
Keywords Can subdirectory if to say necessary
Tags aliyun configure design designers directory enterprise file help

For http://www.aliyun.com/zixun/aggregation/13879.html "> system administrators, it is necessary to understand some of the limitations of the system, so that the necessary parameters can be configured and adjusted to achieve better performance, For system designers and even programmers, understanding some of the limitations of the system can also help design a more reasonable storage structure.

Limit of a directory number

RedHat Enterprise Linux as 4.0 Update 3

Under the same path, the number of subdirectories is limited to 31998, and if your application generates more directories than that, be careful to classify the categories. For example, if the directory name is a number, the number can be divided by 10000 integer value as the parent directory name (/data/1/13892), if the directory name is a letter, you can use the first few characters as a parent directory (/DATA/AB/ABCDEFG) and so on.

The following command line allows you to get the total number of subdirectories in a directory:

$ ls-f grep "/" WC

Workaround:

1 Create a subdirectory

2 Linux for the search efficiency of the CPU, the need to change the number of the kernel will probably recompile.

Related Article

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.