Re: No more U* files

Miernik <[email protected]>
Newsgroups gmane.network.wwwoffle.user
Message-ID <[email protected]>
Paul A. Rombouts <[email protected]> wrote:
> 
> Having many small files is quite inefficient. For example, on my system 
> each U* file occupies 4K of disk space. With 78587 U* files that is 
> 307MB of occupied disk space. However, the total size of these files is 
> little more than 5MB.

I have 65781 U files in my cache, and using reiserfs3.6 I get (wwwoffle
is on a separate partition):

szrenica:/var/cache/wwwoffle/http# du -s --block-size=1
1065919488      .
szrenica:/var/cache/wwwoffle/http# du -s --block-size=1 --apparent-size
654599465       .
szrenica:/var/cache/wwwoffle/http# df --block-size=1 .
Filesystem    1B-blocks      Used Available Use% Mounted on
/dev/hda6    1340624896 784392192 556232704  59% /var/cache/wwwoffle
szrenica:/var/cache/wwwoffle/http#

As you can see, the data size is 655 MB, with 4 kiB blocks it would
occupy 1066 MB (du doesn't know about reiserfs tail-packing), but the
tail-packing makes it actually occupy 784 MB (even a bit less, as there
is stuff besides http/ but that is marginal. 

So I achieve much of your result with tail-packing - I save ~ 280 MB.
Well, your way I'd save another ~ 120 MB, right?
Total saving: ~ 400 MB on a 1 GB cache. 

-- 
Miernik             _________________________  xmpp:miernik-QDLRX95UGO4k+I/[email protected]
___________________/_______________________/      mailto:[email protected]
Protect Europe from a legal disaster. Petition against software patents
http://www.noepatents.org/index_html?LANG=en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.