df shows wrong usage for tmpfs

Christos Chatzaras chris at cretaforce.gr
Wed Feb 20 18:31:51 UTC 2019


Any idea why df shows wrong usage? I restart nginx and mysql and even when these services are stopped it still shows wrong usage.

df -h /tmpfs | grep tmpfs
tmpfs         8.0G    1.1G    6.9G    13%    /tmpfs

du -sh /tmpfs
44M    /tmpfs

fstat -f /tmpfs
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
www      nginx       8662    5 /tmpfs      224 -rw-r--r--       0  w
www      nginx       2706    5 /tmpfs      224 -rw-r--r--       0  w
www      nginx       2706  126 /tmpfs     1466 -rw-------   51809  r
www      nginx       2706  133 /tmpfs     2869 -rw-------     641  r
root     nginx      99550    5 /tmpfs      224 -rw-r--r--       0  w
mysql    mysqld     68713    5 -             5 -rw-------       0 rw
mysql    mysqld     68713    6 -             6 -rw-------       0 rw
mysql    mysqld     68713    7 -             7 -rw-------       0 rw
mysql    mysqld     68713    8 -             8 -rw-------       0 rw
mysql    mysqld     68713   12 -             9 -rw-------       0 rw
mysql    mysqld     68713   14 /tmpfs       10 -rw-r-----    3109  w


More information about the freebsd-questions mailing list