Re: FreeBSD 9.1 excessive memory allocations [SOLVED]

2013-03-28 Thread Jeremy Chadwick
On Wed, Mar 27, 2013 at 10:39:16PM -0700, Unga wrote: > > I think you may be reading too much into the malloc manpage.? When it > > mentions the use of per-thread small-object caches to avoid locking it's > > talking about performance, not thread safety.? Allocations of all sizes > > are thread-saf

Re: FreeBSD 9.1 excessive memory allocations [SOLVED]

2013-03-27 Thread Ben Morrow
Quoth Unga : > > > I think you may be reading too much into the malloc manpage.� When it > > mentions the use of per-thread small-object caches to avoid locking it's > > talking about performance, not thread safety.� Allocations of all sizes > > are thread-safe, the library just assumes that huge

Re: FreeBSD 9.1 excessive memory allocations [SOLVED]

2013-03-27 Thread Unga
> > I think you may be reading too much into the malloc manpage.  When it > mentions the use of per-thread small-object caches to avoid locking it's > talking about performance, not thread safety.  Allocations of all sizes > are thread-safe, the library just assumes that huge allocations are ra

Re: FreeBSD 9.1 excessive memory allocations [SOLVED]

2013-03-27 Thread Ian Lepore
On Wed, 2013-03-27 at 11:33 -0700, Unga wrote: > > - Original Message - > > > From: Ian Lepore > > To: Unga > > Cc: "freebsd-stable@freebsd.org" > > Sent: Wednesday, March 27, 2013 2:06 PM > > Subject: Re: FreeBSD 9.1 excessive memory

Re: FreeBSD 9.1 excessive memory allocations [SOLVED]

2013-03-27 Thread Ronald Klop
On Wed, 27 Mar 2013 19:33:46 +0100, Unga wrote: - Original Message - From: Ian Lepore To: Unga Cc: "freebsd-stable@freebsd.org" Sent: Wednesday, March 27, 2013 2:06 PM Subject: Re: FreeBSD 9.1 excessive memory allocations On Tue, 2013-03-26 at 11:35 -0700, Unga wrote

Re: FreeBSD 9.1 excessive memory allocations [SOLVED]

2013-03-27 Thread Unga
- Original Message - > From: Ian Lepore > To: Unga > Cc: "freebsd-stable@freebsd.org" > Sent: Wednesday, March 27, 2013 2:06 PM > Subject: Re: FreeBSD 9.1 excessive memory allocations > > On Tue, 2013-03-26 at 11:35 -0700, Unga wrote: >> Hi all

Re: FreeBSD 9.1 excessive memory allocations

2013-03-27 Thread Jeremy Chadwick
On Wed, Mar 27, 2013 at 08:06:10AM -0600, Ian Lepore wrote: > On Tue, 2013-03-26 at 11:35 -0700, Unga wrote: > > Hi all > > > > > > I have a heavily threaded C application, developed on an Intel Core i5 > > laptop (2 cores) running FreeBSD 8.1-RELEASE. > > > > When this application compile and

Re: FreeBSD 9.1 excessive memory allocations

2013-03-27 Thread Ian Lepore
On Tue, 2013-03-26 at 11:35 -0700, Unga wrote: > Hi all > > > I have a heavily threaded C application, developed on an Intel Core i5 laptop > (2 cores) running FreeBSD 8.1-RELEASE. > > When this application compile and run on another Intel Core i7 laptop (4 > cores) running FreeBSD 9.1-RELEASE

Re: FreeBSD 9.1 excessive memory allocations

2013-03-26 Thread Jan Mikkelsen
On 27/03/2013, at 7:08 AM, Alexander Yerenkow wrote: > 2013/3/26 Tony Li > >> >>> I have a heavily threaded C application, developed on an Intel Core i5 >> laptop (2 cores) running FreeBSD 8.1-RELEASE. >>> >>> When this application compile and run on another Intel Core i7 laptop (4 >> cores)

Re: FreeBSD 9.1 excessive memory allocations

2013-03-26 Thread Alexander Yerenkow
2013/3/26 Tony Li > > > I have a heavily threaded C application, developed on an Intel Core i5 > laptop (2 cores) running FreeBSD 8.1-RELEASE. > > > > When this application compile and run on another Intel Core i7 laptop (4 > cores) running FreeBSD 9.1-RELEASE, this application immediately starts

Re: FreeBSD 9.1 excessive memory allocations

2013-03-26 Thread Tony Li
> I have a heavily threaded C application, developed on an Intel Core i5 laptop > (2 cores) running FreeBSD 8.1-RELEASE. > > When this application compile and run on another Intel Core i7 laptop (4 > cores) running FreeBSD 9.1-RELEASE, this application immediately starts > grabbing memory by o