Re: [Debian]: Swap-Space (war: man/swap o. Gestern war wohl nicht m ein Tag)
On 10 Dec, Volker Hejny wrote:
>
> Ich habe gelesen, dass Linux jeweils nur 128 MB Swap Space pro ??? (und
> das ist meine Frage :-) benutzen kann. In der Info stand sowas wie
> 'pro Platte'. Also:
>
> 1. Stimmt das mit den 128 MB (bei viel Speicher ziemlich hinderlich).
> 2. Wenn ja, gilt das dann pro Platte oder pro Partition (was ich eher
> vermute).
>
> Viele Gruesse,
> Volker
>
Aus der "mkswap" MAN-Page:
The MINCOUNT and MAXCOUNT values for a swap area are:
MINCOUNT = 10 * PAGE_SIZE / 1024
MAXCOUNT = (PAGE_SIZE - 10) * 8 * PAGE_SIZE / 1024
For example, on a machine with 4kB pages (e.g., x86), we
get:
MINCOUNT = 10 * 4096 / 1024 = 40
MAXCOUNT = (4096 - 10) * 8 * 4096 / 1024 = 130752
As each block is 1kB large, the swap area in this example
could have a size that is anywhere in the range from 40kB
up to 127.6875MB.
If you don't know the page size that your machine uses,
you may be able to look it up with "cat /proc/cpuinfo".
The reason for the limit on MAXCOUNT is that a single page
is used to hold the swap bitmap at the start of the swap
area, where each bit represents a single page. The reason
for the -10, is that the signature is "SWAP-SPACE" -- 10
characters.
Da der SWAP-Bereich auf einer Partition angelegt wird, gehe ich davon
aus, dass dieses pro Partition gilt.
Allerdings existiert meines Wissens eine Limitierung auf 8
SWAP-Partitionen pro Hostsystem.
Nach der Quelle dieser Information suche ich allerdings noch.
Bye
Benrhard
--
Bernhard Weiss
KryptoKom GmbH
Dennewartstrasse 27
52068 Aachen
Tel.: ++49 241 963 1340
Fax.: ++49 241 963 1390
EMail: Bernhard.Weiss@KryptoKom.DE
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder: 284
Reply to: