1. 22 7月, 2014 4 次提交
  2. 21 7月, 2014 1 次提交
  3. 20 7月, 2014 1 次提交
  4. 19 7月, 2014 2 次提交
  5. 18 7月, 2014 6 次提交
  6. 17 7月, 2014 6 次提交
    • Y
      Add struct CompactionInputFiles to manage compaction input files. · 296e3407
      Yueh-Hsuan Chiang 提交于
      Summary: Add struct CompactionInputFiles to manage compaction input files.
      
      Test Plan:
      export ROCKSDB_TESTS=Compact
      make db_test
      ./db_test
      
      Reviewers: ljin, igor, sdong
      
      Reviewed By: sdong
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20061
      296e3407
    • F
      enable kHashSearch for blocktable in db_bench · bc6b2ab4
      Feng Zhu 提交于
      Summary:
        add a flag called use_hash_search in db_bench
      
      Test Plan:
        make all check
        ./db_bench --use_hash_search=1
      
      Reviewers: ljin, haobo, yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: igor, dhruba
      
      Differential Revision: https://reviews.facebook.net/D20067
      bc6b2ab4
    • F
      fix bug in LOG for flush memtable · 87895c62
      Feng Zhu 提交于
      Summary:
        One line change to fix a bug in the LOG when flush memtable
      
      Test Plan:
        NONE
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Differential Revision: https://reviews.facebook.net/D20049
      87895c62
    • S
      Fix db_test · 1c9f190a
      Stanislau Hlebik 提交于
      Summary: Added deletion of DBIterators in DBIterator's tests
      
      Test Plan: make valgrind_check
      
      Reviewers: igor, sdong
      
      Reviewed By: sdong
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20043
      1c9f190a
    • R
      Refactoring Version::Get() · 0418e66e
      Radheshyam Balasundaram 提交于
      Summary: Refactoring Version::Get() method to move file picker logic to a separate class.
      
      Test Plan: make check all
      
      Reviewers: igor, sdong, ljin
      
      Reviewed By: ljin
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D19713
      0418e66e
    • F
      store file_indexer info in sequential memory · c11d604a
      Feng Zhu 提交于
      Summary:
        use arena to allocate space for next_level_index_ and level_rb_
        Thus increasing data locality and make Version::Get faster.
      
      Benchmark detail
      Base version: commit d2a727c1
      
      command used:
      ./db_bench --db=/mnt/db/rocksdb --num_levels=6 --key_size=20 --prefix_size=20 --keys_per_prefix=0 --value_size=100 --block_size=4096 --cache_size=17179869184 --cache_numshardbits=6 --compression_type=none --compression_ratio=1 --min_level_to_compress=-1 --disable_seek_compaction=1 --hard_rate_limit=2 --write_buffer_size=134217728 --max_write_buffer_number=2 --level0_file_num_compaction_trigger=8 --target_file_size_base=2097152 --max_bytes_for_level_base=1073741824 --disable_wal=0 --sync=0 --disable_data_sync=1 --verify_checksum=1 --delete_obsolete_files_period_micros=314572800 --max_grandparent_overlap_factor=10 --max_background_compactions=4 --max_background_flushes=0 --level0_slowdown_writes_trigger=16 --level0_stop_writes_trigger=24 --statistics=0 --stats_per_interval=0 --stats_interval=1048576 --histogram=0 --use_plain_table=1 --open_files=-1 --mmap_read=1 --mmap_write=0 --memtablerep=prefix_hash --bloom_bits=10 --bloom_locality=1 --perf_level=0 --benchmarks=fillseq, readrandom,readrandom,readrandom --use_existing_db=0 --num=52428800 --threads=1
      
      Result:
      cpu running percentage:
      Version::Get, improved from 7.98% to 7.42%
      FileIndexer::GetNextLevelIndex, improved from 1.18% to 0.68%.
      
      Test Plan:
        make all check
      
      Reviewers: ljin, haobo, yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: dhruba, igor
      
      Differential Revision: https://reviews.facebook.net/D19845
      c11d604a
  7. 16 7月, 2014 3 次提交
  8. 15 7月, 2014 3 次提交
  9. 14 7月, 2014 2 次提交
  10. 12 7月, 2014 2 次提交
    • L
      improve InternalStats output · 46f0f6dd
      Lei Jin 提交于
      Summary: as title
      
      Test Plan:
      sampe output:
      Level Files Size(MB) Score Read(GB)  Rn(GB) Rnp1(GB) Write(BG) Wnew(GB) RW-Amp W-Amp Rd(MB/s) Wr(MB/s)  Rn(cnt) Rnp1(cnt) Wnp1(cnt) Wnew(cnt)  Comp(sec) Comp(cnt) Avg(sec) Stall(sec) Stall(cnt) Avg(ms)
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        L0    15     1024   1.0      0.0     0.0      0.0       8.2      8.2    0.0   0.0      0.0    111.4        0         0         1         1         75       123    0.612     295.94    1939238    0.15
        L1    23     2118   2.1     20.9     8.3     12.7      20.0      7.3    5.0   2.4     73.2     69.9      124       141       208        67        293         8   36.582      17.05      16100    1.06
        L2   162    15333   1.5     47.0     7.1     40.0      42.6      2.6   12.7   6.0     67.9     61.5       62       457       482        25        709        55   12.898       0.00          0    0.00
        L3   985   108065   1.1     37.8     4.0     33.9      36.9      3.0   18.8   9.3     60.1     58.5       41       338       363        25        645        31   20.812       0.00          0    0.00
        L4  2788   356033   0.3      0.0     0.0      0.0       0.0      0.0    0.0   0.0      0.0      0.0        0         0         0         0          0         0    0.000       0.00          0    0.00
       Sum  3973   482572   0.0    105.8    19.3     86.5     107.7     21.2   11.1   5.6     62.9     64.0      227       936      1054       118       1723       217    7.938     312.99    1955338    0.16
      
      Reviewers: sdong, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D19707
      46f0f6dd
    • F
      use FileLevel in LevelFileNumIterator · 178fd6f9
      Feng Zhu 提交于
      Summary:
        Use FileLevel in LevelFileNumIterator, thus use new version of findFile.
        Old version of findFile function is deleted.
        Write a function in version_set.cc to generate FileLevel from files_.
        Add GenerateFileLevelTest in version_set_test.cc
      
      Test Plan:
        make all check
      
      Reviewers: ljin, haobo, yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: igor, dhruba
      
      Differential Revision: https://reviews.facebook.net/D19659
      178fd6f9
  11. 11 7月, 2014 10 次提交
    • T
      ForwardIterator seek bugfix · 3b97ee96
      Tomislav Novak 提交于
      Summary:
      If `NeedToSeekImmutable()` returns false, `SeekInternal()` won't reset the
      contents of `immutable_min_heap_`. However, since it calls `UpdateCurrent()`
      unconditionally, if `current_` is one of immutable iterators (previously popped
      from `immutable_min_heap_`), `UpdateCurrent()` will overwrite it. As a result,
      if old `current_` in fact pointed to the smallest entry, forward iterator will
      skip some records.
      
      Fix implemented in this diff pushes `current_` back to `immutable_min_heap_`
      before calling `UpdateCurrent()`.
      
      Test Plan:
      New unit test (courtesy of @lovro):
         $ ROCKSDB_TESTS=TailingIteratorSeekToSame ./db_test
      
      Reviewers: igor, dhruba, haobo, ljin
      
      Reviewed By: ljin
      
      Subscribers: lovro, leveldb
      
      Differential Revision: https://reviews.facebook.net/D19653
      3b97ee96
    • Y
      Update HISTORY.md for release 3.3 · a51fbf5f
      Yueh-Hsuan Chiang 提交于
      Summary: Update HISTORY.md for release 3.3
      
      Test Plan: n/a
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D19635
      a51fbf5f
    • I
      Merge pull request #200 from rdallman/missing_cf · 3f53d276
      Igor Canadi 提交于
      C API: create missing cf's, cleanup
      3f53d276
    • I
      Fix mac compile · 5ff66335
      Igor Canadi 提交于
      5ff66335
    • R
      C API: create missing cf's, cleanup · 1fc71a4b
      Reed Allman 提交于
      1fc71a4b
    • T
      ForwardIterator::status() checks all child iterators · 105c1e09
      Tomislav Novak 提交于
      Summary:
      Forward iterator only checked `status_` and `mutable_iter_->status()`, which is
      not sufficient. For example, when reading exclusively from cache
      (kBlockCacheTier), `mutable_iter_->status()` may return kOk (e.g. there's
      nothing in the memtable), but one of immutable iterators could be in
      kIncomplete. In this case, `ForwardIterator::status()` ought to return that
      status instead of kOk.
      
      This diff changes `status()` to also check `imm_iters_`, `l0_iters_`, and
      `level_iters_`.
      
      Test Plan:
        ROCKSDB_TESTS=TailingIteratorIncomplete ./db_test
      
      Reviewers: ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D19581
      105c1e09
    • S
      Update master to version 3.3 · 01700b69
      sdong 提交于
      Summary: As tittle
      
      Test Plan: no need
      
      Reviewers: igor, yhchiang, ljin
      
      Reviewed By: ljin
      
      Subscribers: haobo, dhruba, xjin, leveldb
      
      Differential Revision: https://reviews.facebook.net/D19629
      01700b69
    • S
      Add a function to return current perf level · 36de0e53
      sdong 提交于
      Summary: Add a function to return the perf level. It is to allow a wrapper of DB to increase the perf level and restore the original perf level after finishing the function call.
      
      Test Plan: Add a verification in db_test
      
      Reviewers: yhchiang, igor, ljin
      
      Reviewed By: ljin
      
      Subscribers: xjin, dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D19551
      36de0e53
    • S
      Removing NewTotalOrderPlainTableFactory · 30c81e77
      Stanislau Hlebik 提交于
      Summary:
      Seems like NewTotalOrderPlainTableFactory is useless and is semantically incorrect.
      Total order mode indicator is prefix_extractor == nullptr,
      but NewTotalOrderPlainTableFactory doesn't set it to be nullptr. That's why some tests
      in plain_table_db_tests is incorrect.
      
      Test Plan: make all check
      
      Reviewers: sdong
      
      Reviewed By: sdong
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D19587
      30c81e77
    • I
      Add missing DB functions to DocumentDB · 536f4b31
      Igor Canadi 提交于
      536f4b31