🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80760

Re: Mmap and maximum cycbuffs

#80760
From: Alexander Bartolich
Date: Sun, 26 Apr 2009 11:25
124 lines
6004 bytes
John F. Morse wrote:
> Alexander Bartolich wrote:
> [...]
> Did you click the link I provided to: http://linux.die.net/man/2/mmap ?

Why do you ask that?
I have the man page installed and even told you the package name.

>>> and "apt-cache show mmap" returns, "W: Unable to locate
>>> package mmap E: No packages found" when ran.
>>>     
>>
>> $ dpkg -L manpages-dev | wc -l
>> 1661
>>
>> I guess it would exceed the available storage to add the title of
>> every included man page to the description of package "manpages-dev".
>
> Not really.

Why do you say that?
Package manpages-dev contains about 1650 man pages. If the average
title is 8 characters long a listing would take up 12 kiB.

> john@n100:~$ apt-cache show manpages-dev
> [...]
> Description: Manual pages about using GNU/Linux for development
>  These man pages describe the Linux programming interface, including
>  these two sections:
>   2 = Linux system calls.
>   3 = Library calls (note that a more comprehensive source of information
>       may be found in the glibc-doc package).

Obviously this discription does not include the title of every
included man page.

> [...]
>>> Q2. I suspect the eight partitions restriction mentioned above would be
>>> for the maximum four primary partitions on each hard drive,
>>
>> I suspect the number eight refers to the partition scheme used by
>> Sun on its SPARC hardware. Once upon a time there was a similar
>> limit of four on the IBM PC.
>
> There still is the limit. However, "modern" OS software can work around it.

Primary partitions are defined as an array of entries in the master
boot record. This array has four entries.

According to Ralf Brown's Interrupt List partition type 05h ("extended
partition") was introduced with DOS 3.3 in 1986. Logical partitions in
an extended partition are defined as a single linked list. The maximum
number of entries in a single linkes list depends only on the address
space.

>>> 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)?
>>
>> The number of disks in the system has nothing to do with the
>> number of slices that you can partition one such disk into.
>
> That was not my question.

*scratches head*

I guess you interpret the quoted eight partitions as the total limit
of partitions in the system, across all attached disks.

However, your reasoning makes no sense. If you know that every IDE
channel can drive two disks (master and slave) then you should also
know that since the days of the i386 the standard hardware provides
two IDE channels. So the ancient machine on which Torvalds started
development already was capable of 16 primary partitions.

>>> Q3. Would this restriction of eight partitions still apply if extended
>>> partitions with many logical partitions are used?
>>>     
>>
>> You can have an infinite number of logical partitions. However,
>> the device node scheme of the old Linux IDE driver supports only
>> 63 partitions. The SCSI driver, which is nowadays also used for
>> IDE and SATA, supports only 15.
>
> That's 15 drives on EACH SCSI interface card. More cards = more drives. ;-)
>
> Still, you wandered off track from my question about the eight partition
> restriction.

See above.

>>> Q4. What about SCSI and SATA drives and controller interfaces that can
>>> accommodate more than four devices, or added PCI ATA interfaces?
>>>     
>>
>> The device node scheme of Linux:
>>
>> $ vdir /dev/sd*
>> brw-rw---- 1 root disk 8,  0 2009-04-08 08:03 /dev/sda
>> brw-rw---- 1 root disk 8,  1 2009-04-08 08:03 /dev/sda1
>> brw-rw---- 1 root disk 8,  2 2009-04-08 08:03 /dev/sda2
>> brw-rw---- 1 root disk 8,  3 2009-04-08 08:03 /dev/sda3
>> brw-rw---- 1 root disk 8, 16 2009-04-08 08:03 /dev/sdb
>> brw-rw---- 1 root disk 8, 17 2009-04-08 08:03 /dev/sdb1
>> brw-rw---- 1 root disk 8, 18 2009-04-08 08:03 /dev/sdb2
>> brw-rw---- 1 root disk 8, 19 2009-04-08 08:03 /dev/sdb3
>>                        ^  ^^
>> major device number ---+   |
>>                            |
>> minor device number -------+
>>
>> You can have 256 / 16 = 16 disks.
>> Each disk can have 15 partitions.
>> If you need more, use the logical volume manager (LVM).
>
> Thanks, Alexander, but I wasn't needing a hardware lesson. ;-)

I gave you the exact limit on the number of partitions under Linux.
Yes, this limit is per disk, not a total across all disks.
And a way to circumvent this limit.
What else do you want?

-- 
seq 100 | sed 's/.*/Romani Ite Domum./'
Technical Details
Message-ID: <gt1gaj$83p$1@news.albasani.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!newsfeed.straub-nv.de!news.albasani.net!not-for-mail
References: <gt037l$otv$1@optima7.xanadu-bbs.net> <gt07t4$mda$1@news.albasani.net> <gt0h4i$sne$1@optima7.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <gt1gaj$83p$1@news.albasani.net>
Subject: Re: Mmap and maximum cycbuffs
Date: Sun, 26 Apr 2009 11:25:07 +0000
From: Alexander Bartolich <alexander.bartolich@gmx.at>
References: <gt037l$otv$1@optima7.xanadu-bbs.net> <gt07t4$mda$1@news.albasani.net> <gt0h4i$sne$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!newsfeed.straub-nv.de!news.albasani.net!not-for-mail
Newsgroups: news.software.nntp
Organization: albasani.net
Lines: 124
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.albasani.net
 VYJiIVnErukTvoowiYYrLp0FlNRdeTewBuq/oGN3/TrR0iqvpN7GFgne2T6yfBxXjp7YMsAaxZWurXB/LHyvdLvLQTEH03HlZ+oa2OCyjQ2X+twh6Gu8vv8F03x3vKFV
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Sun, 26 Apr 2009 11:25:07 +0000 (UTC)
X-User-ID: a/ral1OtBSTZd+Y7kMTcCHmWQAzzbiTTq5Ke6XGt6gzFycUzv8o8LggcGg0phhzDusWya9D6cArSNaMaj7o3ew==
Cancel-Lock: sha1:XaEAA8yaOTv/Rm1RWxaKXXt4vGM=
User-Agent: slrn/0.9.9p1 (Linux)
X-NNTP-Posting-Host: LW6e8HEVne/5TskBv7WTtX/AOioJ1SlRTeeBzKzVfFI=