From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Markus Metzger <markus.t.metzger@intel.com>,
markus.t.metzger@gmail.com, roland@redhat.com,
eranian@googlemail.com, oleg@redhat.com, juan.villacis@intel.com,
ak@linux.jf.intel.com, linux-kernel@vger.kernel.org,
tglx@linutronix.de, hpa@zytor.com
Subject: Re: [rfc 2/2] x86, bts: use physically non-contiguous trace buffer
Date: Mon, 27 Apr 2009 12:53:36 +0200 [thread overview]
Message-ID: <1240829616.7620.7.camel@twins> (raw)
In-Reply-To: <20090424083128.GI24912@elte.hu>
On Fri, 2009-04-24 at 10:31 +0200, Ingo Molnar wrote:
> * Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > The patch looks like a regression to me. vmalloc memory is slower
> > to allocate, slower to free, slower to access and can exhaust or
> > fragment the vmalloc arena. Confused.
>
> Performance does not matter here (this is really a slowpath), but
> fragmentation does matter, especially on 32-bit systems.
>
> I'd not uglify the code via vmap() - and vmap has the same
> fundamental address space limitations on 32-bit as vmalloc().
>
> The existing kmalloc() is fine. We do larger than PAGE_SIZE
> allocations elsewhere too (the kernel stack for example), and this
> is a debug facility, so failing the allocation is not a big problem
> even if it happens.
Nobody has yet told what the typical size of these allocations are. If
they're large enough to account in pages, one should arguable use the
page allocator not kmalloc. Also, any >3 order allocation (>32kb) are
very likely to fail. Having this ptrace interface work in the (unloaded)
development environment but not in a (loaded) production environment
will render it basically useless IMHO.
Having a regular high order allocation with vmalloc/vmap fallback is
quite normal, esp. if one wants to promote the use of this facility as
usable.
So, no, I very strongly disagree that the existing kmalloc is fine.
PS. I get shitloads of order-4 alloc failures from GEM after a few days
of uptime on my laptop.
next prev parent reply other threads:[~2009-04-27 10:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-24 8:00 [rfc 2/2] x86, bts: use physically non-contiguous trace buffer Markus Metzger
2009-04-24 8:13 ` Andrew Morton
2009-04-24 8:31 ` Ingo Molnar
2009-04-24 8:39 ` Metzger, Markus T
2009-04-26 16:08 ` Ingo Molnar
2009-04-27 10:53 ` Peter Zijlstra [this message]
2009-04-29 9:14 ` Metzger, Markus T
2009-04-25 6:40 ` Andi Kleen
2009-04-27 6:35 ` Metzger, Markus T
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=1240829616.7620.7.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=ak@linux.jf.intel.com \
--cc=akpm@linux-foundation.org \
--cc=eranian@googlemail.com \
--cc=hpa@zytor.com \
--cc=juan.villacis@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=markus.t.metzger@gmail.com \
--cc=markus.t.metzger@intel.com \
--cc=mingo@elte.hu \
--cc=oleg@redhat.com \
--cc=roland@redhat.com \
--cc=tglx@linutronix.de \
/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