How to improve the running speed of Linux

Source: Internet
Author: User
Article Title: how to improve the running speed of Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
We previously introduced how to improve the system speed by optimizing the configuration of the desktop environment. In fact, in other aspects, we can also carefully configure it to increase the system speed.
  
   1. Improve data transmission performance of hard disks and optical drives
  
You can run the "hdparm parameter device" command. (For common users, add the path "/sbin/" before "hdparm /") to view the transmission mode in which the memory is currently working. For example, to view the transmission mode of a hard disk, the command is as follows (symbol # indicates that the transmission mode is executed as root without entering it, the same below ):
  
# Hdparm-v/dev/hda
  
If the output result contains the "IO_support = 0 (default 16-bit)" and "using_dma = 0 (off)" segments, it indicates that the 32-bit input/output support and DMA transmission mode are not enabled for the Linux operating system. For example, Red Hat 9.0 (RH9) and Red Flag Linux Desktop 4.0 (RF4) are 32-bit input/output supported by hard drive disabled by default. We can use the following command to enable the 32-bit input/output support and DMA transmission mode of the hard disk:
  
# Hdparm-c1-d1/dev/hda
  
(Description: "-c1" indicates that 32-bit input and output are supported; "-d1" indicates that the DMA transmission mode is enabled. If your hard disk supports ATA66, you can add the "-X67" parameter, and the ATA100 parameter is "-X68 ". For example, if the hard disk supports ATA66, the complete command is "hdparm-c3-d1-X67/dev/hda ")
  
Similarly, if you replace "/dev/hda" with "/dev/cdrom", you can enable the 32-bit input/output support and DMA transmission mode of the optical drive.
  
However, it is too troublesome to input such commands every time. Is there a way for the system to automatically execute these commands upon startup? Yes, you can edit the/etc/rc. d/rc. local file and add the command to be automatically executed on the last line (one line for each command ).
  
   Ii. Adjust application priority
  
The application priority value ranges from-20 to 19, and the smaller the number, the higher the priority. Generally, the priority value (CPU usage value) of a common application is 0. If a common application has a higher priority value, it will naturally start and run faster.
  
We can use the command "nice-n program name" (the value of n ranges from-20 to 19) to adjust the priority of the application, it should be noted that normal users can only adjust the priority value of the application between 0 and 19, and only root has the right to adjust a higher priority value (from-20 to 19 ).
  
   3. Use a low-load desktop environment or window manager
  
KDE is currently the most comprehensive function in Linux desktop, but it is also the desktop environment that most occupies system resources, although the desktop environments and Window managers such as XFce4, FVWM, IceWM, and Window Maker are not fully functional, they run much faster than KDE, it can be said that using a low-load desktop environment and window manager is to exchange functions and speed. The XFce4 desktop environment is recommended here. XFce4 is small, fast to start, beautiful interface, simple to set, and can call some KDE functions to make up for its own shortcomings:
  
# 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.
  
After installation, the XFce4 option is displayed in the Environment selection menu of the R9 running agent. If you want to add the XFce4 option to the Environment selection menu of the RF4 KDM compiler, see Http://www.linuxdby.com/showthread.php? S = & threadid = 8404.
  
I believe that after the above adjustments, your Linux operating system has been used smoothly. In fact, Linux can be optimized in more than this way. As long as you constantly explore it, you will experience the fun of creating a system, and your Linux level is not generally faster.

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.