Article View: news.software.nntp
Article #21855Re: *NEW* News Server Software!
From: Edward S. Marshall
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
52 lines
3570 bytes
3570 bytes
On 24 Sep 1997 13:20:03 -0500, Leslie Mikesell <les@MCS.COM> wrote: >I think it is kind of odd that everyone seems to think that the >common unix filesystems are not good at storing and retrieving >files. If this is true, then the filesystem design should be >changed for everything not just news. However, I think the real Actually, I think what most people are basically saying here (even if they don't realize it) is that the API for accessing a standard UNIX filesystem is a bottleneck, because you are saddled with at least three syscalls for every file you deal with: open(), close(), and some intermediate manupulation (either a write() or a read()). No matter how efficient your filesystem is, you still have an enormous amount of overhead (relatively speaking) with those jumps to kernel space, since for each syscall, you have a context switch, a switch to protected mode, the actual kernel code, a switch back to userspace, and a context switch, along with some scheduling fun in there as well. For those proponents who would design a new filesystem that "works better" for uses such as INN: you might consider tackling the API problem first. Find a way to get your kernel accesses down to once per file (i.e. merging what we already do to files over three syscalls into one call), and you'll see a noticable improvement. Or, instead of inventing highly specialized filesystems with highly specialized APIs, implement a virtual filesystem (of a sort) in userspace. Create a library for file access, and implement your funky new filesystem as a single file or a series of files (ie. break out your inode tables into a separate file, or files, and break the "filesystem" over several files, which could physically reside on separate disks, etc). Suddenly, since you're in userspace, it stops mattering whether or not you have three operations per file; it's just a function call, not a kernel call. Think about it: a few open() and close() calls, as opposed to one of each for *every* article you bring through the system. You're now down to dealing with only one efficiency issue: manipulating the data via read(), write(), and seek()...and most UNIX filesystems tend to be pretty good in this area. -- .-----------------------------------------------------------------------------. | Edward S. Marshall <emarshal@xnet.com> | Systems/Network Administrator, | | http://www.xnet.com/~emarshal/ | XNet Information Systems, Inc. | `-----------------------------------------------------------------------------' [ Are you a spammer looking for a great opportunity to be blacklisted? Then ] [ have your automatic bots email spam@logic.net and secure a spot on my list! ]
Technical Details
Message-ID:
<60c34g$joh$1@flood.xnet.com>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:
<5vpddn$qlb$1@news5.ais.net> <5vta1f$gtd$1@ftel.ftel.co.uk> <34227DB2.6C2781D0@spinne.com> <vxk3en1e2z0.fsf@pocari-sweat.jprc.com> <60blkj$im8$1@Mercury.mcs.net>Show Full Headers
Complete Article Headers
Message-ID: <60c34g$joh$1@flood.xnet.com> Subject: Re: *NEW* News Server Software! Date: Wed, 24 Sep 1997 00:00:00 +0000 From: emarshal@xnet.com (Edward S. Marshall) References: <5vpddn$qlb$1@news5.ais.net> <5vta1f$gtd$1@ftel.ftel.co.uk> <34227DB2.6C2781D0@spinne.com> <vxk3en1e2z0.fsf@pocari-sweat.jprc.com> <60blkj$im8$1@Mercury.mcs.net> 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: 275323181 X-Complaints-To: news-admin@news.xnet.com X-Trace: flood.xnet.com 875139024 20241 (None) 198.147.221.29 Organization: XNet Information Systems, Inc. X-Spambait: spam@logic.net Newsgroups: news.software.nntp