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