Docstoc

Cooperative Caching for n-ary Tree Lookup Method A Method B

Document Sample
Cooperative Caching for n-ary Tree Lookup Method A Method B Powered By Docstoc
					                                                  Cooperative Caching for
Fast Query Processing Using                       n-ary Tree Lookup
Cooperative Caching for Index                     n   The Problem:
                                                      There is a static n-ary tree and a huge number of key lookups
Structures
                                                  n

                                                  n   The n-ary tree can fit in memory but not in cache
                                                  n   High Throughput and Fast Response Time


          Xiaoqin Ma and Gene Cooperman
          Email: xqma, gene@ccs.neu.edu
    College of Computer and Information Science
               Northeastern University




Method A                                          Method B: Buffering Accesses
n   One By One Search:                            n   Requires >>106 keys for efficient batch processing




                                                                                                                      1
    Method C: Cooperative
    Caching                                                  Design Methods
n   Requires >> 104 keys for efficient batch processing.     n    A: dominated by memory latency

                                                             n    B: dominated by memory bandwidth(33%) and CPU speed
                                                                  (67%)
                                                                  n   need large batches to amortize the cost to load the subtree into the
                                                                      L2 cache.
                                                                  n   larger batches give long delay and slow response.

                                                             n    C: dominated by network bandwidth(5%) and CPU speed (95%)
                                                                  n   Moderated batch to efficiently use network bandwidth and amortize
                                                                      the network latency.
                                                                  n   Faster response.




    Today’s Hardware:
     Boston Univ. Linux cluster (Mariner)                    Experimental Results
    n   4-ary tree size: 3.2MB with 8 levels                     4-ary tree size: 3.2MB
                                                                 L2 cache size: 512KB
    n   Pentium III                                              Number of CPUs used: 10
        Myrinet network
    n
                                                                 Size of Batch/Msg: 40KB storing 10K keys
        measured vs. ideal bandwidth: 138MB/s vs. 275MB/s
    n   PC-133 DRAM
        measured vs. ideal bandwidth: 647MB/s vs. 1.06GB/s       Method A              Method B               Method C
    n   Memory latency: 60ns (measured)
    n   Cache miss penalty: 110ns (measured)
    n   L2 cache size: 512KB                                     95.5ns                76ns                   75ns




                                                                                                                                             2
    Comparison                                                                                        Future Trends
                                                                                                      n   Memory latency will not change
    Roughly Caculation :
    Method          A:
    L0 × C mar = 8 × 110 = 880
                                                                                                      n   Memory Bandwidth will increase
    Method          B:
                                 S tree                             3.2 MB
                                                                                                          moderately
    LL 2 × Cone_ node +                             = 7 × 33 +                    = 231 + 500 = 731

    Method          C:
                          BWmemory × N keys _ batch            647 MB / s × 10000
                                                                                                      n   CPU speed and network
    4 / BWnetwork + LL 2 × C one_ node × 2 = 28 + 231 × 2 = 490
                                                                                                          bandwidth will increase
             A fit of the model to the experiment yields
                                                                                                          dramatically
                             20% error




    Predicted Future Results                                                                          Future Trends
n     Memory latency: 50ns                                                                            Experimental Results:
n     Memory bandwidth: 4GB/s
                                                                                                      Method A Method B           Method C
n     Network bandwidth: 10Gb/s
                                                                                                          95.5ns       76ns       75ns
n     CPU speed: 10GHz


       Method A                               Method B                           Method C             Predicted Future Results:

                                                                                                      Method A Method B           Method C
         40ns                                 10ns                               5ns
                                                                                                          40ns         10ns       5ns




                                                                                                                                             3

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:3
posted:8/2/2011
language:English
pages:3