1. 29 8月, 2012 5 次提交
  2. 28 8月, 2012 1 次提交
    • D
      Introduce a new method Env->Fsync() that issues fsync (instead of fdatasync). · fc20273e
      Dhruba Borthakur 提交于
      Summary:
      Introduce a new method Env->Fsync() that issues fsync (instead of fdatasync).
      This is needed for data durability when running on ext3 filesystems.
      Added options to the benchmark db_bench to generate performance numbers
      with either fsync or fdatasync enabled.
      
      Cleaned up Makefile to build leveldb_shell only when building the thrift
      leveldb server.
      
      Test Plan: build and run benchmark
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4911
      fc20273e
  3. 25 8月, 2012 9 次提交
    • H
      number to read is not resepected · e675351a
      heyongqiang 提交于
      Summary: as subject
      
      Test Plan: sst_dump --command=scan --file=
      
      Reviewers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4887
      e675351a
    • H
      7cd64402
    • H
      add more logs · 1de83cc2
      heyongqiang 提交于
      Summary:
      as subject
      
      add a tool to read sst file
      
      as subject.
      
      ./sst_reader --command=check --file=
      ./sst_reader --command=scan --file=
      
      Test Plan:
      db_test
      
      run this command
      
      Reviewers: dhruba
      
      Reviewed By: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4881
      1de83cc2
    • H
      sst_dump tool · 64219276
      heyongqiang 提交于
      Summary:
      as subject
      
      add a tool to read sst file
      
      as subject.
      
      ./sst_reader --command=check --file=
      ./sst_reader --command=scan --file=
      
      Test Plan:
      db_test
      
      run this command
      
      Reviewers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4881
      64219276
    • H
      add more logs · 1c99b0a6
      heyongqiang 提交于
      Summary:
      
      as subject
      
      Test Plan:db_test
      
      Reviewers: dhruba
      1c99b0a6
    • D
      Record the version of the source repository that was used to build the leveldb library. · 5d96f290
      Dhruba Borthakur 提交于
      Summary: Record the version of the source that we are compiling. We keep a record of the git revision in util/version.cc. This source file is then built as a regular source file as part of the compilation process. One can run "strings executable_filename | grep _build_" to find the version of the source that we used to build the executable file.
      
      Test Plan: none
      
      Differential Revision: https://reviews.facebook.net/D4785
      5d96f290
    • D
      Prevent concurrent multiple opens of leveldb database. · d41316bc
      Dhruba Borthakur 提交于
      Summary:
      The fcntl call cannot detect lock conflicts when invoked multiple times
      from the same thread.
      Use a static lockedFile Set to record the paths that are locked.
      A lockfile request checks to see if htis filename already exists in
      lockedFiles, if so, then it triggers an error. Otherwise, it inserts
      the filename in the lockedFiles Set.
      A unlock file request verifies that the filename is in the lockedFiles
      set and removes it from lockedFiles set.
      
      Test Plan: unit test attached
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4755
      d41316bc
    • D
      Utility to dump manifest contents. · f3ee5452
      Dhruba Borthakur 提交于
      Summary:
      ./manifest_dump --file=/tmp/dbbench/MANIFEST-000002
      
      Output looks like
      
      manifest_file_number 30 next_file_number 31 last_sequence 388082 log_number 28  prev_log_number 0
      --- level 0 ---
      --- level 1 ---
      --- level 2 ---
       5:3244155['0000000000000000' @ 1 : 1 .. '0000000000028220' @ 28221 : 1]
       7:3244177['0000000000028221' @ 28222 : 1 .. '0000000000056441' @ 56442 : 1]
       9:3244156['0000000000056442' @ 56443 : 1 .. '0000000000084662' @ 84663 : 1]
       11:3244178['0000000000084663' @ 84664 : 1 .. '0000000000112883' @ 112884 : 1]
       13:3244158['0000000000112884' @ 112885 : 1 .. '0000000000141104' @ 141105 : 1]
       15:3244176['0000000000141105' @ 141106 : 1 .. '0000000000169325' @ 169326 : 1]
       17:3244156['0000000000169326' @ 169327 : 1 .. '0000000000197546' @ 197547 : 1]
       19:3244178['0000000000197547' @ 197548 : 1 .. '0000000000225767' @ 225768 : 1]
       21:3244155['0000000000225768' @ 225769 : 1 .. '0000000000253988' @ 253989 : 1]
       23:3244179['0000000000253989' @ 253990 : 1 .. '0000000000282209' @ 282210 : 1]
       25:3244157['0000000000282210' @ 282211 : 1 .. '0000000000310430' @ 310431 : 1]
       27:3244176['0000000000310431' @ 310432 : 1 .. '0000000000338651' @ 338652 : 1]
       29:3244156['0000000000338652' @ 338653 : 1 .. '0000000000366872' @ 366873 : 1]
      --- level 3 ---
      --- level 4 ---
      --- level 5 ---
      --- level 6 ---
      
      Test Plan: run on test directory created by dbbench
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      CC: hustliubo
      
      Differential Revision: https://reviews.facebook.net/D4743
      f3ee5452
    • H
      e3bf8f0a
  4. 24 8月, 2012 2 次提交
  5. 23 8月, 2012 2 次提交
  6. 22 8月, 2012 5 次提交
  7. 21 8月, 2012 1 次提交
    • D
      Prevent concurrent multiple opens of leveldb database. · e56b2c5a
      Dhruba Borthakur 提交于
      Summary:
      The fcntl call cannot detect lock conflicts when invoked multiple times
      from the same thread.
      Use a static lockedFile Set to record the paths that are locked.
      A lockfile request checks to see if htis filename already exists in
      lockedFiles, if so, then it triggers an error. Otherwise, it inserts
      the filename in the lockedFiles Set.
      A unlock file request verifies that the filename is in the lockedFiles
      set and removes it from lockedFiles set.
      
      Test Plan: unit test attached
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4755
      e56b2c5a
  8. 20 8月, 2012 1 次提交
    • H
      add disable wal to db_bench · deb1a1fa
      heyongqiang 提交于
      Summary:
      as subject.
      
      ./db_bench --benchmarks=fillrandom --num=1000000 --disable_data_sync=1 --write_buffer_size=50000000 --target_file_size_base=100000000 --disable_wal=1
      
      LevelDB:    version 1.4
      Date:       Sun Aug 19 16:01:59 2012
      CPU:        8 * Intel(R) Xeon(R) CPU           L5630  @ 2.13GHz
      CPUCache:   12288 KB
      Keys:       16 bytes each
      Values:     100 bytes each (50 bytes after compression)
      Entries:    1000000
      RawSize:    110.6 MB (estimated)
      FileSize:   62.9 MB (estimated)
      ------------------------------------------------
      fillrandom   :       4.591 micros/op 217797 ops/sec;   24.1 MB/s
      
      ./db_bench --benchmarks=fillrandom --num=1000000 --disable_data_sync=1 --write_buffer_size=50000000 --target_file_size_base=100000000
      
      LevelDB:    version 1.4
      Date:       Sun Aug 19 16:02:54 2012
      CPU:        8 * Intel(R) Xeon(R) CPU           L5630  @ 2.13GHz
      CPUCache:   12288 KB
      Keys:       16 bytes each
      Values:     100 bytes each (50 bytes after compression)
      Entries:    1000000
      RawSize:    110.6 MB (estimated)
      FileSize:   62.9 MB (estimated)
      ------------------------------------------------
      fillrandom   :       3.696 micros/op 270530 ops/sec;   29.9 MB/s
      
      Test Plan: db_bench
      
      Reviewers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4767
      deb1a1fa
  9. 18 8月, 2012 5 次提交
    • D
      Utility to dump manifest contents. · 2aa514ec
      Dhruba Borthakur 提交于
      Summary:
      ./manifest_dump --file=/tmp/dbbench/MANIFEST-000002
      
      Output looks like
      
      manifest_file_number 30 next_file_number 31 last_sequence 388082 log_number 28  prev_log_number 0
      --- level 0 ---
      --- level 1 ---
      --- level 2 ---
       5:3244155['0000000000000000' @ 1 : 1 .. '0000000000028220' @ 28221 : 1]
       7:3244177['0000000000028221' @ 28222 : 1 .. '0000000000056441' @ 56442 : 1]
       9:3244156['0000000000056442' @ 56443 : 1 .. '0000000000084662' @ 84663 : 1]
       11:3244178['0000000000084663' @ 84664 : 1 .. '0000000000112883' @ 112884 : 1]
       13:3244158['0000000000112884' @ 112885 : 1 .. '0000000000141104' @ 141105 : 1]
       15:3244176['0000000000141105' @ 141106 : 1 .. '0000000000169325' @ 169326 : 1]
       17:3244156['0000000000169326' @ 169327 : 1 .. '0000000000197546' @ 197547 : 1]
       19:3244178['0000000000197547' @ 197548 : 1 .. '0000000000225767' @ 225768 : 1]
       21:3244155['0000000000225768' @ 225769 : 1 .. '0000000000253988' @ 253989 : 1]
       23:3244179['0000000000253989' @ 253990 : 1 .. '0000000000282209' @ 282210 : 1]
       25:3244157['0000000000282210' @ 282211 : 1 .. '0000000000310430' @ 310431 : 1]
       27:3244176['0000000000310431' @ 310432 : 1 .. '0000000000338651' @ 338652 : 1]
       29:3244156['0000000000338652' @ 338653 : 1 .. '0000000000366872' @ 366873 : 1]
      --- level 3 ---
      --- level 4 ---
      --- level 5 ---
      --- level 6 ---
      
      Test Plan: run on test directory created by dbbench
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      CC: hustliubo
      
      Differential Revision: https://reviews.facebook.net/D4743
      2aa514ec
    • H
      add compaction log Summary: · 680e571c
      heyongqiang 提交于
      Summary:
      add compaction summary to log
      
      log looks like:
      
      2012/08/17-18:18:32.557334 7fdcaa2bb700 Compaction summary: Base level 0, input file:[11 9 7 ],[]
      
      Test Plan: tested via db_test
      
      Reviewers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4749
      680e571c
    • H
      29c99fce
    • H
      use ts as suffix for LOG.old files · 20ee76bd
      heyongqiang 提交于
      Summary: as subject and only maintain 10 log files.
      
      Test Plan: new test in db_test
      
      Reviewers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D4731
      20ee76bd
    • D
      Expose new configration variables via the thrift api · b56ff5ea
      Dhruba Borthakur 提交于
      Summary: Expose new configration variables via the thrift api. when compiing for fbcode, always build thrift server
      
      Test Plan: none.
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4689
      b56ff5ea
  10. 17 8月, 2012 1 次提交
  11. 16 8月, 2012 2 次提交
  12. 15 8月, 2012 1 次提交
    • D
      "make all check" fails · fe6119bd
      Dhruba Borthakur 提交于
      Summary:
      If I run "make all check" it fails to build the leveldb-thrift-server tests. This is because the vanilla build is not supposed to build thrift and/or hdfs extensions. Remove the server test from auto-running.
      
      The thrift/hdfs build instructions are more elaborate and I would like to avoid it for embedded database builds.
      
      Test Plan: build and run
      
      Reviewers: heyongqiang
      
      Reviewed By: heyongqiang
      
      Differential Revision: https://reviews.facebook.net/D4641
      fe6119bd
  13. 04 8月, 2012 1 次提交
  14. 03 8月, 2012 4 次提交