This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:linux_memory_swap [2021/02/11 16:21] manu |
linux:linux_memory_swap [2021/02/11 16:35] (current) manu [List memory inuse] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== List memory inuse ===== | ===== List memory inuse ===== | ||
| - | You can use free [-h|-k|-m|-g] | + | You can use **free [-h|-k|-m|-g]** |
| <cli prompt='#'> | <cli prompt='#'> | ||
| opensuse:~ # free -h | opensuse:~ # free -h | ||
| Line 15: | Line 15: | ||
| </cli> | </cli> | ||
| + | Memory available | ||
| + | <cli prompt='#'> | ||
| + | opensuse:~ # cat /proc/meminfo | ||
| + | MemTotal: 16289016 kB | ||
| + | MemFree: 1077280 kB | ||
| + | MemAvailable: 3419608 kB | ||
| + | Buffers: 141848 kB | ||
| + | Cached: 3983768 kB | ||
| + | SwapCached: 0 kB | ||
| + | ... | ||
| + | </cli> | ||
| + | |||
| + | Swap available | ||
| + | <cli prompt='#'> | ||
| + | opensuse:~ # swapon -s | ||
| + | Filename Type Size Used Priority | ||
| + | /dev/sda5 partition 10485756 0 -1 | ||
| + | </cli> | ||
| + | <cli prompt='#'> | ||
| + | opensuse:~ # cat /proc/swaps | ||
| + | Filename Type Size Used Priority | ||
| + | /dev/sda5 partition 10485756 0 -1 | ||
| + | </cli> | ||
| ===== Clear / clean swap ===== | ===== Clear / clean swap ===== | ||