Giter VIP home page Giter VIP logo

Comments (6)

Connor1996 avatar Connor1996 commented on August 19, 2024

Just rewrite the still valid kv in a new blob file in next merge. So level_merge would increase write amplification.

from titan.

Peiqi0714 avatar Peiqi0714 commented on August 19, 2024

yes,i know.but I still have 2 questions
1.But if I don’t set a gc tag to this vtable, it still involve in a merge if it Has compaction related keys.
2.only valid compaction related keys can be rewritten,if some keys never involves in a compaction,the vtable still contains valid values even though the portion is small,and we cant delete the vtable. how can we solve the problem,this may cause huge space amplification

from titan.

Peiqi0714 avatar Peiqi0714 commented on August 19, 2024

yes,i know.but I still have 2 questions 1.But if I don’t set a gc tag to this vtable, it still involve in a merge if it Has compaction related keys. 2.only valid compaction related keys can be rewritten,if some keys never involves in a compaction,the vtable still contains valid values even though the portion is small,and we cant delete the vtable. how can we solve the problem,this may cause huge space amplification

vtable means blobfile here

from titan.

Connor1996 avatar Connor1996 commented on August 19, 2024
  1. Yes, check ShouldMerge
  2. That's true. We have observed it in tests. It has huge space amplification for update intensive workload. That's why it's not GA.

from titan.

Peiqi0714 avatar Peiqi0714 commented on August 19, 2024
  1. Yes, check ShouldMerge
  2. That's true. We have observed it in tests. It has huge space amplification for update intensive workload. That's why it's not GA.

thanks,but i noticed that when I open db, a regular gc Thread will be initialized (it will quit and never call again if no file needs go).even we enable level Merge, I found that when I
reopen a db,this regular gc thread will be initialized and clean some blob files which meet threshold. But if open a new db(level merge enable),this thread will be initialized and quit quickly,cant do regular gc in the future unless i reopen the db

from titan.

Connor1996 avatar Connor1996 commented on August 19, 2024

Level merge is a alternative to regular gc, so need to call background gc if level merge enabled

from titan.

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.