On 20/01/18 02:01 PM, Carlos E. R. wrote:
I just joined my 5 remaining reiserfs running partitions into a single one: three of them were contiguous. I put the contents of 4 of them in the same partitions and did bind mounts on the directories. The 5th I converted to ext4.
I keep thus a single large reiserfs partitions because it has a lot of small files. For instance, one of the partitions had more than 600000 files in 1.5 GB.
I have a one-line script that tells me the distribution of file sizes, in base two increments. If anyone wasn't to adjust for other granularity or a fixed array of size, I'd be pleased to see the result. Here is the one liner: find . -xdev -type f -print0 | xargs -0 ls -l | \ awk '{size[int(log($5)/log(2))]++}\ END{for (i in size) printf("%10d %3d\n", 2^i, size[i])}' | \ sort -n My remaining reiserFS are df -h | egrep "reiser" vgmain-vHome reiserfs 8.0G 5.3G 2.8G 66% /home vgmain-vCamera reiserfs 5.0G 213M 4.8G 5% /home/anton/Photographs vgmain-vDownloads reiserfs 5.0G 405M 4.7G 8% /home/anton/Downloads vgmain-vDocuments reiserfs 5.0G 761M 4.3G 15% /home/anton/Documents vgmain-vResumes reiserfs 5.0G 91M 5.0G 2% /home/anton/Documents/Resumes vgmain-vMail reiserfs 5.0G 3.0G 2.1G 60% /home/anton/Mail vgmain-vPhotoByYear reiserfs 32G 5.5G 27G 17% /home/anton/Photographs/ByYear vgmain-PhotoYear2014 reiserfs 5.0G 4.6G 477M 91% /home/anton/Photographs/ByYear/2014 You'd expect /home to have lots of small files under the hidden "dot" configs: # cd /home/anton ;find . -xdev -type f -print0 | xargs -0 ls -l | awk '{size[int(log($5)/log(2))]++}END{for (i in size) printf("%10d %3d\n", 2^i, size[i])}' | sort -n 0 300 1 30 2 18 4 25 8 50 16 214 32 538 64 1211 128 1713 256 2233 512 5747 1024 11128 2048 6340 4096 8212 8192 5645 16384 4131 32768 2819 65536 2668 131072 904 262144 413 524288 262 1048576 149 2097152 104 4194304 58 8388608 25 16777216 16 33554432 10 67108864 1 134217728 1 268435456 1 Now here's the interesting one. Under my photogrpqhy-by-year there are the daya files, tar and jpg, and the sidecar files that Darktable uses. .RAF are the RAW, .xmp are the corresonding sidear files. -rw-r--r-- 1 anton anton 5.3M Mar 21 2017 2017Mar21-1605_DSCF0979.JPG -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1605_DSCF0979.JPG.xmp -rw-r--r-- 1 anton anton 25M Mar 21 2017 2017Mar21-1605_DSCF0979.RAF -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1605_DSCF0979.RAF.xmp -rw-r--r-- 1 anton anton 5.4M Mar 21 2017 2017Mar21-1605_DSCF0980.JPG -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1605_DSCF0980.JPG.xmp -rw-r--r-- 1 anton anton 25M Mar 21 2017 2017Mar21-1605_DSCF0980.RAF -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1605_DSCF0980.RAF.xmp -rw-r--r-- 1 anton anton 5.2M Mar 21 2017 2017Mar21-1606_DSCF0981.JPG -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1606_DSCF0981.JPG.xmp -rw-r--r-- 1 anton anton 25M Mar 21 2017 2017Mar21-1606_DSCF0981.RAF -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1606_DSCF0981.RAF.xmp -rw-r--r-- 1 anton anton 5.3M Mar 21 2017 2017Mar21-1607_DSCF0982.JPG -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1607_DSCF0982.JPG.xmp -rw-r--r-- 1 anton anton 25M Mar 21 2017 2017Mar21-1607_DSCF0982.RAF -rw-r--r-- 1 anton anton 1.4K Oct 23 18:45 2017Mar21-1607_DSCF0982.RAF.xmp It makes me wonder if there is space at the end of each of the data files for the sidecar file. That directory has a file size distribution of 1024 8 4194304 4 16777216 4 Overall, my 2017 photo size distribution is 1024 207 2048 22 4096 2 8192 5 131072 2 524288 6 1048576 4 4194304 125 16777216 137 and that spread seems the same year to year though the overall number may differ. So yes, if I'm using a file system with 4K blocks there is a lot of opportunity for tail packing. or conversely, there is a lot of space wasted on file systems that don't have tail packing. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org