Re: A scrub daemon (prezeroing)

From: Maciej W. Rozycki (macro_at_linux-mips.org)
Date: 02/02/05

  • Next message: Mike Waychison: "Re: [RFC] shared subtrees"
    Date:	Wed, 2 Feb 2005 21:00:46 +0000 (GMT)
    To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
    
    

    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/


  • Next message: Mike Waychison: "Re: [RFC] shared subtrees"

    Relevant Pages

    • Prezeroing V2 [0/3]: Why and When it works
      ... Use node specific variables instead of cpu specific ... locking overhead) the zeroing of the page. ... Others have also thought that prezeroing could be a benefit and have tried ... these pages are thus already in the cache. ...
      (Linux-Kernel)
    • Re: Vista Ultimate 64-bit 8GB on ASUS 3A32-MVP Deluxe
      ... If you a retail copy of the OS then you are entitled to free installation support, ... these in the BIOS to override the SPD with the same results. ... investigate any issues there - with the memory controller or something else. ... For mobo manufacturers and cpu makers, it is a real estate problem. ...
      (microsoft.public.windows.vista.hardware_devices)
    • [PATCH 0/3] sched: Extend sched_mc/smt_power_savings framework.
      ... have onchip memory controller making each cpu package a 'node' ... On such machines with on-chip memory controller, each physical CPU ...
      (Linux-Kernel)
    • Re: Vista Ultimate 64-bit 8GB on ASUS 3A32-MVP Deluxe
      ... On the surface I would agree with you about ASUS. ... It is possible, I suppose, that the memory controller on the Phenom is the ... problem or returning/replacing the cpu. ...
      (microsoft.public.windows.vista.hardware_devices)
    • Re: Prezeroing V2 [0/3]: Why and When it works
      ... > memory that it actually matters if you clear the memory just occasionally. ... So far the impact of zeroing is quite minimal ... The CPU can do a couple of Gigs of zeroing per second per CPU and the ... take a fraction of a second to zero all RAM. ...
      (Linux-Kernel)