Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752060Ab0HBHaP (ORCPT ); Mon, 2 Aug 2010 03:30:15 -0400 Received: from ipmail04.adl6.internode.on.net ([150.101.137.141]:12941 "EHLO ipmail04.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751090Ab0HBHaO (ORCPT ); Mon, 2 Aug 2010 03:30:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKsPVkx5LclT/2dsb2JhbACgEHK+fYU5BA Date: Mon, 2 Aug 2010 17:30:09 +1000 From: Nick Piggin To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Frederic Weisbecker , Mike Galbraith , Peter Zijlstra , Stephane Eranian Subject: Re: [PATCH 11/19] perf record: Release resources at exit Message-ID: <20100802073009.GB7841@amd> References: <1280711334-30000-1-git-send-email-acme@infradead.org> <1280711334-30000-12-git-send-email-acme@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1280711334-30000-12-git-send-email-acme@infradead.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 701 Lines: 16 On Sun, Aug 01, 2010 at 10:08:46PM -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > So that we can reduce the noise on valgrind when looking for memory > leaks. Really? That's rather crappy of valgrind. exit is well defined to release resources and that's often a more efficient way to do it It finds and batches things a lot better, eg. it can avoid all TLB flushing of freeing memory that munmap requires. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/