1. 07 8月, 2014 1 次提交
    • S
      Add DB property "rocksdb.estimate-table-readers-mem" · 1242bfca
      sdong 提交于
      Summary:
      Add a DB Property "rocksdb.estimate-table-readers-mem" to return estimated memory usage by all loaded table readers, other than allocated from block cache.
      
      Refactor the property codes to allow getting property from a version, with DB mutex not acquired.
      
      Test Plan: Add several checks of this new property in existing codes for various cases.
      
      Reviewers: yhchiang, ljin
      
      Reviewed By: ljin
      
      Subscribers: xjin, igor, leveldb
      
      Differential Revision: https://reviews.facebook.net/D20733
      1242bfca
  2. 06 8月, 2014 3 次提交
  3. 05 8月, 2014 1 次提交
  4. 02 8月, 2014 1 次提交
    • I
      Simplify SpatialIndexCursor · 5e3d5c5f
      Igor Canadi 提交于
      Summary:
      Since we have enough memory to hold all primary keys loaded from spatial index, it is better if we first load all of them (store them in unordered_set for deduplication) and then query on primary key column family one by one.
      
      We need to dedup all IDs, so we'll end up storing all of them in memory even with the current approach.
      
      Test Plan: ./spatial_db_test is happy
      
      Reviewers: yinwang
      
      Reviewed By: yinwang
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20949
      5e3d5c5f
  5. 01 8月, 2014 6 次提交
  6. 31 7月, 2014 10 次提交
  7. 29 7月, 2014 7 次提交
    • R
      Minor changes to CuckooTableBuilder · 91c01485
      Radheshyam Balasundaram 提交于
      Summary:
      - Copy the key and value to in-memory hash table during Add operation. Also modified cuckoo_table_reader_test to use this.
      - Store only the user_key in in-memory hash table if it is last level file.
      - Handle Carryover while chosing unused key in Finish() method in case unused key was never found before Finish() call.
      
      Test Plan:
      cuckoo_table_reader_test --enable_perf
      cuckoo_table_builder_test
      valgrind_check
      asan_check
      
      Reviewers: sdong, yhchiang, igor, ljin
      
      Reviewed By: ljin
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20715
      91c01485
    • S
      Add DB::GetIntProperty() to return integer properties to be returned as integers · f04356e6
      sdong 提交于
      Summary: We have quite some properties that are integers and we are adding more. Add a function to directly return them as an integer, instead of a string
      
      Test Plan: Add several unit test checks
      
      Reviewers: yhchiang, igor, dhruba, haobo, ljin
      
      Reviewed By: ljin
      
      Subscribers: yoshinorim, leveldb
      
      Differential Revision: https://reviews.facebook.net/D20637
      f04356e6
    • S
      Add DB property estimated number of keys · f6784766
      sdong 提交于
      Summary: Add a DB property of estimated number of live keys, by adding number of entries of all mem tables and all files, subtracted by all deletions in all files.
      
      Test Plan: Add the case in unit tests
      
      Reviewers: hobbymanyp, ljin
      
      Reviewed By: ljin
      
      Subscribers: MarkCallaghan, yoshinorim, leveldb, igor, dhruba
      
      Differential Revision: https://reviews.facebook.net/D20631
      f6784766
    • L
      InternalStats to take cfd on constructor · 7e8bb71d
      Lei Jin 提交于
      Summary:
      It has one-to-one relationship with CFD. Take a pointer to CFD on
      constructor to avoid passing cfd through member functions.
      
      Test Plan: make
      
      Reviewers: sdong, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20565
      7e8bb71d
    • L
      Change StopWatch interface · 1bd3431f
      Lei Jin 提交于
      Summary: So that we can avoid calling NowSecs() in MakeRoomForWrite twice
      
      Test Plan: make all check
      
      Reviewers: yhchiang, igor, sdong
      
      Reviewed By: sdong
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20529
      1bd3431f
    • L
      make statistics forward-able · f6ca226c
      Lei Jin 提交于
      Summary:
      Make StatisticsImpl being able to forward stats to provided statistics
      implementation. The main purpose is to allow us to collect internal
      stats in the future even when user supplies custom statistics
      implementation. It avoids intrumenting 2 sets of stats collection code.
      One immediate use case is tuning advisor, which needs to collect some
      internal stats, users may not be interested.
      
      Test Plan:
      ran db_bench and see stats show up at the end of run
      Will run make all check since some tests rely on statistics
      
      Reviewers: yhchiang, sdong, igor
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D20145
      f6ca226c
    • L
      make statistics forward-able · 40fa8a4c
      Lei Jin 提交于
      Summary:
      Make StatisticsImpl being able to forward stats to provided statistics
      implementation. The main purpose is to allow us to collect internal
      stats in the future even when user supplies custom statistics
      implementation. It avoids intrumenting 2 sets of stats collection code.
      One immediate use case is tuning advisor, which needs to collect some
      internal stats, users may not be interested.
      
      Test Plan:
      ran db_bench and see stats show up at the end of run
      Will run make all check since some tests rely on statistics
      
      Reviewers: yhchiang, sdong, igor
      
      Reviewed By: sdong
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D20145
      40fa8a4c
  8. 26 7月, 2014 4 次提交
    • S
      Block::Iter::PrefixSeek() to have an extra check to filter out some false matches · 4a8f0c95
      sdong 提交于
      Summary:
      In block based table's hash index checking, when looking for a key that doesn't exist, there is a high chance that a false block is returned because of hash bucket conflicts. In this revision, another check is done to filter out some of those cases: comparing previous key of the block boundary to see whether the target block is what we are looking for.
      
      In a favored test setting (bloom filter disabled, 8 L0 files), I saw about 80% improvements. In a non-favored test setting (bloom filter enabled, files are all in L1, files are all cached), I see the performance penalty is less than 3%.
      
      Test Plan: make all check
      
      Reviewers: haobo, ljin
      
      Reviewed By: ljin
      
      Subscribers: wuj, leveldb, zagfox, yhchiang
      
      Differential Revision: https://reviews.facebook.net/D20595
      4a8f0c95
    • R
      Implementation of CuckooTableReader · 62f9b071
      Radheshyam Balasundaram 提交于
      Summary:
      Contains:
      - Implementation of TableReader based on Cuckoo Hashing
      - Unittests for CuckooTableReader
      - Performance test for TableReader
      
      Test Plan:
      make cuckoo_table_reader_test
      ./cuckoo_table_reader_test
      make valgrind_check
      make asan_check
      
      Reviewers: yhchiang, sdong, igor, ljin
      
      Reviewed By: ljin
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20511
      62f9b071
    • L
      expose RateLimiter definition · d650612c
      Lei Jin 提交于
      Summary:
      User gets undefinied error since the definition is not exposed.
      Also re-enable the db test with only upper bound check
      
      Test Plan: db_test, rate_limit_test
      
      Reviewers: igor, yhchiang, sdong
      
      Reviewed By: sdong
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D20403
      d650612c
    • I
      Initialize next_id · 28b367db
      Igor Canadi 提交于
      28b367db
  9. 25 7月, 2014 5 次提交
  10. 24 7月, 2014 2 次提交