All tags
memory
Narrow down
Shell13
- Tip
sudo swapon -p 10 /swap-fastSwapon -p decides which swap area Linux fills firstSets a priority per swap area, so a fast one is used before a slow one.3 Dec 2026 - Tip
sudo apt install smemSmem shows the fair share of shared memory that each process usesGet per process and per user memory numbers that add up sensibly.1 Dec 2026 - Tip
sudo pmap -x 1234Pmap -x breaks the memory of one process down by mappingSee whether a big process is heap, libraries or mapped files.1 Dec 2026 - Tip
sudo systemctl edit indexer.serviceMemoryHigh= squeezes a hungry service's memory before anything is killedSlow a greedy service down and reclaim its memory at a soft limit.1 Dec 2026 - Tip
leaks -atExit -- ./myprogram --some-optionleaks can check a program for lost memory the moment it exits on a MacTest your own command line program for leaked allocations.1 Dec 2026 - Tip
journalctl -k -g 'killed process' --since "2 days ago"journalctl -k -g finds which process the OOM killer tookFind out which program the kernel killed when memory ran out.30 Nov 2026 - Tip
grep -i "Memory cgroup out of memory" /var/log/syslogUnraid 7.4 has its own Memory limit field, no Extra Parameters neededCap a container's memory with the new field in the advanced view of Unraid 7.4.28 Nov 2026 - Tip
sudo slabtop -o -s cSlabtop -o shows which kernel cache is eating your memoryList the biggest kernel slab caches once, sorted by size, when memory goes missing.28 Nov 2026 - Tip
footprint Safarifootprint shows what one Mac process's memory is made ofBreaks down the memory footprint of a process into categories, with optional sampling.28 Nov 2026 - Tip
memory_pressure -S -l warn -s 20memory_pressure -S simulates low memory on your MacApplies real or simulated low-memory states to a Mac, for a set number of seconds.28 Nov 2026 - Tip
top -o mem -n 10top -o mem lists the Mac processes with the biggest memory footprintShows the processes with the biggest memory footprint first, in a fixed-size list.28 Nov 2026 - Tip
vm_statvm_stat prints Mac memory in pages, so check the page size firstPrints macOS memory statistics in pages, with the page size in the header.28 Nov 2026 - Tip
sudo mkswap /swapfileMkswap and swapon add a swap file without repartitioningGives a Linux machine swap space from a plain file, without changing any partitions.27 Nov 2026
Other tips6
- Tip
sysctl vm.vfs_cache_pressureVm.vfs_cache_pressure sets how eagerly Linux drops cached folder listingsControls how strongly the kernel reclaims directory and inode caches, with 100 as the default.3 Dec 2026 - Tip
lsmem --summarylsmem --summary shows how much memory the kernel seesPrints the online and offline memory the kernel manages and the size of one memory block.2 Dec 2026 - Tip
for f in /proc/[0-9]*/status; doVmSwap in /proc shows which processes have memory in swapList the programs that are actually sitting in swap, biggest first.1 Dec 2026 - Tip
zramctlzramctl shows the compressed swap that lives in your RAMLists zram devices and sets up compressed swap in memory.28 Nov 2026 - Tip
sysctl vm.swappinessVm.swappiness tells linux how expensive swap is compared with the page cacheSets how eagerly linux swaps out memory compared with dropping page cache.28 Nov 2026 - Tip
free -hfree -h has an available column, and that is the one to readShows how much memory programs can still use, including cache that Linux gives back when asked.23 Nov 2026
Storage1
Posts1
Nothing matches.