View hardware load command redhat 7.6

1. command to view CPU load 

Command 1: uptime

Command 2: cat / proc / loadavg    

View CPU information: cat / proc / cpuinfo

load average: indicates that the process of running an average of 1 minute, indicates that the process is running within an average of five minutes, it indicates that the process is running within an average of 15 minutes

 

 2. Check memory

Command 1: free -m

Command 2: cat / proc / meminfo

Men total amount of physical memory memory usage memory is used    

Swap Swap    

 

 

3. Release the memory, release buff / cache value does not affect system operation

echo  3  >  /proc/sys/vm/drop_caches  

 

 

4. Review Process

ps -ef // see the process takes time slice

ps -auxf // view the process with information on CPU, memory load, the process of parent-child relationship

 

5. The document written directly to physical memory, physical memory occupied

   free -m // View free the remaining 1202

  mount -t tmfps -o size = 500M tmpfs / mnt // use this command to mount a file of 500M to / mnt

 

  You can view the memory is written 500M

 

 

 6. The memory mount / mnt, then linked to the database / mnt, can read and write the database upgrade, as mounted on the physical memory, the data can not be guaranteed, a certain physical memory restrictions (in terms of money and plug ) on the slot.

 

Guess you like

Origin www.cnblogs.com/MOMING95/p/11755752.html