Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-829

Performance with riak

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.2.1
    • Affects Version/s: None
    • Component/s: None
    • None

      I've been investigating the long latencies with basho_bench and riak. I have found that the underlying cause of quite a number of them appears to be snappy compression and decompression. Somehow we appear to be able to get snappy into a very slow state. I've been recording, in the thin WT layer, any time a call to snappy_compress or snappy_uncompress takes longer than 0.75 seconds, and aborting if it takes > 1 second. On one run, I had 9 entries before it aborted. Each one was a decompress, all between 12280-12290 bytes in (compressed) length and the recorded times were taking progressively longer, from 0.75sec until it aborted > 1sec. Another run, I only had the entry for the aborting thread where a compress took 1.02 seconds to compress 98220 bytes down to 48222 bytes.

      Currently I bumped the abort threshold to 1.5 seconds just to see how many entries I collect before aborting. I'm going to look at the snappy source that we build into wterl/riak to see if there is anything obvious there. It is using 1.0.4.

      This performance issue is reproducible 100% of the time running the fruitpop followed by fruitload tests on the AWS SSD box.

        1. fload mmap clean.png
          70 kB
          Ian Daniel
        2. fload nocomp.png
          70 kB
          Ian Daniel
        3. fload nommap clean.png
          64 kB
          Ian Daniel
        4. fpop mmap clean.png
          53 kB
          Ian Daniel
        5. fpop nocomp.png
          55 kB
          Ian Daniel
        6. fpop nommap clean.png
          57 kB
          Ian Daniel
        7. test1 jan10.png
          62 kB
          Ian Daniel
        8. test1 jan16 d7e4.png
          61 kB
          Ian Daniel

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: