Re: [PATCH] Tweak tracing allocation sizes

Christoph Hellwig
2008-09-02T21:52:39Z

On Tue, Sep 02, 2008 at 04:27:22PM +1000, Dave Chinner wrote:
> > - maybe a very large global trace buffer that is allocated at mount
> > time and shared by all inodes?
>
> Sure, we've got that for various other trace types (e.g. the "vnode"
> trace). You'd need to add idbg stuff for filtering based on the
> inode the buffer belongs to....

That's probably the best idea. Currently all these per-object ktrace
buffers do really large no-MAYFAIL allocation all over. They are in
fact the remaining reason not to simply directly call vmalloc for
large allocations instead of all our current mess in the kmem_
functions.