linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* flushing tlb in try_to_swap_out
@ 2003-09-01 18:37 Raghu R. Arur
  2003-09-02  2:13 ` Rik van Riel
  0 siblings, 1 reply; 2+ messages in thread
From: Raghu R. Arur @ 2003-09-01 18:37 UTC (permalink / raw)
  To: linux-mm

   I see that in try_to_swap_out() (linux 2.4.19), the page that is being
unmapped from a process is flushed out. But try_to_swap_out() is executed
in the context of kswapd. And also whenever a context switch takes place
the whole tlb is flushed out. So is this flushing done just becuase linux
uses lazy_tlb_flush during process context switch ?

 thanks a lot,
 Raghu
--
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:"aart@kvack.org"> aart@kvack.org </a>

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

* Re: flushing tlb in try_to_swap_out
  2003-09-01 18:37 flushing tlb in try_to_swap_out Raghu R. Arur
@ 2003-09-02  2:13 ` Rik van Riel
  0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2003-09-02  2:13 UTC (permalink / raw)
  To: Raghu R. Arur; +Cc: linux-mm

On Mon, 1 Sep 2003, Raghu R. Arur wrote:

>    I see that in try_to_swap_out() (linux 2.4.19), the page that is being
> unmapped from a process is flushed out. But try_to_swap_out() is executed
> in the context of kswapd. And also whenever a context switch takes place
> the whole tlb is flushed out. So is this flushing done just becuase linux
> uses lazy_tlb_flush during process context switch ?

Think about SMP systems, where the task that's being swapped
out could be running simultaneously with the pageout code, on
another CPU.

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
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:"aart@kvack.org"> aart@kvack.org </a>

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

end of thread, other threads:[~2003-09-02  2:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-01 18:37 flushing tlb in try_to_swap_out Raghu R. Arur
2003-09-02  2:13 ` Rik van Riel

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