🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80751

Mmap and maximum cycbuffs

#80751
From: John F. Morse
Date: Sat, 25 Apr 2009 22:35
74 lines
4178 bytes
I have a couple of questions concerning the following
http://www.eyrie.org/~eagle/software/inn/docs-2.4/install.html

cycbuff.conf

cycbuff.conf is only required if CNFS is used. If you aren't using CNFS,
skip this section.

CNFS stores articles in logical objects called metacycbuffs. Each
metacycbuff is in turn composed of one or more physical buffers called
cycbuffs. As articles are written to the metacycbuff, each article is
written to the next cycbuff in the list in a round-robin fashion (unless
sequential mode is specified, in which case each cycbuff is filled
before moving on to the next). This is so that you can distribute the
individual cycbuffs across multiple physical disks and balance the load
between them.
There are two ways to create your cycbuffs:

   1. Use a block device directly. This will probably give you the most
      speed since it avoids the file system overhead of large files, but
      it requires your OS support mmap(2) on a block device. Solaris
      supports this, as do late Linux 2.4 kernels. FreeBSD does not at
      last report. Also on many PC-based Unixes it is difficult to
      create more than eight partitions, which may limit your options.
   2. Use a real file on a filesystem. This will probably be a bit
      slower than using a block device directly, but it should work on
      any Unix system.

If you're having doubts, use option #2; it's easier to set up and should
work regardless of your operating system.


####


Number 3 above wasn't listed: "Ask someone in n.s.n for details." I'm
definitely full of doubts, but I wish to further my knowledge, so please
help where you can.

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? I don't find it in /proc
nor /var/log/kern.log nor /var/log/dmesg.

I did locate: http://linux.die.net/man/2/mmap

http://en.wikipedia.org/wiki/Mmap

http://linux.about.com/library/cmd/blcmdl2_mmap.htm

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?

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)?

Q3. Would this restriction of eight partitions still apply if extended
partitions with many logical partitions are used?

Q4. What about SCSI and SATA drives and controller interfaces that can
accommodate more than four devices, or added PCI ATA interfaces?


-- 
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: <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!goblin3!goblin.stu.neva.ru!optima7.xanadu-bbs.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <gt037l$otv$1@optima7.xanadu-bbs.net>
Subject: Mmap and maximum cycbuffs
Date: Sat, 25 Apr 2009 17:35:32 -0500
From: "John F. Morse" <xanadu.bbs@example.invalid>
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!goblin3!goblin.stu.neva.ru!optima7.xanadu-bbs.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 74
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: optima7.xanadu-bbs.net 1240698933 25535 192.168.89.210 (25 Apr 2009
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Sat, 25 Apr 2009 22:35:33 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.21 (X11/20090318)