All of lore.kernel.org
 help / color / mirror / Atom feed
* swap memory
@ 2002-08-26  2:49 net reel
  2002-08-25 22:17 ` Ron Henry
  2002-08-26  3:22 ` Ron Henry
  0 siblings, 2 replies; 11+ messages in thread
From: net reel @ 2002-08-26  2:49 UTC (permalink / raw)
  To: linux-kernel

Hi, I have a very newbie question but I couldnt get an answer in anywhere so please, could someone explain me how swap is initialized? Is it initalized when the kernel is decompressed or when the init scripts are called? 


-- 
Get your free email from www.linuxmail.org 


Powered by Outblaze

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Swap Memory
@ 2009-02-03 20:38 William Chan
  2009-02-05 18:33 ` Hugh Dickins
  0 siblings, 1 reply; 11+ messages in thread
From: William Chan @ 2009-02-03 20:38 UTC (permalink / raw)
  To: linux-mm; +Cc: wchan212

Hi All,

According to my understanding of the kernel mm, swap pages are
allocated in order of priority.

For example, I have the follow swap devices: FlashDevice1 with
priority 1 and DiskDevice2 with priority 2 and DiskDevice3 with
priority3. FlashDevice1 will get filled up, then DsikDevice2 and
DiskDevice3.

To allocate a page of memroy in swap, the kernel will call
get_swap_page to find the first device with available swap slots and
then pass that device to scan_swap_map to allocate a page.

I see a "problem" with this: The kernel does not take advantage of
available bandwidth. For example: my system has 2 swap
devices...DiskDevice2 and DiskDevice3, they are both identical 20 GB
7200rpm drives. If we need 4 GB worth of swap pages, only DiskDevice2
will be filled up. We have available free bandwidth on DiskDevice3
that is never used. If we were to split the swap pages into the two
drives, 2 GB of swap on each drive - we can potentially double our
bandwidth (latency is another issue).

Another problem that I am working on is what if one device is Flash
and the second device is Rotational. Does the kernel mm employ a
scheme to evict LRU pages in Priority1 swap to Priority2 swap?



Regards,
will

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* swap memory
@ 2001-04-16  8:26 gis88530
  2001-04-16 14:25 ` Rik van Riel
  0 siblings, 1 reply; 11+ messages in thread
From: gis88530 @ 2001-04-16  8:26 UTC (permalink / raw)
  To: linux-kernel

Hello,

Does linux kernel swap data out to disk?
or
It just reside in the physical memory.
or
You could give me a hint. Thanks a lot.

Cheers,
Tom


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-02-06  0:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-26  2:49 swap memory net reel
2002-08-25 22:17 ` Ron Henry
2002-08-26  3:22 ` Ron Henry
  -- strict thread matches above, loose matches on Subject: below --
2009-02-03 20:38 Swap Memory William Chan
2009-02-05 18:33 ` Hugh Dickins
2009-02-05 19:10   ` William Chan
2009-02-05 19:57     ` Hugh Dickins
2009-02-05 20:40       ` William Chan
2009-02-06  0:36         ` KAMEZAWA Hiroyuki
2001-04-16  8:26 swap memory gis88530
2001-04-16 14:25 ` Rik van Riel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.