https://redmine.named-data.net/https://redmine.named-data.net/favicon.ico?14759811232014-05-17T22:24:11ZNDN project issue tracking systemNFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=29552014-05-17T22:24:11ZJunxiao Shi
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-1 priority-lowest" href="/issues/1301">Feature #1301</a>: Shrink table size during memory stress</i> added</li></ul> NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=30722014-06-02T08:47:02ZAnonymous
<ul></ul><p>Should the size be configured by the maximum number of packets or by storage size (e.g. 500MB)? I'm leaning towards storage size and letting the config processor deal with the conversion (we currently assume 8KB packets).</p>
<p>This would result in the section looking like so:</p>
<pre><code>tables
{
cs_max_size 500MB
}
</code></pre>
<p>We could support KB, MB, GB, and TB units for now. It would also be mandatory to specify the unity in order to future proof the config a bit.</p>
NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=30732014-06-02T08:52:58ZAlex Afanasyev
<ul></ul><p>Ideally, the size if of course better. The problem is that it is harder to maintain that size in the content store itself, since it depends on the size of data packets, which can vary greatly.</p>
<p>We only have this limit in number of packets, so for now it is enough to configure the limit in number of items.</p>
NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=30742014-06-02T09:04:31ZAnonymous
<ul></ul><p>Ok, I'll do something like this then:</p>
<pre><code>tables
{
; ~500MB with average packet size = 8KB
cs_max_packets 65536
}
</code></pre>
<p>(taken directly from cs.hpp)</p>
NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=30762014-06-02T14:01:16ZAnonymous
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>70</i></li></ul> NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=30842014-06-03T19:26:28ZAnonymous
<ul><li><strong>Blocked by</strong> <i><a class="issue tracker-1 status-5 priority-2 priority-default closed" href="/issues/1646">Bug #1646</a>: ~Cs assertion failure after setLimit()</i> added</li></ul> NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=30852014-06-03T19:33:02ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Code review</i></li><li><strong>% Done</strong> changed from <i>70</i> to <i>100</i></li></ul><p>I've added <a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: ~Cs assertion failure after setLimit() (Closed)" href="https://redmine.named-data.net/issues/1646">#1646</a> as a blocker in the sense that it will prevent the tests from verifying. Otherwise, coding (modulo review comments) should be complete.</p>
NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=32362014-06-13T20:58:22ZAlex Afanasyev
<ul><li><strong>Status</strong> changed from <i>Code review</i> to <i>Closed</i></li></ul> NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=35092014-06-26T18:22:23ZJunxiao Shi
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li></ul><p>The wiki page <a class="wiki-page" href="https://redmine.named-data.net/projects/nfd/wiki/ConfigFileFormat">ConfigFileFormat</a> needs updated with the new <code>tables</code> section.</p>
NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=35102014-06-26T18:25:39ZAlex Afanasyev
<ul></ul><p>I just copied the current nfd.conf.sample to wiki. There were several differences, including very much redesigned rib section.</p>
NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=35112014-06-26T18:27:07ZJunxiao Shi
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul> NFD - Task #1623: Make ContentStore size configurablehttps://redmine.named-data.net/issues/1623?journal_id=37632014-07-07T19:02:12ZAlex Afanasyev
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-3 priority-high3 closed" href="/issues/1743">Task #1743</a>: Proper default settings are not applied to ContentStore</i> added</li></ul>