• Nick Piggin's avatar
    [PATCH] Lazy page table copies in fork() · d992895b
    Nick Piggin authored
    Defer copying of ptes until fault time when it is possible to reconstruct
    the pte from backing store. Idea from Andi Kleen and Nick Piggin.
    
    Thanks to input from Rik van Riel and Linus and to Hugh for correcting
    my blundering.
    
    Ray Fucillo <fucillo@intersystems.com> reports:
    
      "I applied this latest patch to a 2.6.12 kernel and found that it does
       resolve the problem.  Prior to the patch on this machine, I was
       seeing about 23ms spent in fork for ever 100MB of shared memory
       segment.
    
       After applying the patch, fork is taking about 1ms regardless of the
       shared memory size."
    Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d992895b
memory.c 59.5 KB