system() using vfork() or posix_spawn()

2012-07-30 Thread Jilles Tjoelker
People sometimes use system() from large address spaces where it would improve performance greatly to use vfork() instead of fork(). A simple approach is to change fork() to vfork(), although I have not tried this. It seems safe enough to use sigaction and sigprocmask system calls in the vforked p

Re: system() using vfork() or posix_spawn()

2012-07-30 Thread Konstantin Belousov
On Mon, Jul 30, 2012 at 12:24:08PM +0200, Jilles Tjoelker wrote: > People sometimes use system() from large address spaces where it would > improve performance greatly to use vfork() instead of fork(). > > A simple approach is to change fork() to vfork(), although I have not > tried this. It seems

Re: newbus' ivar's limitation..

2012-07-30 Thread John Baldwin
On Tuesday, July 17, 2012 2:03:14 am Arnaud Lacombe wrote: > Hi, > > On Fri, Jul 13, 2012 at 1:56 PM, Arnaud Lacombe wrote: > > Hi, > > > > On Thu, Jul 12, 2012 at 1:20 AM, Warner Losh wrote: > >> [..] > >> Honestly, though, I think you'll be more pissed when you find out that the N:1 interface

Re: newbus' ivar's limitation..

2012-07-30 Thread Ian Lepore
On Mon, 2012-07-30 at 17:06 -0400, John Baldwin wrote: > On Tuesday, July 17, 2012 2:03:14 am Arnaud Lacombe wrote: > > Hi, > > > > On Fri, Jul 13, 2012 at 1:56 PM, Arnaud Lacombe wrote: > > > Hi, > > > > > > On Thu, Jul 12, 2012 at 1:20 AM, Warner Losh wrote: > > >> [..] > > >> Honestly, though

Re: newbus' ivar's limitation..

2012-07-30 Thread Arnaud Lacombe
Hi, On Mon, Jul 30, 2012 at 5:06 PM, John Baldwin wrote: > On Tuesday, July 17, 2012 2:03:14 am Arnaud Lacombe wrote: >> Hi, >> >> On Fri, Jul 13, 2012 at 1:56 PM, Arnaud Lacombe wrote: >> > Hi, >> > >> > On Thu, Jul 12, 2012 at 1:20 AM, Warner Losh wrote: >> >> [..] >> >> Honestly, though, I t

Re: newbus' ivar's limitation..

2012-07-30 Thread Warner Losh
On Jul 30, 2012, at 8:30 PM, Arnaud Lacombe wrote: > Hi, > > On Mon, Jul 30, 2012 at 5:06 PM, John Baldwin wrote: >> On Tuesday, July 17, 2012 2:03:14 am Arnaud Lacombe wrote: >>> Hi, >>> >>> On Fri, Jul 13, 2012 at 1:56 PM, Arnaud Lacombe wrote: Hi, On Thu, Jul 12, 2012 at 1: