Re: set_pte() is no longer atomic with PAE36.

Ingo Molnar (mingo@redhat.com)
Thu, 2 Dec 1999 09:50:40 -0500 (EST)


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/