Editing Free (command)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>free</code> display amount of free and used [[memory]] in the system. It is included in <code>[[procps]]</code> package.
+
<code>free</code> <ref>http://man7.org/linux/man-pages/man1/free.1.html</ref> display amount of free and used [[memory]] in the system
* https://man7.org/linux/man-pages/man1/free.1.html
 
  
 
  free -h
 
  free -h
               total        used        free      shared  [[buff]]/cache  available
+
               total        used        free      shared  buff/cache  available
 
  Mem:          503G        21G        43G        2.1M        438G        478G
 
  Mem:          503G        21G        43G        2.1M        438G        478G
 
  Swap:          975M        50M        925M
 
  Swap:          975M        50M        925M
Line 22: Line 21:
  
 
== Activities ==
 
== Activities ==
# Empty the [[buffers cache]]: <code>free -h && [[sync]] && echo 3 > /proc/sys/vm/[[drop_caches]] && free -h</code><ref>https://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system</ref>
+
# Emptying the [[buffers cache]]: <code>free -h && [[sync]] && echo 3 > /proc/sys/vm/[[drop_caches]] && free -h</code><ref>https://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system</ref>
 
# Use <code>[[fio]]</code> with <code>direct=0</code> to fill up your cache.
 
# Use <code>[[fio]]</code> with <code>direct=0</code> to fill up your cache.
 
# Review historical memory usage with: <code>[[sar -r --human]]</code>
 
# Review historical memory usage with: <code>[[sar -r --human]]</code>
# Review <code>[[/proc/meminfo]]</code>
+
# Review <code>[[/proc/]][[meminfo]]</code>
 
#  <code>[[ps]] -eo pid,user,s,comm,size,vsize,rss --sort -size | head</code>
 
#  <code>[[ps]] -eo pid,user,s,comm,size,vsize,rss --sort -size | head</code>
  

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: