Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267374AbUJRVQy (ORCPT ); Mon, 18 Oct 2004 17:16:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267361AbUJRVQx (ORCPT ); Mon, 18 Oct 2004 17:16:53 -0400 Received: from cantor.suse.de ([195.135.220.2]:46236 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S267404AbUJRVHU (ORCPT ); Mon, 18 Oct 2004 17:07:20 -0400 Date: Mon, 18 Oct 2004 23:06:59 +0200 From: Andi Kleen To: Matthew Wilcox Cc: "Martin K. Petersen" , Andi Kleen , linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, akpm@osdl.org, tony.luck@intel.com Subject: Re: [PATCH] General purpose zeroed page slab Message-ID: <20041018210658.GA8203@wotan.suse.de> References: <20041014180427.GA7973@wotan.suse.de> <20041018184210.GI16153@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041018184210.GI16153@parcelfarce.linux.theplanet.co.uk> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 893 Lines: 23 > It's probably worth doing this with a static cachep in slab.c and only > exposing a get_zeroed_page() / free_zeroed_page() interface, with the > latter doing the memset to 0. Putting a memset in there would be dumb because the mm cleanup already zeroes the page tables. My dirty bitmap proposal would make that faster however, same as copy_page_range et.al. > I disagree with Andi over the dumbness > of zeroing the whole page. That makes it cache-hot, which is what you > want from a page you allocate from slab. It's already cache hot from the page table free and you only want one cache line in it cache hot, not the whole page. -Andi - 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/