Unknown Linux server performance tuning skills

Source: Internet
Author: User
Tags domain name server

Linux is an open-source operating system that supports various hardware platforms. Linux servers are world-renowned. The main difference between Linux and Windows is that, by default, a Linux server does not provide a GUI (graphical user interface) but a command line interface. The main purpose of the GUI is to efficiently process non-interactive processes. The response time is not that important. On the contrary, it is critical to be able to process high loads for a long time. The Linux high-availability server cluster solution allows IT system administrators to easily cope with many common hardware and software faults, and allows multiple computers to work together to ensure the normal operation of key services, the system administrator can perform maintenance and upgrade without interrupting services.
Linux servers have various purposes, such as Web servers or internal branch servers, CMS or CRS servers, file servers (for Windows and/or Linux users), and VoIP telephone servers, email or Domain Name Server, database server, infrastructure node in cloud computing configuration, etc.

Linux features are rich, powerful, and flexible. You can use it to complete various tasks. In this article, we will discuss some techniques to improve the performance of Linux servers.

1. Adjust the Linux kernel elevator Algorithm for disk I/O

After selecting a file system, some kernel and mount options may affect its performance. One of the kernel settings is the elevator algorithm. by adjusting the elevator algorithm, the system can balance low latency requirements, collect enough data to effectively organize read and write requests to the disk.

2. disable unnecessary daemon to save memory and CPU resources.

Many daemon or services are running on each server. The irony is that many of them are not usually necessary and do not play a role, however, it consumes valuable memory and CPU time. In addition, they may put servers in a dangerous situation. running one service is equivalent to opening a long drive-in door to multiple hackers. Therefore, you should remove them from the server, the biggest advantage of disabling them is that it can speed up the startup time and release the memory. In addition, you can reduce the number of processes that the CPU needs to process. Another advantage of disabling them is to enhance the security of the server, because the fewer daemon processes, the fewer vulnerabilities that can be attacked and exploited.

The following are some Linux daemon that should be disabled. By default, they all run automatically:

3. Turn off the GUI

Generally, the Linux server does not require a GUI, and all management tasks can be completed under the command line. Therefore, it is best to turn off the GUI and redirect the X Display or display it through a Web browser interface. To Disable GUI, "init level (startup level)" should be set to 3 (command line logon), instead of 5 (graphical logon). If you need GUI, you can run startx at any time to enter the graphic user interface.

4. Clear unnecessary modules or functions

There are too many enabled functions or modules in the server software package that are not actually needed (for example, many functional modules in Apache). Check the Apache configuration file carefully, determine whether the FrontPage support or other additional modules are actually used. If you do not need it, do not hesitate to disable it from the server. This will help increase the system memory usage, free up more resources for the software that is really needed to make them run 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.