Re: Memory / swap leak?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 28 Dec 2014, Phillip Susi wrote:
> 
> Something seems to be eating up all of my swap, but it defies explanation:
> 
> root@faldara:~# free -m
>              total       used       free     shared    buffers     cached
> Mem:          3929       2881       1048        146        192       1314
> - -/+ buffers/cache:       1374       2555
> Swap:         2047       2047          0
> 
> root@faldara:~# (for file in /proc/*/status ; do cat $file ; done) |
> awk '/VmSwap/{sum += $2}END{ print sum}'
> 151804
> 
> So according to free, my entire 2 gb of swap is used, yet according to
> proc, the total swap used by all processes in the system is only 151
> mb.  How can this be?

shmem (tmpfs) uses swap, when it won't all fit in memory.  df or du on
tmpfs mounts in /proc/mounts will report on some of it (and the difference
between df and du should show if there are unlinked but still open files).
ipcs -m will report on SysV SHM.  /sys/kernel/debug/dri/*/i915_gem_objects
or similar should report on GEM objects.

Hugh

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]