I use 2.6.36 mtk, found tmpfs cannot free memory
I add 1M size file to /tmp
rm 1M size
free memory not add 1M
and use df to see usage
/tmp hold that 1M, not release
and free memory less ...
/tmp size grow up
Do you have any ideal to check?
The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
I use 2.6.36 mtk, found tmpfs cannot free memory
I add 1M size file to /tmp
rm 1M size
free memory not add 1M
and use df to see usage
/tmp hold that 1M, not release
and free memory less ...
/tmp size grow up
Do you have any ideal to check?
That is the standard Linux kernel behaviour, there is nothing to worry about it.
I see MTK 3.10.14+,
when I del 1M file form /tmp, the free memory add 1M immediately
2.6.36 mtk seems, lock memory... If I put many files into /tmp, I del any files, free memory not add any...
/tmp# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 512 276 236 54% /
/dev/root 4352 4352 0 100% /rom
df: /tmp: Value too large for defined data type
tmpfs 512 0 512 0% /dev
/dev/mtdblock6 512 276 236 54% /overlay
overlayfs:/overlay 512 276 236 54% /
/tmp# free
total used free shared buffers
Mem: 60844 57964 2880 0 1476
-/+ buffers: 56488 4356
Swap: 0 0 0
The discussion might have continued from here.