lwc:linux:cpu_load

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lwc:linux:cpu_load [2021/09/13 16:57] John Harrisonlwc:linux:cpu_load [2021/10/18 08:33] (current) John Harrison
Line 64: Line 64:
  
   * ''execution time (avg/stddev): 15.3699/0.00''   * ''execution time (avg/stddev): 15.3699/0.00''
- 
-==== Measure CPU load on all Droplets: ==== 
- 
-''./sshToServer.sh john all "top -bn1 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk '{print 100 - \$1}'"'' 
- 
- 
-it seems more accurate (or at least lines up better with DO usage stats) if a bit slower to catch the 2nd iteration of top instead of the first: 
- 
-''./sshToServer.sh john all "top -bn2 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk '{print 100 - \$1}' | tail -n 1"'' 
  
 ==== Linode $5/month Droplet ==== ==== Linode $5/month Droplet ====
Line 107: Line 98:
     execution time (avg/stddev):   9.9941/0.00     execution time (avg/stddev):   9.9941/0.00
 </code> </code>
 +==== AWS $5/month Droplet ====
 +<code>
 +ubuntu@ip-172-26-9-190:~$ sysbench --test=cpu run
 +WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
 +sysbench 1.0.18 (using system LuaJIT 2.1.0-beta3)
 +
 +Running the test with following options:
 +Number of threads: 1
 +Initializing random number generator from current time
 +
 +
 +Prime numbers limit: 10000
 +
 +Initializing worker threads...
 +
 +Threads started!
 +
 +CPU speed:
 +    events per second:   767.07
 +
 +General statistics:
 +    total time:                          10.0008s
 +    total number of events:              7673
 +
 +Latency (ms):
 +         min:                                    1.22
 +         avg:                                    1.30
 +         max:                                    1.63
 +         95th percentile:                        1.32
 +         sum:                                 9986.47
 +
 +Threads fairness:
 +    events (avg/stddev):           7673.0000/0.00
 +    execution time (avg/stddev):   9.9865/0.00
 +</code>
 +==== Measure CPU load on all Droplets: ====
 +
 +''./sshToServer.sh john all "top -bn1 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk '{print 100 - \$1}'"''
 +
 +
 +it seems more accurate (or at least lines up better with DO usage stats) if a bit slower to catch the 2nd iteration of top instead of the first:
 +
 +''./sshToServer.sh john all "top -bn2 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk '{print 100 - \$1}' | tail -n 1"''
  
  
  • lwc/linux/cpu_load.1631570268.txt.gz
  • Last modified: 2021/09/13 16:57
  • by John Harrison