monitoreurope at yahoo.co.uk
Tue Oct 23 10:39:13 EDT 2001
Could someone shed some light on a difficulty we are
experiencing? We have an X86 board with 8meg of flash
and 16meg of RAM. As you can see from the df output
below most is mounted as / with a meg or so as /var
and a 2meg ram disk mounted as /var/tmp. However we
are finding that the df output differs substantially
from the actual usage, as you can see from the du on
the var directory tree we should only be using 132K
whereas df suggests 552K. We understand that the file
system itself will need a little space and on top of
that there will be some wastage. Indeed if we fill
/var up with files it does clean itself to an extent
but we are still some 40% short.
As we use /var for FIFO data storage on this system
(many 8-32K files) we need a reliable predictable free
space estimation in order to be able to maximise the
number of stored files before we delete to add new.
Therefore a better understanding of the inner workings
of JFFS would be appreciated.
arcom at ME /var$ du -s *
arcom at ME /var$ df
Filesystem 1k-blocks Used Available
Use% Mounted on
/dev/root 5888 5524 364
/dev/mtdblock1 1152 552 600
/dev/ram0 2011 52 1857
arcom at ME /var$
Many thanks, David
Nokia Game is on again.
Go to http://uk.yahoo.com/nokiagame/ and join the new
all media adventure before November 3rd.
More information about the linux-mtd