Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
swap prioity?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Neotux
Apprentice
Apprentice


Joined: 14 Feb 2003
Posts: 162

PostPosted: Sun Jan 04, 2004 4:44 pm    Post subject: swap prioity? Reply with quote

hi,
beim start steht da, dass swap ne priority von -1 hat. in der docu steht, dass swap eine priority von 0-32767 haben muss.
so jetzt meine Frage:
die priority hat nur auswirkungen, wenn man mehrer swap drives hat, oder?
und welche auswirkung hat -1? der swap funktionierte bei mir eigentlich immer recht ordentlich.
Back to top
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1939

PostPosted: Sun Jan 04, 2004 6:11 pm    Post subject: Reply with quote

man 2 swapon wrote:

PRIORITY
Each swap area has a priority, either high or low. The default prior-
ity is low. Within the low-priority areas, newer areas are even lower
priority than older areas.

All priorities set with swapflags are high-priority, higher than
default. They may have any non-negative value chosen by the caller.
Higher numbers mean higher priority.

Swap pages are allocated from areas in priority order, highest priority
first. For areas with different priorities, a higher-priority area is
exhausted before using a lower-priority area. If two or more areas
have the same priority, and it is the highest priority available, pages
are allocated on a round-robin basis between them.

As of Linux 1.3.6, the kernel usually follows these rules, but there
are exceptions.


-1 bedeutet einfach: Keine Priorität gesetzt, also niedrige Default-Priorität. AFAIK hat die Priorität bei nur einer Swap-Partition keine Auswirkungen. Bei mehreren kannst du z.B. der schnelleren Festplatte den Vorzug geben.
Back to top
View user's profile Send private message
Neotux
Apprentice
Apprentice


Joined: 14 Feb 2003
Posts: 162

PostPosted: Sun Jan 04, 2004 6:25 pm    Post subject: Reply with quote

ok, danke, dami währe das geklärt :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum