Re: watchdogd, jemalloc, and mlockall

2012-11-04 Thread Dylan Cochran
Have you already tried something like opt.lg_chunk? This, combined with other options for the library (man 3 jemalloc), should reduce the space from 8MB down to 16K, or so. (approximation, I'm being liberal for jemalloc's internal bookkeeping size). For a special case like watchdogd, this would mak

[patch] rtld: fix fd leak with parallel dlopen and fork/exec

2012-11-04 Thread Jilles Tjoelker
Rtld does not set FD_CLOEXEC on its internal file descriptors; therefore, such a file descriptor may be passed to a process created by another thread running in parallel to dlopen() or fdlopen(). The race is easy to trigger with the below dlopen_exec_race.c that performs the two in parallel repeat

Re: [patch] rtld: fix fd leak with parallel dlopen and fork/exec

2012-11-04 Thread Konstantin Belousov
On Sun, Nov 04, 2012 at 03:37:27PM +0100, Jilles Tjoelker wrote: > Rtld does not set FD_CLOEXEC on its internal file descriptors; > therefore, such a file descriptor may be passed to a process created by > another thread running in parallel to dlopen() or fdlopen(). > > The race is easy to trigger

Re: watchdogd, jemalloc, and mlockall

2012-11-04 Thread Ian Lepore
On Sun, 2012-11-04 at 09:16 -0500, Dylan Cochran wrote: > Have you already tried something like opt.lg_chunk? This, combined > with other options for the library (man 3 jemalloc), should reduce the > space from 8MB down to 16K, or so. (approximation, I'm being liberal > for jemalloc's internal book

Re: watchdogd, jemalloc, and mlockall

2012-11-04 Thread Warner Losh
On Nov 3, 2012, at 12:50 PM, Ian Lepore wrote: > On Sat, 2012-11-03 at 20:41 +0200, Konstantin Belousov wrote: >> On Sat, Nov 03, 2012 at 12:38:39PM -0600, Ian Lepore wrote: >>> In an attempt to un-hijack the thread about memory usage increase >>> between 6.4 and 9.x, I'm starting a new thread he

Re: watchdogd, jemalloc, and mlockall

2012-11-04 Thread Ian Lepore
On Sun, 2012-11-04 at 09:36 -0700, Warner Losh wrote: > On Nov 3, 2012, at 12:50 PM, Ian Lepore wrote: > > > On Sat, 2012-11-03 at 20:41 +0200, Konstantin Belousov wrote: > >> On Sat, Nov 03, 2012 at 12:38:39PM -0600, Ian Lepore wrote: > >>> In an attempt to un-hijack the thread about memory usage

Re: watchdogd, jemalloc, and mlockall

2012-11-04 Thread Ian Lepore
On Sun, 2012-11-04 at 09:36 -0700, Warner Losh wrote: > On Nov 3, 2012, at 12:50 PM, Ian Lepore wrote: > > > On Sat, 2012-11-03 at 20:41 +0200, Konstantin Belousov wrote: > >> On Sat, Nov 03, 2012 at 12:38:39PM -0600, Ian Lepore wrote: > >>> In an attempt to un-hijack the thread about memory usage

Re: kernel module parallel build?

2012-11-04 Thread Andre Oppermann
On 22.10.2012 15:28, John Baldwin wrote: On Sunday, October 21, 2012 7:11:10 am Andre Oppermann wrote: What's keeping kernel modules from building in parallel with "make -j8"? They don't for you? They do for me either via 'make buildkernel' or the old method. They do, but only partially. W