Difference between revisions of "Sar -r (memory)"

From wikieduonline
Jump to navigation Jump to search
Line 30: Line 30:
 
* [[Memory]]: <code>[[sar -r]]</code>
 
* [[Memory]]: <code>[[sar -r]]</code>
 
* [[Swap]]: <code>[[sar -S]]</code>
 
* [[Swap]]: <code>[[sar -S]]</code>
* <code>[[Sar -W (Swapping)]]</code>
+
* <code>[[sar -W (Swapping)]]</code>
 
* <code>[[systemd-cgtop]]</code>
 
* <code>[[systemd-cgtop]]</code>
 
* <code>[[free -h]]</code>
 
* <code>[[free -h]]</code>

Revision as of 05:46, 9 June 2024

sar -r --human

09:38:01 PM kbmemfree   kbavail kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact   kbdirty
09:39:01 PM    122.1G    478.5G    381.5G     75.8%    385.4M    348.8G     25.4G      5.0%     39.7G    330.0G     96.2M
09:40:01 PM    118.7G    478.5G    384.9G     76.4%    385.5M    352.1G     25.4G      5.0%     39.8G    333.2G    406.1M
09:41:01 PM    116.1G    478.4G    387.4G     76.9%    385.6M    354.6G     25.4G      5.0%     39.9G    335.7G    259.2M


00:00:01    kbmemfree   kbavail kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact   kbdirty
00:05:01       131.5M    305.9M    853.7M     86.7%     48.8M    292.3M      1.5G    157.4%    567.6M    175.3M    632.0k
00:10:01       128.7M    303.4M    856.5M     86.9%     48.9M    292.4M      1.5G    157.1%    570.2M    175.4M    300.0k
00:15:01       130.0M    304.9M    855.2M     86.8%     49.1M    292.4M      1.5G    157.1%    568.9M    175.3M    288.0k
00:20:01       129.7M    305.0M    855.5M     86.8%     49.3M    292.6M      1.5G    157.5%    569.0M    175.5M    328.0k
00:00:01    kbmemfree   kbavail kbmemused  %memused kbbuffers  kbcached  kbcommit   %commit  kbactive   kbinact   kbdirty
05:00:01        68.5M    177.6M    916.6M     93.0%     21.0M    269.9M      1.0G    104.8%    687.1M    118.9M    704.0k
05:05:01        73.2M     32.9M    911.9M     92.6%      4.9M    100.8M      1.2G    128.1%    783.9M     14.1M    188.0k
05:10:05        50.8M      0.0k    934.3M     94.8%      1.2M     79.9M      1.3G    137.5%    813.9M      3.7M      0.0k
05:15:13        48.8M      0.0k    936.3M     95.0%    248.0k     78.4M      1.3G    137.9%    815.8M      4.1M     32.0k
05:20:53       458.5M    418.8M    526.6M     53.5%      7.8M    101.8M    759.3M     77.1%    394.0M     16.7M      1.5M
05:25:01       110.5M    416.1M    874.7M     88.8%     27.7M    457.0M      1.0G    106.5%    462.6M    293.7M      1.3M

Activities

  1. Review total system memory: free -h
  2. Emptying the buffers cache: free -h && sync && echo 3 > /proc/sys/vm/drop_caches && free -h[1]
  3. Use fio command with direct=0 option to fill up your cache.

Related commands

See also

  • https://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system
  • Advertising: