Andrei Borzenkov wrote:
18.10.2015 11:26, Per Jessen пишет:
I have two directories, one being a copy of the other:
# l temp* temp: total 3860 drwxr-xr-x 2 root root 3846144 2015-10-11 10:29 ./ drwxr-xr-x 9 root root 40960 2015-10-18 10:06 ../ -rw-r--r-- 1 root root 3639 2015-10-11 09:45 file1 -rw-r--r-- 1 root root 4057 2015-10-11 09:45 file2 -rw-r--r-- 1 root root 3568 2015-10-11 09:45 file3 -rw-r--r-- 1 root root 4194 2015-10-11 10:12 file4 -rw-r--r-- 1 root root 3861 2015-10-11 10:12 file5
temp2: total 88 drwxr-xr-x 2 root root 40 2015-10-18 10:07 ./ drwxr-xr-x 9 root root 40960 2015-10-18 10:06 ../ -rw-r--r-- 1 root root 3639 2015-10-11 09:45 file1 -rw-r--r-- 1 root root 4057 2015-10-11 09:45 file2 -rw-r--r-- 1 root root 3568 2015-10-11 09:45 file3 -rw-r--r-- 1 root root 4194 2015-10-11 10:12 file4 -rw-r--r-- 1 root root 3861 2015-10-11 10:12 file5
with 'du', the sizes of temp and temp2 :
# du -hsx temp temp2 3.8M temp 28K temp2
Well, size of *directory* is 3.8MB indeed. When files are deleted directories do not shrink (at least in those filesystems I am ware of) so if you once had millions of files there and then deleted them directory size remains big.
Thanks Andrei, Brandon - does that directory then actually take up that amount of physical space? This directory (and many others) are essential fifo queues where many new files are written and deleted daily. -- Per Jessen, Zürich (7.1°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org