[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mm->mmap_sem



James Simmons wrote:
> 
> I obtained this idea from do_page_fault. This function is called from a
> interrupt when a process actually tries to access memory correct? Even if
> the page does or doesn't exist? 

That's the bit that's tripping you up then.  No page-fault will occur in
general if the page has already been used and hasn't been swapped out
etc.  How bad would performance be if every access to every page caused
an interrupt?

Neil
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/