This is the mail archive of the
mailing list for the glibc project.
spawning (exec*/wait) shows non-constant time if memory grows
- From: Dirk Bächle <tshortik at gmx dot de>
- To: libc-help at sourceware dot org
- Date: Thu, 23 Jan 2014 19:20:28 +0100
- Subject: spawning (exec*/wait) shows non-constant time if memory grows
- Authentication-results: sourceware.org; auth=none
- Reply-to: dl9obn at darc dot de
I've already posted my actual question to the kernel-dev mailing list at:
, but got no reaction so far. So I'd really appreciate if someone
knowledgeable could have a look at my findings and confirm to me that
the problem I see is a kernel issue...and not related to the glibc itself.
What it's basically about is: I spawn a large number of simple child
processes sequentially (they don't run in parallel!) while letting the
memory of the parent process go up with malloc(). Over the number of
spawned processes the runtime for each execve/wait seems to grow, which
is not what I would expect.
Please find some more infos in the link above, if you're interested. Any
pointers to more documentation, discussions or advice on how to proceed
would be welcome.
I also apologize for cross-posting this problem, but I just want to
ensure that I tried the right forum...instead of getting no reply
because I "screwed up" and sent a glibc question to the kernel folks. ;)
Thanks a lot in advance for your answers.