Tuning System Chapter--CPU, memory

Source: Internet
Author: User

CPU is the root of the stable operation of the operating system. The Linux kernel identifies multi-core processors as multiple separate CPUs, such as two dual-core CPUs under the Linux system as 4 single-core CPUs, and two dual-cores CPU performance in terms of performance compared to 4 single-core CPUs by 25%-30%.
Applications where CPU bottlenecks may occur dynamic Web applications, mail servers

Memory is also an important factor that affects Linux performance; The system process is blocked, the application becomes slow, and the memory is too large to waste. The maximum memory for a 32-bit processor Linux operating system is 8G. and limited by the range addressed by the processor, on 32-bit Linux systems, applications can use up to 2G of memory for a single process.
Potential memory bottlenecks for applications with database servers, static Web servers

Kernel Optimizations
If the system is deployed database application----system shared memory segment "Kernel.shmmax,kernel.shmmni,kernel.shmall", System semaphore Kernel.sem, file handle Fs.file-max and other parameters to optimize
If you are deploying a Web application----you need to optimize network parameters based on Web application features Net.ipv4.ip_local_port_range, Net.ipv4.tcp_tw_reuse, Net.core.somaxconn and other network kernel parameters

Application optimization
The core of optimization

System performance analysis guidelines and optimization principles
Objective----Performance tuning is a system that can effectively utilize various resources, maximizing application and system to achieve a perfect integration.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/7F/wKiom1X_oOiQ6Rw2AAHSKseoaYw931.jpg "title=" Cpu.png "alt=" Wkiom1x_ooiq6rw2aahskseoayw931.jpg "/>

Tuning System Chapter--CPU, memory

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