4

I know that tmpfs falls back to using swap if system is under memory pressure. I can query total tmpfs usage in KiB with

df | grep tmpfs | awk 'BEGIN{sum=0} {sum = sum + $3} END{print sum}'

but how to figure out how much actual RAM is used by tmpfs and how much of that is on the swap?

(Some people claim that free -m shows this in Shared but that obviously counts a lot more because it may have bigger number than total tmpfs usage.)

1

0

You must log in to answer this question.

Browse other questions tagged .