How to improve Linux operating system speed

Source: Internet
Author: User
Tags linux

We have previously introduced ways to improve the speed of the system by optimizing the configuration of the desktop environment, but in other respects we can also configure it to improve the speed of the system.

First, improve the data transmission performance of hard disk and optical drive

We can use the command "Hdparm parameter device" (if it is a normal user, you need to precede "hdparm" with the path "/sbin/") to see what transmission mode the storage is currently working in. For example, to see the transmission mode of the hard disk, its commands are as follows (symbol # means execute as root, no input, same below):


If the output has the io_support=0 (default 16-bit) and using_dma=0 (off) paragraphs, the Linux operating system does not have 32-bit input and output support and DMA transfer mode to open the hard drive. For example, Red Hat 9.0 (hereinafter referred to as RH9) and Hongqi Linux Desktop version 4.0 (hereinafter referred to as RF4) are the default to turn off the hard drive 32-bit input and output support. We can use the following command to enable 32-bit input and output support and DMA transfer mode for the hard disk:


(Note: "-c1" means to start 32-bit input-output support; "-D1" indicates that the DMA transfer mode is started.) If your hard drive supports ATA66 can also add "-X67" This parameter, ATA100 is "-x68". For example, hard disk support ATA66, so the complete command is "Hdparm-c3-d1-x67/dev/hda")

Similarly, as long as the "/dev/hda" of the above command is replaced by "/dev/cdrom", you can turn on the optical drive's 32-bit input and output support and DMA transfer mode.

But every time you have to enter the command too much trouble, there is no way to allow the system to start the automatic implementation of these commands? Yes, the method is to edit the/etc/rc.d/rc.local file, and on the last line, add the command you want to automate (each command line).

Second, adjust application priority

Application priority values range from 20 to 19, and the smaller the number, the higher the priority. In general, the normal application of the priority value (CPU use value) is 0, if the common program has a higher priority, natural startup and running faster.

We can use the command "NICE-N program name" (N's value from 20 to 19) to adjust the application's precedence. Note that the average user can only adjust the application's priority value between 0 and 19, and only Root has the right to adjust higher priority values (from 20 to 19).

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: 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.