2009-09-26 23:17:30 Putting Data in memory takes twice the space needed
Dusko Cencan (GERMANY)
Message: 80508
Hi,
There are some funny things going around on my blackfin 527. When I copy a file of approx. 4mb to the memory via NFS (the system uses initramFS), the file is listed as 4mb (via ls -l), but "free" shows 8mb less memory left. When I delete the file, I got only 4mb freed of the 8mb.
Shortly:
Before: 20mb free
With 4MB file: 12mb free
After Deleting 4MB file: 16mb free
Does anyone have an idea? Where is the rest of the memory?
Best regards,
Dusko Cencan
QuoteReplyEditDelete
2009-09-26 23:22:39 Re: Putting Data in memory takes twice the space needed
Sonic Zhang (CHINA)
Message: 80509
Because VFS cached your file pages for both NFS remote FS and you local root FS in ram.
After umount NFS, you will find the rest memory.
QuoteReplyEditDelete
2009-09-27 22:42:50 Re: Putting Data in memory takes twice the space needed
Dusko Cencan (GERMANY)
Message: 80535
Thanks, unmounting NFS gave me the rest of memory.