How to improve Linux operating system speed _unix Linux

Source: Internet
Author: User
Tags bz2

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

#hdparm-V/dev/hda

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:

#hdparm-c1-d1/dev/hda

(Note: "-c1" means to start 32-bit input-output support; "-d1" means to start DMA transfer mode.) 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).

Third, using a low load desktop environment or window manager

KDE is currently the most functional Linux desktop, but also the most of the system resources of the desktop environment, and XFce4, FVWM, ICEWM, window maker such as desktop environment and window manager, although not in the functional KDE perfect, but the speed is much faster than KDE, It can be said that the use of low Load desktop environment and window Manager is a function and speed to make an exchange. I recommend the use of XFce4 desktop environment here. XFce4 small size, fast start, beautiful interface, easy to set up, and can call some KDE functions to make up for its own shortcomings, its download address: http://heanet.dl.sourceforge.net/sourceforge/xfce/ XFCE-4.0.6-RPM-RH9.TAR.BZ2, use the following command to install:

#tar JXVF xfce-4.0.6-rpm-rh9.tar.bz2
#cd Xfce-4.0.6-rpm-rh9
#rpm-IVH *.rpm

The above RPM package can also be installed in the Red Flag Desktop version 4.0.

When installed, the XFce4 option appears in the Environment selection menu of the RH9 GDM login. If you want to include the XFCE4 option in the Environment Selection menu of the RF4 KDM login, see http://www.linuxdby.com/showthread.php?s=&threadid=8404.

I believe that with the above adjustments, your Linux operating system is a lot smoother to use. In fact, Linux can optimize the place more than that, as long as you continue to explore, slowly will experience the fun of creating systems, and their own level of Linux to improve the speed is not generally fast yo.

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.