Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #15670

Re: [OT] fork() 50 times slower on some Linux kernels?

From jt@toerring.de (Jens Thoms Toerring)
Newsgroups comp.lang.c
Subject Re: [OT] fork() 50 times slower on some Linux kernels?
Date 2012-01-09 23:57 +0000
Organization Freie Universitaet Berlin
Message-ID <9n1d6nFuu9U1@mid.uni-berlin.de> (permalink)
References <20147768-1b78-4ac5-84e5-607c1d47c6a6@dp8g2000vbb.googlegroups.com> <jefong$a4q$1@dont-email.me> <20120109140729.280@kylheku.com> <jefso9$8mo$1@dont-email.me>

Show all headers | View raw


Kaz, sorry for the "[OT]" but I prefer it that way;-)

Stephen Sprunk <stephen@sprunk.org> wrote:
> > In any case, did you notice in the original posting that this 1 second
> > pause occurs on a system with 8GB of RAM?

> That is apparently how long it takes for the kernel on his system to
> find backing for all those pages.  I suspect that delay is why
> overcommitment is on by default.

I now see what you meant in you're earlier post, but - as a
completely unscientific experiment - switching off overcom-
mitment doesn't seem to make any difference on my system.
The (admittedly short and thus a bit dubious) times seem to
stay more or less exactly what they were before (i.e. about
15 ms when initializing the memory and 2.5 ms without). I'm
also still a bit puzzled why it could take the kernel nearly
1 second to find backing store on the system the OP seems to
have - I don't know the clock speed, but it seems to have
amounts of memory similar to mine (both 8 GB) and even a
newer CPU (Intel i7 versus "only" an i5 here). Of course,
this all could also be due to differences in the kernel ver-
sions used...
                         Best regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

fork() 50 times slower on some Linux kernels? Elmar <elmar.krieger@gmail.com> - 2012-01-09 12:25 -0800
  Re: fork() 50 times slower on some Linux kernels? Ian Collins <ian-news@hotmail.com> - 2012-01-10 09:41 +1300
  Re: fork() 50 times slower on some Linux kernels? Kaz Kylheku <kaz@kylheku.com> - 2012-01-09 21:32 +0000
    [OT] Re: fork() 50 times slower on some Linux kernels? jt@toerring.de (Jens Thoms Toerring) - 2012-01-09 22:12 +0000
      Re: [OT] Re: fork() 50 times slower on some Linux kernels? Kaz Kylheku <kaz@kylheku.com> - 2012-01-09 22:32 +0000
        Re: [OT] Re: fork() 50 times slower on some Linux kernels? Ian Collins <ian-news@hotmail.com> - 2012-01-10 11:56 +1300
  Re: fork() 50 times slower on some Linux kernels? Stephen Sprunk <stephen@sprunk.org> - 2012-01-09 16:11 -0600
    Re: fork() 50 times slower on some Linux kernels? Kaz Kylheku <kaz@kylheku.com> - 2012-01-09 22:30 +0000
      Re: fork() 50 times slower on some Linux kernels? Stephen Sprunk <stephen@sprunk.org> - 2012-01-09 17:20 -0600
        Re: [OT] fork() 50 times slower on some Linux kernels? jt@toerring.de (Jens Thoms Toerring) - 2012-01-09 23:57 +0000
          Re: [OT] fork() 50 times slower on some Linux kernels? Kaz Kylheku <kaz@kylheku.com> - 2012-01-10 00:22 +0000
            Re: [OT] fork() 50 times slower on some Linux kernels? Stephen Sprunk <stephen@sprunk.org> - 2012-01-09 20:39 -0600
              Re: [OT] fork() 50 times slower on some Linux kernels? William Ahern <william@wilbur.25thandClement.com> - 2012-01-09 19:43 -0800
                Re: [OT] fork() 50 times slower on some Linux kernels? Stephen Sprunk <stephen@sprunk.org> - 2012-01-10 00:31 -0600
          Re: fork() 50 times slower on some Linux kernels? Elmar <elmar.krieger@gmail.com> - 2012-01-11 14:39 -0800
        Re: fork() 50 times slower on some Linux kernels? Nobody <nobody@nowhere.com> - 2012-01-10 23:07 +0000

csiph-web