From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <8cf1be637c136fea77c25a1b6df9f24a@chula.quanstro.net> References: <20120110024048.GA407@polynum.com> <8cf1be637c136fea77c25a1b6df9f24a@chula.quanstro.net> Date: Tue, 10 Jan 2012 16:04:14 +1100 Message-ID: From: Bruce Ellis To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] fossil (again) Topicbox-Message-UUID: 57584ad0-ead7-11e9-9d60-3106f5b1d025 Many a moon ago Basser was doing something about incorporating various bits into the a 32V Vax system. They went for a 1K block filesystem (don't remember which one, early BSD?) but spent a large amount of time on retrofitting 512B blocks. I wrote a small program that traversed a disk and reported on 1K vs 512B usage. The 1K filesystem used 27% less space. There's a random one point sample space. They pushed ahead with the smaller block size as "it must have less waste". Then again a lot of silly things were done and I moved to Murray Hill - don't let theory and measurements get in the way of a their comfortable paying jobs - be safe and stupid. A University was not the place for Computer Science. Then again I have a Coraid so my bits are safe. I bought a Netgear NAS recently. It seemed like a bargain at a little over the price of the 1T drive it came with. I put a 1T drive in the second slot and hope this will be a good place to put stuff (the 2nd drive mirrors the first). If i had the time I'd buy a second one and hack it ruthlessly to support 9P. It supports CIFS, http, ftp, and has a torrent client(!) of all things. Don't underestimate dumping a tar of current work via ftpfs. As primitive a solution as you could ask for it is great for my disparate herd of stuff. Type "bu" in some root on some OS when you've done your work for the day. Your call. brucee On 10 January 2012 11:44, erik quanstrom wrote: >> Side note: are there statics about the Plan9 distribution, to know what >> is the best size of blocks? It seems that there is a lot of small text >> files, so 8kb is perhaps too much. > > i did these calculations for the files in / on my worm. =C2=A0i used valu= es > from ken's file server for a variety of block sizes. =C2=A0the program is > careful to count all the indirect blocks as well, but for simplicity i > ignore directories rather than working hard to guess how much > storage they're using. =C2=A0(can be wrong if entries are deleted.) > > i think these numbers will be similar to those of fossil. > > blksize files =C2=A0 blocks =C2=A0mb used > 16384 =C2=A0 35738 =C2=A0 1427263 22300 > 8192 =C2=A0 =C2=A035738 =C2=A0 2675543 20902 > 4096 =C2=A0 =C2=A035738 =C2=A0 7775796 30374 > > obviously, there are two competing forces at work here. =C2=A0the amount > of space wasted off the tail of the last block, and the amount of blocks > required to map the data into the inode completely. =C2=A0it seems that f= or > my mix of files, 8k is a winner. > > - erik > --=20 Don't meddle in the mouth -- MVS (0416935147, +1-513-3BRUCEE)