From owner-freebsd-arch Thu Feb 21 6:52:42 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by hub.freebsd.org (Postfix) with ESMTP id 5B75E37B402 for ; Thu, 21 Feb 2002 06:52:39 -0800 (PST) Received: (qmail 19069 invoked from network); 21 Feb 2002 14:52:38 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([65.90.117.117]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Feb 2002 14:52:38 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 21 Feb 2002 09:52:41 -0500 (EST) From: John Baldwin To: Julian Elischer Subject: RE: that INVARIANT/ucred freeing stuff. Cc: arch@freebsd.org Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 21-Feb-02 Julian Elischer wrote: > > After talking with a bunch of people there's a genral concensus that we > should just remove the ucred freeing stuff at least in normal builds. I > personally canr't see how it can help in debugging in a real life non > tailored situation to have the ucreds zero'd and it's robbing us of upto > 30% of throughput in some cases. > > I REALLY want to just rip it out! Well, benchmarking debugging code usually isn't a very useful exercise. Why not go for some more optimizations and change KASSSERT() to not do anything for INVARIANTS either? That should add back in some performance as well. Seriously, getting Giant to do the free is probably biting you and doesn't need to happen 99% of the time. You can push down Giant into crfree() around the call to free() and see if that helps. Who needs debugging anyway, right? We should all just be staring at the code and "seeing" bugs. > julian -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message