CPU&Memory
Show physical cpu and processor
2. Show system load
3. vmstat
4.Different between buffer and cache in linux system.
A: Both buffer and cache are an area in memory. When the CPU needs to write data to disk, because the disk speed is slow, the CPU first stores the data into the buffer, then the CPU performs other tasks, and the data in the buffer is periodically written to Disk; When the CPU needs to read data from the disk, because the disk speed is relatively slow, the data to be used can be stored in the cache in advance, and the CPU takes the data directly from the Cache much faster.
Buffer: Cpu write to disk
Cache:CPU read from disk
5. top
6.show memory
7. One day you suddenly found that the company website access speed is very slow and slow, what should you do?
Analyze the system load, use the w command or the uptime command to check the system load. If the load is high, use the top command to check the CPU, MEM, etc., either the CPU is busy or the memory is not enough. Both of them are normal, then use the sar command to analyze the NIC traffic and analyze whether it has been attacked. Once the cause of the problem is analyzed, take corresponding measures to resolve it, such as deciding whether to kill some processes, or prohibiting some access.
8.
Last updated