Article View: news.software.nntp
Article #30070Re: madvise() works (!)
From: bill davidsen
Date: Mon, 27 Jul 1998 00:00
Date: Mon, 27 Jul 1998 00:00
27 lines
2039 bytes
2039 bytes
In article <6pg4rq$drt$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: | I've started messing with calling madvise() after mmap(). It | actually works! At least on FreeBSD systems. Please put all the BSDisms under conditional, unless this code is going to be BSD-only. | I see a major increase in disk efficiency and a noticeable decrease in | dnewslink latencies. On news1.best.com with 76+ dnewslink's running each | disk was saturating at around 1000 sps (essentially a seek-bound situation) | After changing dnewslink to call madvise with MADV_SEQUENTIAL, each disk | is now saturating at 1800 sps. (I am presuming that the extra information | read from disk is being put to good use since dnewslink dumps the whole | article over the network). 1000sps = 1ms seek, 1800sps = 550us seek. Either you you have access to a brand of drive I've never seen or your "each disk" measurement must be for an entire RAID array. -- Bill Davidsen (davidsen@tmr.com) CTO, TMR Associates, Inc What do you mean I shouldn't do things like that at my age? At my age if you don't do things like that you might die of natural causes or boredom!
Technical Details
Message-ID:
<6pif6k$aru$1@newssvr09-int.news.prodigy.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6pg4rq$drt$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <6pif6k$aru$1@newssvr09-int.news.prodigy.com> Subject: Re: madvise() works (!) Date: Mon, 27 Jul 1998 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <6pg4rq$drt$1@flea.best.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 375380071 X-Complaints-To: news@prodigy.com X-Trace: newssvr09-int.news.prodigy.com 901562388 11134 199.4.137.118 (27 Jul 1998 17:59:48 GMT) Organization: TMR Associates, Schenectady NY NNTP-Posting-Date: 27 Jul 1998 17:59:48 GMT Newsgroups: news.software.nntp,comp.unix.bsd.freebsd.misc Originator: davidsen@darkstar.prodigy.com