mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Load-on-demand. How does the kernel locate the pages on secondary storage?
@ 2005-12-07  3:38 Mohamed El Dawy
  2005-12-07 18:45 ` Rik van Riel
  0 siblings, 1 reply; 3+ messages in thread
From: Mohamed El Dawy @ 2005-12-07  3:38 UTC (permalink / raw)
  To: linux-kernel

Hi,
 Assume we have a process running, not all the pages of the process
are in main memory. Some are swapped, and some are just not loaded
yet.
How does the kernel locate those pages on disk? Is there a pointer in
the page table? or is there some place else? Any pointers to source
code in the kernel would be greatly appreciated.

Thank you very much.

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

* Re: Load-on-demand. How does the kernel locate the pages on secondary storage?
  2005-12-07  3:38 Load-on-demand. How does the kernel locate the pages on secondary storage? Mohamed El Dawy
@ 2005-12-07 18:45 ` Rik van Riel
  2005-12-07 19:01   ` linux-os (Dick Johnson)
  0 siblings, 1 reply; 3+ messages in thread
From: Rik van Riel @ 2005-12-07 18:45 UTC (permalink / raw)
  To: Mohamed El Dawy; +Cc: linux-kernel

On Tue, 6 Dec 2005, Mohamed El Dawy wrote:

>  Assume we have a process running, not all the pages of the process
> are in main memory. Some are swapped, and some are just not loaded
> yet.
> How does the kernel locate those pages on disk? Is there a pointer in
> the page table? or is there some place else? Any pointers to source
> code in the kernel would be greatly appreciated.

http://linux-mm.org/PageFaultHandling

-- 
All Rights Reversed

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

* Re: Load-on-demand. How does the kernel locate the pages on secondary storage?
  2005-12-07 18:45 ` Rik van Riel
@ 2005-12-07 19:01   ` linux-os (Dick Johnson)
  0 siblings, 0 replies; 3+ messages in thread
From: linux-os (Dick Johnson) @ 2005-12-07 19:01 UTC (permalink / raw)
  To: Rik van Riel; +Cc: Mohamed El Dawy, linux-kernel


On Wed, 7 Dec 2005, Rik van Riel wrote:

> On Tue, 6 Dec 2005, Mohamed El Dawy wrote:
>
>>  Assume we have a process running, not all the pages of the process
>> are in main memory. Some are swapped, and some are just not loaded
>> yet.
>> How does the kernel locate those pages on disk? Is there a pointer in
>> the page table? or is there some place else? Any pointers to source
>> code in the kernel would be greatly appreciated.
>
> http://linux-mm.org/PageFaultHandling
>
> --
> All Rights Reversed

Look at /usr/src/linux-`uname -r`/mm/swapfile.c scan_swap_map()
for a hint. They are indexed using cluster numbers and it's an easy
index because the swap i/o is in pages.


Cheers,
Dick Johnson
Penguin : Linux version 2.6.13.4 on an i686 machine (5589.55 BogoMips).
Warning : 98.36% of all statistics are fiction.
.

****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

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

end of thread, other threads:[~2005-12-07 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-07  3:38 Load-on-demand. How does the kernel locate the pages on secondary storage? Mohamed El Dawy
2005-12-07 18:45 ` Rik van Riel
2005-12-07 19:01   ` linux-os (Dick Johnson)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®