Bash/RAM: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "<source lang="bash"> #!/bin/bash : ' @author "Chorke Academia"<[email protected]> @web http://chorke.org/academia @vendor Chorke Academia, Inc. @version...")
 
No edit summary
Line 21: Line 21:
DirectMap1G:    15728640 kB
DirectMap1G:    15728640 kB
'
'
</source>


<source lang="bash">
vmstat -s
vmstat -s
:'
:'
Line 33: Line 35:
     10197224 forks
     10197224 forks
'
'
</source>


<source lang="bash">
free -m
free -m
free -g
free -g
mpstat
# Linux 3.10.0-327.el7.x86_64 (ihe)      12/18/2018      _x86_64_        (20 CPU)
#
# 09:13:03 PM  CPU    %usr  %nice    %sys %iowait    %irq  %soft  %steal  %guest  %gnice  %idle
# 09:13:03 PM  all    0.07    0.00    0.05    0.01    0.00    0.00    0.00    0.00    0.00  99.87
</source>
</source>

Revision as of 07:17, 18 December 2018

#!/bin/bash
: '
 @author   "Chorke Academia"<[email protected]>
 @web       http://chorke.org/academia
 @vendor    Chorke Academia, Inc.
 @version   1.0.00.GA
 @since     1.0.00.GA
'

less /proc/meminfo
# cat /proc/meminfo
:'
MemTotal:       32647248 kB
MemFree:         1176316 kB
MemAvailable:   14842976 kB
Buffers:            1452 kB
     --- more ---
DirectMap4k:      291324 kB
DirectMap2M:    19499008 kB
DirectMap1G:    15728640 kB
'
vmstat -s
:'
     32647248 K total memory
     15046772 K used memory
     16012884 K active memory
     12832368 K inactive memory
      1146744 K free memory
         1452 K buffer memory
     --- more ---
     10197224 forks
'
free -m
free -g

mpstat
# Linux 3.10.0-327.el7.x86_64 (ihe)       12/18/2018      _x86_64_        (20 CPU)
# 
# 09:13:03 PM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest  %gnice   %idle
# 09:13:03 PM  all    0.07    0.00    0.05    0.01    0.00    0.00    0.00    0.00    0.00   99.87