Skip to main content

Timeline for atop peak memory usage from log

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Dec 2, 2022 at 15:32 history edited Pablo A CC BY-SA 4.0
Improved formatting. Minor fixes.
Mar 14, 2019 at 8:34 comment added kittygirl @DanielAndersen,how to read several days log and head?
May 12, 2017 at 10:45 comment added Daniel Andersen htop is using: Mem:1.84G used:331M buffers:341M cache:483M autosar shows you the same values at: memtotal, buffers, cached. "used" memory in htop can be calculated out of the autosar export with: memtotal - memfree - buffers - cached = usedmemory
May 12, 2017 at 10:42 comment added mrgloom And how to obtain memory which fro example htop shows in 'Mem' bar?
May 12, 2017 at 10:41 comment added Daniel Andersen Sounds perfectly fine for me, as linux utilizes memory for buffers and caches until an application requires more memory. try out: free -m and compare "free memory" with "available memory": daniel@trucka:~$ free -m total used free shared buff/cache available Mem: 1888 312 734 17 840 1496 Swap: 2047 0 2047 As you can see in my example: there is 1496M of memory available, but 840 are currently used for caches (which is fine).
May 12, 2017 at 10:31 comment added mrgloom Seems memfree is not 'correct', I don't know how it's calculated, but even in days without heavy load on server it shows about only 30% of memory free.
May 12, 2017 at 10:27 comment added Daniel Andersen Thats technical correct so far, but you should think about your intentions of finding out lowest "free memory". free memory can also be low, when the system uses memory as cache because the applications do not require the whole memtotal. Also paged out memory to swap could be important for any memory related investigations. Good luck
May 12, 2017 at 10:21 vote accept mrgloom
May 12, 2017 at 10:20 comment added mrgloom Seems it should be: atopsar -r /var/log/atop/atop_20170512 -m -R 1 | sed 1,6d | awk '{print $3}' | sed 's:M::g' | sed 's:[^0-9]*::g'| awk 'NF' | sort -n | head -n 1
May 12, 2017 at 8:46 comment added mrgloom What if I want just one number (minimum free memory from log)? is it possible with awk?
May 11, 2017 at 10:34 history answered Daniel Andersen CC BY-SA 3.0