X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.3.0-r574664 Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m82Lqb3U029049 for ; Tue, 2 Sep 2008 14:52:38 -0700 X-ASG-Debug-ID: 1220392441-026e01ea0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from bombadil.infradead.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 24B0F122CB73; Tue, 2 Sep 2008 14:54:01 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by cuda.sgi.com with ESMTP id 7N1B6Mnfu7Y3cq40; Tue, 02 Sep 2008 14:54:01 -0700 (PDT) Received: from hch by bombadil.infradead.org with local (Exim 4.68 #1 (Red Hat Linux)) id 1Kadp3-0002tc-Pw; Tue, 02 Sep 2008 21:54:01 +0000 Date: Tue, 2 Sep 2008 17:54:01 -0400 From: Christoph Hellwig To: Lachlan McIlroy , xfs-dev , xfs-oss X-ASG-Orig-Subj: Re: [PATCH] Tweak tracing allocation sizes Subject: Re: [PATCH] Tweak tracing allocation sizes Message-ID: <20080902215401.GD9204@infradead.org> References: <48BCD3BE.5040107@sgi.com> <20080902055604.GD15962@disturbed> <48BCD93E.9040407@sgi.com> <20080902062722.GF15962@disturbed> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080902062722.GF15962@disturbed> User-Agent: Mutt/1.5.18 (2008-05-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html X-Barracuda-Connect: bombadil.infradead.org[18.85.46.34] X-Barracuda-Start-Time: 1220392444 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.1.4475 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/8141/Tue Sep 2 08:52:21 2008 on oss.sgi.com X-Virus-Status: Clean 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.