Hacker News new | past | comments | ask | show | jobs | submit login

I don't think I wrote much documentation about this, sorry. Basically the idea is that there's a pointer which moves through the key-space looking at pages, and if it passes any pages which are "old" it marks them as dirty so that they're rewritten as part of the next batch. The rate at which the cleaning pointer moves through key-space depends on the accumulated "cleaning debt", which is based on the amount of garbage along with the current I/O rate; the aim is to hit a steady-state where the total amount of I/O is constant and the cleaning gets the "left over" I/O after requests are serviced.



Just wanted to follow up to say I really like how clean and well commented this code is.


Thanks! I'll check out the code in a bit, but that context will help.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: