View previous topic :: View next topic |
Author |
Message |
Neotux Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/17937171543e50ed1ccc81a.jpg)
Joined: 14 Feb 2003 Posts: 162
|
Posted: Sun Jan 04, 2004 4:44 pm Post subject: swap prioity? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mrsteven Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Funny_Figure/kotz.gif)
Joined: 04 Jul 2003 Posts: 1939
|
Posted: Sun Jan 04, 2004 6:11 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Neotux Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/17937171543e50ed1ccc81a.jpg)
Joined: 14 Feb 2003 Posts: 162
|
Posted: Sun Jan 04, 2004 6:25 pm Post subject: |
|
|
ok, danke, dami währe das geklärt ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|