Re: [PATCH] immortal helpers

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Tue, 23 Feb 2010 19:52:23 +0100

tis 2010-02-23 klockan 15:52 +0100 skrev Kinkie:

> This bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=10354
> shows that in glibc many cases posix_spawn() is exactly a wrapper for
> (v)fork/exec .
> So it is no worse than fork/exec, may be as good as vfork/exec
> depending on the conditions, but not any better than it.

Hard to get much better than vfork+exec in terms of performance.. but
implementing vfork+exec has it's hairy parts and is why posix_spawn is
better even if it ends up being just vfork+exec.

additionally performance isn't really a big issue here, avoiding the
swap usage explosion is the main reason why touching any of this.

Regards
Henrik
Received on Tue Feb 23 2010 - 18:52:27 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 24 2010 - 12:00:10 MST