Re: [squid-users] "Quadruple" memory usage with squid

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 25 Nov 2009 02:11:30 +0100

ons 2009-11-25 klockan 09:07 +1100 skrev Robert Collins:
> On Tue, 2009-11-24 at 13:45 +0100, Henrik Nordstrom wrote:
> > tis 2009-11-24 klockan 15:06 +1100 skrev Robert Collins:
> >
> > > http://www.netbsd.org/docs/kernel/vfork.html has some interesting notes
> > > from the BSD world about this.
> >
> > vfork is fundamentally broken.
>
> Beyond the obvious (that it doesn't separate the memory out?)

Undefined results if any of the following is used:

  - threads
  - signals
  - any form of output
  - pretty much any other syscall than an successful execve

> > there is other alternatives coming, getting around the virtual memory
> > issue when starting new processes.
>
> What are they called?

Searching.. posix_spawn() and it's posix_spawnp() wrapper seems to be
the one.

Regards
Henrik
Received on Wed Nov 25 2009 - 01:11:36 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 25 2009 - 12:00:06 MST