Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262740AbVBBVC2 (ORCPT ); Wed, 2 Feb 2005 16:02:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262683AbVBBVCN (ORCPT ); Wed, 2 Feb 2005 16:02:13 -0500 Received: from pollux.ds.pg.gda.pl ([153.19.208.7]:58639 "EHLO pollux.ds.pg.gda.pl") by vger.kernel.org with ESMTP id S262445AbVBBVAo (ORCPT ); Wed, 2 Feb 2005 16:00:44 -0500 Date: Wed, 2 Feb 2005 21:00:46 +0000 (GMT) From: "Maciej W. Rozycki" To: Marcelo Tosatti Cc: David Woodhouse , Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@osdl.org Subject: Re: A scrub daemon (prezeroing) In-Reply-To: <20050202153256.GA19615@logos.cnet> Message-ID: References: <1106828124.19262.45.camel@hades.cambridge.redhat.com> <20050202153256.GA19615@logos.cnet> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 29 On Wed, 2 Feb 2005, Marcelo Tosatti wrote: > > Some architectures tend to have spare DMA engines lying around. There's > > no need to use the CPU for zeroing pages. How feasible would it be for > > scrubd to use these? [...] > I suppose you are talking about DMA engines which are not being driven > by any driver ? E.g. the Broadcom's MIPS64-based SOCs have four general purpose DMA engines onchip which can transfer data to/from the memory controller in 32-byte chunks over the 256-bit internal bus. We have hardly any use for these devices and certainly not for all four of them. > Sounds very interesting idea to me. Guess it depends on whether the cost of > DMA write for memory zeroing, which is memory architecture/DMA engine dependant, > offsets the cost of CPU zeroing. I suppose so, at least with the Broadcom's chips you avoid cache trashing, yet you don't need to care about stale data as coherency between CPUs and the onchip memory controller is maintained automatically by hardware. Maciej - 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/