From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 1 Sep 2003 22:13:59 -0400 (EDT) From: Rik van Riel Subject: Re: flushing tlb in try_to_swap_out In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: "Raghu R. Arur" Cc: linux-mm@kvack.org List-ID: 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: aart@kvack.org