Skip to content

Conversation

luke-jr
Copy link
Member

@luke-jr luke-jr commented Sep 4, 2020

No point forcing memory to get pushed out to swap just to cache db changes when we can write the db changes out instead

Chasing Concept ACKs and opinions on approach taken (no longer draft)

One eventual goal might be to (on systems where this is supported) allow dbcache to be unlimited.

@laanwj
Copy link
Member

laanwj commented Sep 8, 2020

Concept ACK I think this is a neat idea.

You do need a way to disable this during the tests though, to assure deterministic behaviour that doesn't depend on system circumstances (see Travis).

@jb55
Copy link
Contributor

jb55 commented Sep 10, 2020

Concept ACK

@luke-jr luke-jr changed the title [WIP] Flush dbcache early if system is under memory pressure Flush dbcache early if system is under memory pressure Oct 24, 2020
@luke-jr luke-jr marked this pull request as ready for review October 24, 2020 14:44
@luke-jr
Copy link
Member Author

luke-jr commented Oct 24, 2020

Added logging, a config option, and fixed test (and took out of Draft)

@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 24, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #23732 (refactor: Remove gArgs from bdb.h and sqlite.h by kiminuo)
  • #22564 (refactor: Move mutable globals cleared in ::UnloadBlockIndex to BlockManager by dongcarl)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

No point forcing memory to get pushed out to swap just to cache db changes when we can write the db changes out instead
@DrahtBot
Copy link
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".

@achow101
Copy link
Member

Closing this as it has not had any activity in a while. If you are interested in continuing work on this, please leave a comment so that it can be reopened.

@achow101 achow101 closed this Oct 12, 2022
@luke-jr
Copy link
Member Author

luke-jr commented Nov 12, 2022

This continues to be updated and maintained for Knots.

Feel free to reopen it if anyone shows interest in reviewing for Core. (Ping me if I need to push an older commit temporarily to reopen)

@luke-jr luke-jr mentioned this pull request Sep 5, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants