Skip to content

Cache is reset without reaching configured limit #188

@coold-wallet

Description

@coold-wallet

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

just observed with knots 29.1 while in IBD: The cache is flushed often without reaching the configured limit.
relevant message from debug.log:
2025-09-13T13:31:39Z SystemNeedsMemoryReleased: YES: 60604416 free RAM + 2818048 buffer RAM
RAM usage is only ~1500MB of 4000MB no other programs opened, swap disabled
does not happen with knots 28.1 .
Let me know if more information is needed from my side.

Expected behaviour

cache should be used as configured, except no more memory available.
i also observed that with cache configured to 400MiB it flushes only after reaching ~667MiB

Steps to reproduce

download binaries for knots 29.1 (aarch64) from bitcoin knots website and start bitcoin-qt.

Relevant log output

debug.log

How did you obtain Bitcoin Knots

Pre-built binaries

What version of Bitcoin Knots are you using?

Bitcoin Knots version v29.1.knots20250903

Operating system and version

Debian 12 (Raspberry Pi OS 64bit)

Machine specifications

Raspberry Pi 5 - 4GB
Kingston M.2 SSD 500GB via pci-e
wired gigabit connection

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions