One of linux Performance Tuning: disk partitioning Policy

Source: Internet
Author: User

One of linux Performance Tuning: disk partitioning policies for servers, whether in windows or linux, affect system performance. after partitioning a disk, It is formatted as a system file in a certain format. Finally, it is stored in user or system data. The faster the response speed when data is easily read in the partition where the data is located. of course, there are also the opposite situations. Before "Data hunger" occurs, we must first understand some features of the disk (physical factors that affect I/O ): 1> storage density (the higher the storage density depends on the external channel), (the same speed, the more data is read from the external channel) ----- storage User Data Partition: sector formatting within a certain range on the disk: Based on the partition, identify the partition speed of each sector> formatting speed note: the lower the Partition Number, the more out-of-the-box 2> the bus speed is much lower than the kernel processing 3> the seek time (during different track switching times). In this case, you can view a disk structure: first, you should know that "the sector starts counting from the periphery". For details, refer to the information on the Internet. The default partitions start from the periphery, however, we must combine the disk's physical Attribute and requirements to partition. Principle: The more frequently accessed data is stored on the outermost side of the disk. Implementation 1: When rhel6.0 is installed, you cannot specify the start sector number. You can only partition the partition before you can partition partitions that store frequent access, and the rest will be used by the system. Note: Implementation of Data with low partition numbers for frequent access 2: Do not manually calculate the number of cylinders and specify the start position (in this case, make a record) the following are some suggestions for a cylindrical cylinder about 7 M: 1. /, swap,/var,/home,/usr, the commonly used partition must first use a separate partition 2. the first partition is swap ------ used to optimize the memory swap operation 3. for example,/data is frequently accessed user data, which can be used as the second partition 4. the logs are/var/------ in sequence, and the/usr/------ system library file is 5. //, some configuration files in the/boot dependency are rarely read, and some files in the/boot partition are also the same. Of course, it would be better to have multiple disks, data can be directly stored on a disk with good performance. RAID can also be used to speed up access.

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.