|
|
Ram disk free space does not align with what is actually being reported by ls -l
|
|
10/19/2011 12:41 PM
post89456
|
Ram disk free space does not align with what is actually being reported by ls -l
Hi:
We are using QNX641 (PowerPC version) and have created a 32M ram disk using the following commands:
devf-ram -i 2 -s0,32M &
waitfor /dev/fs2p0
flashctl -p /dev/fs2p0 -e -f -n /ram -m
Running 'df -kP' immediately followed by 'ls -l':
# df -kP
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/fs2p0 32704 25291 7412 78% /ram
# ls -l
total 34203
-rw-r--r-- 1 1000 1000 172 Aug 29 20:36 .lldpport.conf
-rw-r--r-- 1 root 0 41 Oct 18 16:35 lldp-debug
-rw-r--r-- 1 root 0 953 Oct 18 16:35 plm-debug
-rw-r--r-- 1 root 0 2657904 Oct 19 11:26 slc-ew-debug
-rw-r--r-- 1 root 0 3145819 Oct 19 10:13 slc-ew-debug.1_2011-10-19-11-26
-rw-r--r-- 1 root 0 3145816 Oct 19 06:48 slc-ew-debug.2_2011-10-19-10-13
-rw-r--r-- 1 root 0 2267346 Oct 19 11:34 slc-we-debug
-rw-r--r-- 1 root 0 3145728 Oct 19 10:18 slc-we-debug.1_2011-10-19-11-34
-rw-r--r-- 1 root 0 3145728 Oct 19 07:03 slc-we-debug.2_2011-10-19-10-18
So 'df' reports ~25M of disk space is used yet if you tally up the contents of the directory as reported by ls -l, only
~17M are used. Not clear why the discrepancy? I can understand that there might be some overhead for the actual
management of the partition but 8M??
Thanks
Robert
|
|
|
|
|