Article View: news.software.nntp
Article #80758Re: Mmap and maximum cycbuffs
From: John F. Morse
Date: Sun, 26 Apr 2009 02:33
Date: Sun, 26 Apr 2009 02:33
108 lines
5898 bytes
5898 bytes
Russ Allbery wrote: > "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. > I don't know how late the Sarge kernel is, but it is too old to now be used. So the 2.6 kernels should all have the mmap support. I probably will use files instead, but wanted to know all I could before deciding. >> 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.) > Yes, four primary partitions were the limit. AFAIK, it still is a limit on most "PC" BIOS systems when using PATA (IDE/EIDE/ATAPI/...). If/when Unix "takes over," then the rules change. However, you could make one (or more) primary partitions into an "extended partition," which is a "container" for logical partitions. The maximum number of logical partitions is now limited by the size of the drive. "Under most DOS and some Windows operating systems, the number of logical drives in an extended partition was limited to 23, because the FDISK program couldn't create any more drives than it could assign a drive letter to; thus, assuming C: is a primary drive, the DOS drive letters D: through Z: allow for only 23 more drives. Under Windows NT and later, an unlimited number of logical partitions can be created using the Computer Management's, Disk Management Extension; though in practice, users rarely created more than 23, since the Windows NT shell (user interface) was still limited to accessing only those drives with an A: through Z: drive letter. Some newer operating systems may implement an AA: through ZZ: drive lettering scheme; making it possible to access over 670 logical drives." http://en.wikipedia.org/wiki/Extended_partition#fn_4 My question was really asking if that eight partition restriction was because of "old thinking," or if more than eight could now be used, since more than eight is possible with extended partitions and multiple drives. IOW, the hardware has vastly improved, but does the software still have the eight partition restriction. You and I seem to be thinking along the same track: believing it is possible, but not actually have done it, we can't swear on it. Maybe I should be the gofer? ;-) I have two weeks of time (wasted) on one 40 GB hard drive, trying to get Linux installed and running, when the BIOS evidentially has a 32 GB restriction. I tried all kinds of tricks, like /boot in the first small partition, and then swap following that, with / using the remainder of the 32 GB, but it still wouldn't install and run. Luckily the hard drive has a duplicate MS-SL-CS jumper header for a "32GB Clip," so I did get it to work, but lost 8 GB. Before someone calls me a "tightwad" and wonders why I don't upgrade, let me just say these 12 PCs that I wish to use only pull 25 watts, so they are the most economical. If I use a better PC, the wattage will be at least double for the PCs, and additional power for air conditioning. Plus, the clunkers will go to "waste." ;-) -- John No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID:
<gt0h5a$sne$2@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!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mailReferences:
<gt037l$otv$1@optima7.xanadu-bbs.net> <873abwxou7.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <gt0h5a$sne$2@optima7.xanadu-bbs.net> Subject: Re: Mmap and maximum cycbuffs Date: Sat, 25 Apr 2009 21:33:14 -0500 From: "John F. Morse" <xanadu.bbs@example.invalid> References: <gt037l$otv$1@optima7.xanadu-bbs.net> <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!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 108 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1240713194 29422 192.168.89.210 (26 Apr 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sun, 26 Apr 2009 02:33:14 +0000 (UTC) User-Agent: Thunderbird 2.0.0.21 (X11/20090318) In-Reply-To: <873abwxou7.fsf@windlord.stanford.edu>