Re: [PATCH] Tweak tracing allocation sizes

Christoph Hellwig
2008-09-02T21:53:57Z

On Tue, Sep 02, 2008 at 08:50:52AM +0200, Andi Kleen wrote:
> > alternative - maybe a very large global trace buffer that is allocated at mount
> > time and shared by all inodes?
>
> You could use vmalloc(). While that is also not fast it will at least
> not stall.

In fact kmem_alloc first tries vmalloc, and then falls back to slab
when it fails. See fs/xfs/linux-2.6/kmem.c:kmem_alloc().

Yes, it's all a big mess..