Article View: news.software.nntp
Article #80753Re: Mmap and maximum cycbuffs
From: Russ Allbery
Date: Sun, 26 Apr 2009 00:04
Date: Sun, 26 Apr 2009 00:04
36 lines
2740 bytes
2740 bytes
"John F. Morse" <xanadu.bbs@example.invalid> writes:
> Q1. How can I determine if my OS supports mmap? I do not find an
> mmap(2) man page, and "apt-cache show mmap" returns, "W: Unable to
> locate package mmap E: No packages found" when ran. So I guess mmap is
> not a "package" but a compiled-in kernel function?
Right.
> Does anyone know if Debian 3.1 (Sarge 2.4.27-2-386), 4.0 (Etch
> 2.6.18-6-486) and 5.0 (Lenny 2.6.26-2-686), as well as Ubuntu 8.04
> (Hardy Heron 2.6.24-23-generic) support mmap?
It's not mmap in general (which is supported by any modern UNIX
variant), but whether mmap on raw block devices is supported. I believe
this is supported with any current Linux 2.6 version since it was added
late in 2.4, but I'm not sure that you'll find it gives you much in the
way of performance benefits over a large disk file.
> Q2. I suspect the eight partitions restriction mentioned above would
> be for the maximum four primary partitions on each hard drive, on each
> PATA (IDE/EIDE) channel (master and slave, or "device0" and
> "device1")? What about doubling this to 16 if a secondary PATA channel
> is used (two additional hard drives)?
No, it's that you used to only be able to get four primary and four
extended partitions per drive. I think this is fairly obsolete at this
point with extended logical partitions, although I'm not positive. (I
never have any need to create lots of partitions these days, so I
haven't looked.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<873abwxou7.fsf@windlord.stanford.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!postnews.google.com!news1.google.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mailReferences:
<gt037l$otv$1@optima7.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <873abwxou7.fsf@windlord.stanford.edu> Subject: Re: Mmap and maximum cycbuffs Date: Sat, 25 Apr 2009 17:04:16 -0700 From: Russ Allbery <rra@stanford.edu> References: <gt037l$otv$1@optima7.xanadu-bbs.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!postnews.google.com!news1.google.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 36 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.stanford.edu 1240704256 10762 171.67.225.134 (26 Apr 2009 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:sUJ/3aa+qBhzOqBRMhRQ7BrJmVQ=