Giter Site home page Giter Site logo

Comments (2)

tkstanczak avatar tkstanczak commented on June 11, 2024

After reviewing closely main changes suggested for now would be:

  • bigger write cache but smaller write cache number - this change is more by intuition based on reading
  • multi threaded compaction to increase the throughput on SSDs - seems to be bringing great results
  • in my case the DB has some bad score - 1.1 - 1.3 on all levels which cleared quickly with 500MB/s reads/writes with multi threaded compactions
  • will need to manage DB size parameter to be split into memtables (currently at 128MB) + blok cache; at 300GB my indexes took 3GB when all loaded to memory - when allocating 4GB memory it will be just fine to keep everything in - in such case we can set to keep filters and indexes in block cache and just control size of the block cache
  • need to look at index/filter partitioning - it seems that we would need to update our RocksDB version / update the RocksDbSharp wrapper
  • bottommost compression is not set - this may help, although even without it seems that our DB sizes are smaller than reported by Geth (due to the way we handle storage - worth analyzing)
  • we use Snappy on high levels - can check how we could enable LZ4 which was suggested by RocksDb creators to be always a better choice
  • need to check if options.OptimizeForPointLookup(128) actually works as the logs are suggesting that this setting is entirely ignored and 8MB * 4 block cache is used instead

from nethermind.

tkstanczak avatar tkstanczak commented on June 11, 2024

Need to look at the RocksDbSharp to check why the code below would not work:
// RocksDbSharp.Native.Instance.rocksdb_create_cache_lru([capacity]) // should be able to create LRU cache here
// tableOptions.SetBlockCache() // should be able to pass the LRU IntPtr here

from nethermind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.