Skip to contentSkip to conversation

question about pt locking

DISCUSSION Shentino 2 participants 3 messages Mar 20, 2009

lore
Share & tools
lore

Shentino

author
#0 lore raw

Just curious, but does a process effectively have a read-lock on its page tables when it's in userland?

-- a curious newbie

#1 lore raw
Quoted 2 lines · Shentino

Just curious, but does a process effectively have a read-lock on its page tables when it's in userland?

No, page reclaim can fiddle with a running process' page tables concurrently.

author
#2 lore raw
Quoted 6 lines · Peter Zijlstra
Quoted 2 lines · Shentino

Just curious, but does a process effectively have a read-lock on its page tables when it's in userland?

No, page reclaim can fiddle with a running process' page tables concurrently.

Yeah just now remembered why the kernel has tlb inval/flush routines

...duh...

Thanks for the answers though, I learned something today.