[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mm
Subject:    Re: set_pte() is no longer atomic with PAE36.
From:       Ingo Molnar <mingo () redhat ! com>
Date:       1999-12-02 14:50:40
[Download RAW message or body]

On Thu, 2 Dec 1999, Alan Cox wrote:

> > Modifying an existing pte (eg. for COW) is probably even harder: do we
> > need to clear the page-present bit while we modify the high word?
> > Simply setting the dirty or accessed bits should pose no such problem,
> > but relocating a page looks as if it could bite here.
> 
> You can do 64bit atomic sets with lock cmpxchg8. It might just be slow though

unmaps are not fast anyway (i mean we are not counting cycles there), and
this is absolutely needed for correctness. First correctness then speed. 
Last i timed cmpxchg8b it wasnt that terribly slow - it had the slowness
of LOCK-ed instructions, but nothing dramatic. 

-- mingo


--
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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic