I understand there's often a some discrepancy between du and df but when I du my ramdisk it occupies 13G, whereas df shows it's using 16GB. This seems quite a big difference. Is this normal?
[root@zserver2 ramdisk]# du -h .
...
13G .
[root@zserver2 ramdisk]# df -h
Filesystem Size Used Avail Use% Mounted on
...
none 16G 16G 0 100% /home/stuff/ramdisk
The ramdisk is defined in fstab and defaults to 50% of my 32GB ram:
# cat /etc/fstab
...
none /home/stuff/ramdisk tmpfs mode=774,uid=500,gid=501 0 0