Quantcast
Viewing all articles
Browse latest Browse all 2849

Beginners Questions • Re: [Software] Why does swap never empty itself even after closing programs using it?

Here is a good example of memory variation across a medium term.
There is no swap usage in this case, but it does show well the metric to watch is ‘available’
Use case dictates how shared and buff/cache will vary. In this case large tmpfs's are in use and show under ‘shared’. Large scp transfers bounced through, and they show up it buff/cache. The seemingly low ‘free’ stat isn't so indicative of much. I didn't catch it here, but my assumption is low ‘available’ is what would trigger some swap.

Code:

$  free              total        used        free      shared  buff/cache   availableMem:       66012240     6594960    14540392    26925308    44876888    31759944Swap:       7999484           0     7999484$  free              total        used        free      shared  buff/cache   availableMem:       66012240    11088720    18569876    14765968    36353644    39425524Swap:       7999484           0     7999484$  free -g              total        used        free      shared  buff/cache   availableMem:             62          10          17          14          34          37Swap:             7           0           7$  free -g              total        used        free      shared  buff/cache   availableMem:             62          12           5          14          44          35Swap:             7           0           7$  free -g              total        used        free      shared  buff/cache   availableMem:             62          13           4          14          44          34Swap:             7           0           7$  free -g              total        used        free      shared  buff/cache   availableMem:             62          10           7          14          44          37Swap:             7           0           7

Statistics: Posted by CwF — 2024-09-08 02:20



Viewing all articles
Browse latest Browse all 2849

Trending Articles