Virtual memory consumption (both user and kernel) inmodern
CURRENT
David Leimbach
leimy2k at gmail.com
Fri Feb 17 13:09:12 PST 2006
On 2/17/06, Brian K. White <brian at aljex.com> wrote:
>
> ----- Original Message -----
> From: "Mike Jakubik" <mikej at rogers.com>
> To: "Kris Kennaway" <kris at obsecurity.org>
> Cc: "Giorgos Keramidas" <keramida at ceid.upatras.gr>; "Dmitry Pryanishnikov"
> <dmitry at atlantis.dp.ua>; <freebsd-current at freebsd.org>; "David Xu"
> <davidxu at freebsd.org>; "Brian Candler" <B.Candler at pobox.com>
> Sent: Friday, February 17, 2006 1:34 PM
> Subject: Re: Virtual memory consumption (both user and kernel) inmodern
> CURRENT
>
>
> > Kris Kennaway wrote:
> >> On Thu, Feb 16, 2006 at 08:23:50PM -0500, Mike Jakubik wrote:
> >>
> >>> And what am i trading off here? I have "/etc/malloc.conf@ -> ajz" and my
> >>> memory usage has gone up the roof. My system used to be swap free, and
> >>> now its swapping over 40 MB. Can someone explain to me why this new
> >>> malloc is better? I don't see any speed improvements.
> >>>
> >>
> >> It's a couple of orders of magnitude faster for threaded binaries.
> >> See earlier posts by the author for extensive discussion.
> >>
> >
> > Great, too bad only 2% of my applications are threaded. I just don't see
> > this change very positively, using 40MB of swap, where before was none
> > does not seem to me like a speed improvement. I'm all for better
> > performance of threaded apps, but the trade off seems too high.
>
> Especially if: What's orders of magnitude faster, the main parts of the app
> or merely the act of spawning/destroying a new thread?
Logically, since this is a malloc implementation one could infer that
it's "malloc" and "free" that end up orders of magnitude faster due to
less locking and dedicated per-thread memory arenas.
At least that's my deduction. I hope I'm correct :).
Dave
More information about the freebsd-current
mailing list