From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262912AbVHESop (ORCPT ); Fri, 5 Aug 2005 14:44:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263075AbVHESmp (ORCPT ); Fri, 5 Aug 2005 14:42:45 -0400 Received: from wproxy.gmail.com ([64.233.184.198]:48505 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S262912AbVHESj5 convert rfc822-to-8bit (ORCPT ); Fri, 5 Aug 2005 14:39:57 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XoRq2dmOnfcPXITOprhEfMwBY8AWeyczJoBxTeRjflpqfrZJjGL6ZUT1CeU/ZFyAGeAOW2oGOxb3Ezi5eabVaN6/6ZQlqUMx9BABTAWReZFRJmLRqg5kF+1QbadtTBWFY1kSRhD/bs0U0ygB4zZeFP/6zphtVWyGmWpl18YzBA4= Message-ID: Date: Fri, 5 Aug 2005 11:39:55 -0700 From: Stephen Pollei Reply-To: Stephen Pollei To: Christoph Lameter Subject: Re: [PATCH] kernel: use kcalloc instead kmalloc/memset Cc: Roman Zippel , Arjan van de Ven , Andrew Morton , Pekka J Enberg , linux-kernel@vger.kernel.org, pmarques@grupopie.com, Linus Torvalds In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <1123219747.20398.1.camel@localhost> <20050804233634.1406e92a.akpm@osdl.org> <1123235219.3239.46.camel@laptopd505.fenrus.org> <1123236831.3239.55.camel@laptopd505.fenrus.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 8/5/05, Christoph Lameter wrote: > Hmm. If we had kcmalloc then we may be able to add a zero bit to the slab > allocator. If we would obtain zeroed pages for the slab then we may skip > zeroing of individual entries. However, the cache warming effect of the > current zeroing is then not occurring. Not sure if this would make sense > but this is a possible optimization if we had kcmalloc. Well there is kzalloc and kcalloc. I just thought a safe non-zeroing version would be nice. You could warm the cache with prefetch, but you'd need to profile the diferent cases to see what is worth doing and what isn't. -- http://dmoz.org/profiles/pollei.html http://sourceforge.net/users/stephen_pollei/ http://www.orkut.com/Profile.aspx?uid=2455954990164098214 http://stephen_pollei.home.comcast.net/