Article View: news.software.nntp
Article #43271Re: Only two of my cnfs buffres are used
From: cball
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
54 lines
3188 bytes
3188 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: : [Charles Ball] :> - Cnfs method statements must map to unique metacycbuffs. (I :> wanted to send articles matching newsgroups: *binaries* OR size: :> 30000 to BIN). : Yes, you can do that. Great. Thanks for the info. :> - cnfs storage should protect space used for disk format data; :> filesystems do this, skiping a cylinder wastes space and makes :> more work than needed. : This is impossible. CNFS cannot know which cylinder the file is on, : so it would have to skip the first few kilobytes always. Do you know : how large the partition table is on various OSes? The best solution : is to use files rather than raw partitions. : The file system has more direct information from the kernel, so it is : easier for it to do this. OK, I did some fact checking: Solaris stores the disk label in 512 bytes. Linux is a bit more involved since it supports labels for many OS types, but swap.h on my Rh6.1 system indicates that the first 1k (1024) bytes of a swap device are preserved for the disk label, so that sounds like a safe number. Irix and AIX ship with integrated logical device subsystems; I'm pretty sure these provide inherent protection to disk label data. I would gladly trade 1K at the beginning of each cycbuff for the 2.3Mb that I'm giving up in the cylinder that I currently throw out. Over time, I'd expect to see fewer, larger cycbuffs which would tend to decrease the (1k) waste. However, the major benefit would be that it is no longer necessary to document/remember that CNFS devices cannot be placed on cylinder 0. I do not agree that CNFS is better suited to files than to block devices. Large files (pretty sure this is > 8Mb for solaris) require double indirection and this will significantly slow access; even if the kernel is caching indirect blocks it is a lot of work that is eliminated by CNFS on block devices. The only incentive I see to use large files on solaris is that it is not possible to seek more than 2Gb on a block device. Sticking to 2Gb cycbuffs requires lots of cycbuffs (and many open file handles) to hold a full feed on anything more than a nominal basis. One of the things that I will eventually try locally is writing a CNFSseek routine that operates in 2Gb increments. -Charles
Technical Details
Message-ID:
<85kv84$svn$1@news3.bu.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<38561B72.2DC27B62@esoc.esa.de> <1rwvqgqe98.fsf@haey.ifi.uio.no> <83tcm6$jl9$1@news1.bu.edu> <1r7lhe7vil.fsf@haey.ifi.uio.no>Show Full Headers
Complete Article Headers
Message-ID: <85kv84$svn$1@news3.bu.edu>
Subject: Re: Only two of my cnfs buffres are used
Date: Thu, 13 Jan 2000 00:00:00 +0000
From: <cball@buit6-l.bu.edu>
References: <38561B72.2DC27B62@esoc.esa.de> <1rwvqgqe98.fsf@haey.ifi.uio.no> <83tcm6$jl9$1@news1.bu.edu> <1r7lhe7vil.fsf@haey.ifi.uio.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 572153846
X-Trace: news3.bu.edu 947781700 29687 128.197.20.10 (13 Jan 2000 16:41:40 GMT)
Organization: Boston University
User-Agent: tin/pre-1.4-19990517 ("Psychonaut") (UNIX) (Linux/2.2.12-20 (i686))
Newsgroups: news.software.nntp
X-Complaints-To: news@bu.edu