Configure the kernel for the server and the desktop separately
Source: Internet
Author: User
Configure the kernel-general Linux technology-Linux programming and kernel information for the server and the desktop separately. The following is a detailed description. The application environments of servers and desktops are different. The former focuses on stability and reliability, and the latter may focus more on functionality and timeliness of response. Therefore, when configuring the Linux kernel, you should adjust the options to adapt to this environment according to different application environments.
Context switching of processes requires a CPU cycle. Frequent process scheduling will reduce the system performance, but it will improve the system response to a certain extent. How can we make a reasonable choice between the two, it mainly depends on the specific application environment. For desktop users, it is more important to improve the interaction experience of the system. Therefore, the HZ value of the system can be appropriately increased and the Kernel can be preemptible (Voluntary Kernel Preemption) and Preemptible Kernel. The former is to insert a spot that can be Preemptible, and the latter is a spot that can be Preemptible except for a spot that cannot be Preemptible, therefore, the latency of the latter is lower. The network server is different. The RTT segment may be between 0.5-500 ms, or even more than 1 s. The advantages of the high HZ value and preemption are not obvious, so it is better to reduce the HZ value as appropriate, preemption is prohibited. For some scenarios with higher real-time requirements, you can consider using real-time Linux with special optimizations for real-time performance.
As a general kernel, the Linux kernel must meet the needs of all parties. However, it is difficult to maintain such a kernel. We would like to pay tribute to the maintenance personnel, especially Mr. Linus.
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