public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sergei Trofimovich <slyfox@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: ryao@gentoo.org
Subject: Re: [gentoo-dev] Evaluating a new malloc()
Date: Wed, 27 Feb 2013 23:26:02 +0300	[thread overview]
Message-ID: <20130227232602.3de39b88@sf> (raw)
In-Reply-To: <512CB9B8.9060308@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]

On Tue, 26 Feb 2013 08:33:44 -0500
Richard Yao <ryao@gentoo.org> wrote:

> The Blender project found some fairly remarkable discrepancies between
> what their software actually used and what glibc's ptmalloc allocated:
> 
> http://www.sintel.org/development/memory-jemalloc/
> 
> Results such as these led Blender and others (e.g. Chrome/Chromium,
> Firefox, Thunderbird) to bundle private versions of jemalloc.

Thre real disease is Windows support for all the mentioned apps.
glibc is not that bad.

I suspect
    export MALLOC_CHECK_=0
and
    CFLAGS=-fno-stack-protector
would solve all those bookkeeping "issues" glibc dumps on you
by default.

malloc() (likely free()) performance dependency for an app
means writing custom allocators. IMHO it's a per-app problem,
not system-wide one.

Do you have degradation example for your use cases? (a sample
program for real workload) Fixing known deficiencies is always
simpler than switching known-to-work base.

> This bundling situation violates our policy against bundled libraries. The
> maintainers could just patch their software to link to libjemalloc.
> However, it might make more sense to evaluate jemalloc as a
> distribution-wide replacement for glibc's ptmalloc.

It would not solve bundling problem, would it?

> Unless a significant issue is found in jemalloc itself, I do not see any
> reason to continue using glibc's ptmalloc over jemalloc.

How about "that core piece of libc works fine"?

-- 

  Sergei

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      parent reply	other threads:[~2013-02-27 20:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26 13:33 [gentoo-dev] Evaluating a new malloc() Richard Yao
2013-02-26 13:35 ` Diego Elio Pettenò
2013-02-26 13:46   ` Richard Yao
2013-02-26 13:48 ` Alexander Berntsen
2013-02-26 13:52   ` Richard Yao
2013-02-26 14:25     ` Florian Philipp
2013-02-26 16:35 ` Alec Warner
2013-02-26 16:44   ` Rich Freeman
2013-02-26 21:37     ` Maciej Mrozowski
2013-02-26 21:49       ` Jeff Horelick
2013-02-26 22:08       ` Matt Turner
2013-03-19 21:08     ` Mike Frysinger
2013-02-26 19:10   ` Matt Turner
2013-02-27  0:07     ` William Hubbs
2013-02-26 16:40 ` Mike Gilbert
2013-02-27  5:22 ` [gentoo-dev] " Ryan Hill
2013-02-27 16:15   ` Peter Stuge
2013-02-27 20:26 ` Sergei Trofimovich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130227232602.3de39b88@sf \
    --to=slyfox@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=ryao@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox