Ram disk space.

I have allocated a ram disk (12M) as a directory. When I do a “df” on the
/dev/ram says that it is using approximately 10M. However, when I do a “du”
on the directory, the directory is listed as approximately 5M. Why?

I’m guessing but here’s my guess.

When you loaded the ram disk you told it that it was allowed to allocate as
much as 12 MB. At some point it contained 10 MB and so it had to allocate
10 MB. Some of that data was subsequently deleted, but it can’t/won’t give
that memory back to the OS. ‘du’ is showing that you have 5 MB of data in
it currently.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Lloyd Elwood” <LloydE@harding.ca> wrote in message
news:9t3feo$mvh$1@inn.qnx.com

I have allocated a ram disk (12M) as a directory. When I do a “df” on the
/dev/ram says that it is using approximately 10M. However, when I do a
“du”
on the directory, the directory is listed as approximately 5M. Why?