<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: A thorny memory leak in bitcoind, and a way forward</title>
	<atom:link href="http://jfxpt.com/2025/a-thorny-memory-leak-in-bitcoind-and-a-way-forward/feed/" rel="self" type="application/rss+xml" />
	<link>http://jfxpt.com/2025/a-thorny-memory-leak-in-bitcoind-and-a-way-forward/</link>
	<description>The search for invariants</description>
	<pubDate>Tue, 14 Apr 2026 08:05:37 +0000</pubDate>
	<generator>http://polimedia.us</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jacob Welsh</title>
		<link>http://jfxpt.com/2025/a-thorny-memory-leak-in-bitcoind-and-a-way-forward/#comment-3344</link>
		<dc:creator>Jacob Welsh</dc:creator>
		<pubDate>Mon, 13 Oct 2025 03:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://jfxpt.com/?p=293#comment-3344</guid>
		<description>&lt;a href="/codeview/tree/bitcoin/bitcoin_reorg_bounded_space/bitcoin/src/net.h#L217" rel="nofollow"&gt;CNode::setInventoryKnown&lt;/a&gt; is a similar egregious free memory sinkhole, growing without bound even in normal operation though presumably at least freed on disconnect. It's also suspected of contributing to block download troubles, because &lt;a href="/codeview/tree/bitcoin/bitcoin_reorg_bounded_space/bitcoin/src/main.cpp#L1995" rel="nofollow"&gt;this PushInventory&lt;/a&gt; will fail to inform the peer of a required block when they "should" know about it because we happened to send it before, regardless of whether it was usable to them. (IIRC a Fixpoint commenter pointed this out some years ago, perhaps only in the abstract, but I'm not presently finding it in the relevant places.)</description>
		<content:encoded><![CDATA[<p><a href="/codeview/tree/bitcoin/bitcoin_reorg_bounded_space/bitcoin/src/net.h#L217" rel="nofollow">CNode::setInventoryKnown</a> is a similar egregious free memory sinkhole, growing without bound even in normal operation though presumably at least freed on disconnect. It's also suspected of contributing to block download troubles, because <a href="/codeview/tree/bitcoin/bitcoin_reorg_bounded_space/bitcoin/src/main.cpp#L1995" rel="nofollow">this PushInventory</a> will fail to inform the peer of a required block when they "should" know about it because we happened to send it before, regardless of whether it was usable to them. (IIRC a Fixpoint commenter pointed this out some years ago, perhaps only in the abstract, but I'm not presently finding it in the relevant places.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robinson Dorion</title>
		<link>http://jfxpt.com/2025/a-thorny-memory-leak-in-bitcoind-and-a-way-forward/#comment-3342</link>
		<dc:creator>Robinson Dorion</dc:creator>
		<pubDate>Sat, 11 Oct 2025 17:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://jfxpt.com/?p=293#comment-3342</guid>
		<description>&lt;blockquote&gt;
The basic principles are 1) nothing may be expended without limit and 2) absent the possibility of weighing the value of things by their content, weigh by their source.
&lt;/blockquote&gt;

Applying these principles will put us firmly on the path to differentiate it from the current &lt;a href="http://jfxpt.com/2022/the-passive-threads-that-would-like-to-be-given-some-blocks/" rel="nofollow"&gt;passive&lt;/a&gt;, &lt;a href="http://trilema.com/2018/heres-how-pantsuitism-christianity-ruined-civilisation-in-both-the-ancient-and-the-modern-world/" rel="nofollow"&gt;pantsuitist&lt;/a&gt;, &lt;a href="http://trilema.com/2014/the-mobile-revolution-or-what-consumers-have-come-to-expect/" rel="nofollow"&gt;consumers&lt;/a&gt; have come to expect &lt;a href="http://trilema.com/2016/honor-societies-vs-respect-societies-or-how-the-disaster-of-commons-sunk-the-western-world/" rel="nofollow"&gt;respect&lt;/a&gt; even if militantly naive because &lt;a href="http://trilema.com/2020/forum-logs-for-07-apr-2017/#2265605" rel="nofollow"&gt;thinking&lt;/a&gt; is hard to an &lt;a href="http://trilema.com/2013/a-very-unfair-perspective/?b=There%20isn&#38;e=the%20active.#select" rel="nofollow"&gt;active&lt;/a&gt;, &lt;a href="http://trilema.com/2018/patriarchy-vs-matriarchy-the-straight-dope/?b=history%20is%20made&#38;e=being%20cool#select" rel="nofollow"&gt;patriarchal&lt;/a&gt;, honor system that satisfies man's &lt;a href="http://trilema.com/2021/the-needed/" rel="nofollow"&gt;need&lt;/a&gt; to construct meritocratic hierarchies for effectual resource allocation.

While rather thorny indeed, it's exciting to be unfolding this development.

All the points in the 2nd list make sense to me.

&lt;blockquote&gt;
It's also noted that it may still be desirable to disconnect even good peers from time to time, to make room for mixing things up, better exploring the space and not being too predictable.
&lt;/blockquote&gt;

&lt;a href="http://trilema.com/2020/the-seven-laws/?b=Do%20not%20wallow&#38;e=#select" rel="nofollow"&gt;Do not wallow content&lt;/a&gt;. Word.</description>
		<content:encoded><![CDATA[<blockquote><p>
The basic principles are 1) nothing may be expended without limit and 2) absent the possibility of weighing the value of things by their content, weigh by their source.
</p></blockquote>
<p>Applying these principles will put us firmly on the path to differentiate it from the current <a href="http://jfxpt.com/2022/the-passive-threads-that-would-like-to-be-given-some-blocks/" rel="nofollow">passive</a>, <a href="http://trilema.com/2018/heres-how-pantsuitism-christianity-ruined-civilisation-in-both-the-ancient-and-the-modern-world/" rel="nofollow">pantsuitist</a>, <a href="http://trilema.com/2014/the-mobile-revolution-or-what-consumers-have-come-to-expect/" rel="nofollow">consumers</a> have come to expect <a href="http://trilema.com/2016/honor-societies-vs-respect-societies-or-how-the-disaster-of-commons-sunk-the-western-world/" rel="nofollow">respect</a> even if militantly naive because <a href="http://trilema.com/2020/forum-logs-for-07-apr-2017/#2265605" rel="nofollow">thinking</a> is hard to an <a href="http://trilema.com/2013/a-very-unfair-perspective/?b=There%20isn&amp;e=the%20active.#select" rel="nofollow">active</a>, <a href="http://trilema.com/2018/patriarchy-vs-matriarchy-the-straight-dope/?b=history%20is%20made&amp;e=being%20cool#select" rel="nofollow">patriarchal</a>, honor system that satisfies man's <a href="http://trilema.com/2021/the-needed/" rel="nofollow">need</a> to construct meritocratic hierarchies for effectual resource allocation.</p>
<p>While rather thorny indeed, it's exciting to be unfolding this development.</p>
<p>All the points in the 2nd list make sense to me.</p>
<blockquote><p>
It's also noted that it may still be desirable to disconnect even good peers from time to time, to make room for mixing things up, better exploring the space and not being too predictable.
</p></blockquote>
<p><a href="http://trilema.com/2020/the-seven-laws/?b=Do%20not%20wallow&amp;e=#select" rel="nofollow">Do not wallow content</a>. Word.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
