Raza Hussain
6908e24b56
dynamic setting of stats_dump_period_sec through SetDBOption()
...
Summary:
Resolved the following issue: https://github.com/facebook/rocksdb/issues/1930
Closes https://github.com/facebook/rocksdb/pull/2004
Differential Revision: D4736764
Pulled By: yiwu-arbug
fbshipit-source-id: 64fe0b7
2017-03-20 22:54:13 -07:00
Islam AbdelRahman
e19163688b
Add macros to include file name and line number during Logging
...
Summary:
current logging
```
2017/03/14-14:20:30.393432 7fedde9f5700 (Original Log Time 2017/03/14-14:20:30.393414) [default] Level summary: base level 1 max bytes base 268435456 files[1 0 0 0 0 0 0] max score 0.25
2017/03/14-14:20:30.393438 7fedde9f5700 [JOB 2] Try to delete WAL files size 61417909, prev total WAL file size 73820858, number of live WAL files 2.
2017/03/14-14:20:30.393464 7fedde9f5700 [DEBUG] [JOB 2] Delete /dev/shm/old_logging//MANIFEST-000001 type=3 #1 -- OK
2017/03/14-14:20:30.393472 7fedde9f5700 [DEBUG] [JOB 2] Delete /dev/shm/old_logging//000003.log type=0 #3 -- OK
2017/03/14-14:20:31.427103 7fedd49f1700 [default] New memtable created with log file: #9 . Immutable memtables: 0.
2017/03/14-14:20:31.427179 7fedde9f5700 [JOB 3] Syncing log #6
2017/03/14-14:20:31.427190 7fedde9f5700 (Original Log Time 2017/03/14-14:20:31.427170) Calling FlushMemTableToOutputFile with column family [default], flush slots available 1, compaction slots allowed 1, compaction slots scheduled 1
2017/03/14-14:20:31.
Closes https://github.com/facebook/rocksdb/pull/1990
Differential Revision: D4708695
Pulled By: IslamAbdelRahman
fbshipit-source-id: cb8968f
2017-03-15 19:39:12 -07:00
Sagar Vemuri
eb912a927e
Remove disableDataSync option
...
Summary:
Remove disableDataSync, and another similarly named disable_data_sync options.
This is being done to simplify options, and also because the performance gains of this feature can be achieved by other methods.
Closes https://github.com/facebook/rocksdb/pull/1859
Differential Revision: D4541292
Pulled By: sagar0
fbshipit-source-id: 5b3a6ca
2017-02-13 11:09:13 -08:00
Aaron Gao
972f96b3fb
direct io write support
...
Summary:
rocksdb direct io support
```
[gzh@dev11575.prn2 ~/rocksdb] ./db_bench -benchmarks=fillseq --num=1000000
Initializing RocksDB Options from the specified file
Initializing RocksDB Options from command-line flags
RocksDB: version 5.0
Date: Wed Nov 23 13:17:43 2016
CPU: 40 * Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz
CPUCache: 25600 KB
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
Prefix: 0 bytes
Keys per prefix: 0
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
Write rate: 0 bytes/second
Compression: Snappy
Memtablerep: skip_list
Perf Level: 1
WARNING: Assertions are enabled; benchmarks unnecessarily slow
------------------------------------------------
Initializing RocksDB Options from the specified file
Initializing RocksDB Options from command-line flags
DB path: [/tmp/rocksdbtest-112628/dbbench]
fillseq : 4.393 micros/op 227639 ops/sec; 25.2 MB/s
[gzh@dev11575.prn2 ~/roc
Closes https://github.com/facebook/rocksdb/pull/1564
Differential Revision: D4241093
Pulled By: lightmark
fbshipit-source-id: 98c29e3
2016-12-22 13:09:19 -08:00
Anton Safonov
9053fe2a5c
Made delete_obsolete_files_period_micros option dynamic
...
Summary:
Made delete_obsolete_files_period_micros option dynamic. It can be updating using DB::SetDBOptions().
Closes https://github.com/facebook/rocksdb/pull/1595
Differential Revision: D4246569
Pulled By: tonek
fbshipit-source-id: d23f560
2016-12-05 14:24:16 -08:00
Artemiy Kolesnikov
91300d01f6
Dynamic max_total_wal_size option
...
Summary: Closes https://github.com/facebook/rocksdb/pull/1509
Differential Revision: D4176426
Pulled By: yiwu-arbug
fbshipit-source-id: b57689d
2016-11-14 22:54:17 -08:00
Lijun Tang
adb665e0bf
Allowed delayed_write_rate option to be dynamically set.
...
Summary: Closes https://github.com/facebook/rocksdb/pull/1488
Differential Revision: D4157784
Pulled By: siying
fbshipit-source-id: f150081
2016-11-12 15:54:11 -08:00
Yi Wu
437942e481
Add avoid_flush_during_shutdown DB option
...
Summary:
Add avoid_flush_during_shutdown DB option.
Closes https://github.com/facebook/rocksdb/pull/1451
Differential Revision: D4108643
Pulled By: yiwu-arbug
fbshipit-source-id: abdaf4d
2016-11-02 15:39:18 -07:00
Kien-hung Li
eeb27e1bbd
Add handy option to turn on direct I/O in db_bench ( #1424 )
2016-10-28 10:36:05 -07:00
Yi Wu
e29d3b67c2
Make max_background_compactions and base_background_compactions dynamic changeable
...
Summary:
Add DB::SetDBOptions to dynamic change max_background_compactions and base_background_compactions.
I'll add more dynamic changeable options soon.
Test Plan: unit test.
Reviewers: yhchiang, IslamAbdelRahman, sdong
Reviewed By: sdong
Subscribers: andrewkr, dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D64749
2016-10-14 12:25:39 -07:00
Yi Wu
9ed928e7a9
Split DBOptions into ImmutableDBOptions and MutableDBOptions
...
Summary: Use ImmutableDBOptions/MutableDBOptions internally and DBOptions only for user-facing APIs. MutableDBOptions is barely a placeholder for now. I'll start to move options to MutableDBOptions in following diffs.
Test Plan:
make all check
Reviewers: yhchiang, IslamAbdelRahman, sdong
Reviewed By: sdong
Subscribers: andrewkr, dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D64065
2016-09-23 16:34:04 -07:00