use 50% of total ram to leveldb