[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Single Page
Top Document: News.software.b Frequently Asked Questions (FAQs)
Previous Document: What do C News and INN do with articles with no Distribution?
Next Document: What can I do to prevent running out of inodes in spool?
-
Search the FAQ Archives
Single Page
Top Document: News.software.b Frequently Asked Questions (FAQs)
Previous Document: What do C News and INN do with articles with no Distribution?
Next Document: What can I do to prevent running out of inodes in spool?
Wouldn't it save space to compress stored news?
Henry Spencer: There are three fundamental problems that have always pretty much scuttled proposals for article compression. One is that it saves space at the expense of CPU time, and CPU time is not always in ample supply on news hosts. A much more serious problem is: how *much* space does it save? Bear in mind that news articles are small -- they consistently average about 3KB -- and small files do not compress particularly well. Worse, the quantum of disk storage on many systems is quite large. If you compress the typical article from 3K-1 bytes to 2K+1 bytes, most modern systems will see *no storage savings at all*, because they allocate disk in 1KB blocks. The final problem is that an improvement by a factor of (say) 1.5 does not buy you a lot of time in the news business. In exchange for a lot of work and a permanently raised CPU load, you set the growth curve back a few months. Geoff Collyer: A more general solution than hacking all the news software, that also benefits ftp archives and the like, is to write a user-mode (NFS) file server for /usr/spool/news (and /usr/spool/ftp, etc.) that compresses files as they are written (after the close for non-sequential writes) and decompresses files when they are read (the entire file will have to be uncompressed temporarily into scratch space for non-sequential reads). Such a server provides compression transparently and is in a good position to decide that very small files should not be compressed because there is little or no benefit to doing so. Keeping the server in user mode avoids the horror of embedding compress in kernel code.
Top Document: News.software.b Frequently Asked Questions (FAQs)
Previous Document: What do C News and INN do with articles with no Distribution?
Next Document: What can I do to prevent running out of inodes in spool?
Single Page
[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
linimon@nominil.lonesome.com
Last Update October 11 2008 @ 00:15 AM