<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem mit mallinfo_heap]]></title><description><![CDATA[<p>Hallo liebes Forum <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
<p>ich habe ein großes Probelem!</p>
<p>Benötige zur Prüfung, ob eine zwischenpersistierung meiner Objekte notwendig ist, inforamatationen über noch freien heap-speicher.</p>
<p>Momentan ist dies so implementiert:</p>
<pre><code>struct mallinfo_heap structHeap = mallinfo_heap (0);
</code></pre>
<p>Wenn sich nun mein Speicher füllt benotigt diese Codestelle expotentiell zeit. Bei neuinitierung meines Process ist die Ausführungszeit nicht messbar, steigt nach einer gewissen zeit auf durchschnittlich 0,109 sek an! keines falls akzeptabel!</p>
<p>Kann mir jemand bei der lösung des Problems helfen oder kennt jemand eine effektiveres Konstrukt zur Abfrage des Speichers?</p>
<p>Vielen Dank für euche mithilfe im voraus...</p>
<p>theOneWithTheProblem</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/190581/problem-mit-mallinfo_heap</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 21:41:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/190581.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Aug 2007 09:31:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Fri, 24 Aug 2007 09:31:05 GMT]]></title><description><![CDATA[<p>Hallo liebes Forum <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
<p>ich habe ein großes Probelem!</p>
<p>Benötige zur Prüfung, ob eine zwischenpersistierung meiner Objekte notwendig ist, inforamatationen über noch freien heap-speicher.</p>
<p>Momentan ist dies so implementiert:</p>
<pre><code>struct mallinfo_heap structHeap = mallinfo_heap (0);
</code></pre>
<p>Wenn sich nun mein Speicher füllt benotigt diese Codestelle expotentiell zeit. Bei neuinitierung meines Process ist die Ausführungszeit nicht messbar, steigt nach einer gewissen zeit auf durchschnittlich 0,109 sek an! keines falls akzeptabel!</p>
<p>Kann mir jemand bei der lösung des Problems helfen oder kennt jemand eine effektiveres Konstrukt zur Abfrage des Speichers?</p>
<p>Vielen Dank für euche mithilfe im voraus...</p>
<p>theOneWithTheProblem</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350994</guid><dc:creator><![CDATA[theOneWithTheProblem]]></dc:creator><pubDate>Fri, 24 Aug 2007 09:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Fri, 24 Aug 2007 19:52:18 GMT]]></title><description><![CDATA[<p>Die Funktion mallinfo_heap ist doch von dir selber geschrieben, oder? Ohne zu wissen, wie der Inhalt der Funktion nun aussieht, kann dir wohl keiner was zu deren Laufzeitverhalten sagen :p</p>
<p>Ne, alles was ich kenne, um die restliche Größe des Speichers zu ermitteln, sind OS-spezifische Funktionen, ich glaube nicht, dass C++ an sich sowas unterstützt. Unter Windows gibts z.B. die Funktion ... hm, vergessen, finde sie auch nicht mehr <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> sry.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1351452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1351452</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Fri, 24 Aug 2007 19:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Thu, 06 Sep 2007 14:06:49 GMT]]></title><description><![CDATA[<p>nein, nein... die malloc_heap ist nicht von mir, sondern IBM (AIX):</p>
<p>mallinfo_heap<br />
Syntax</p>
<p>#include &lt;malloc.h&gt;<br />
#include &lt;stdlib.h&gt;struct mallinfo_heap mallinfo_heap (Heap)<br />
int Heap;</p>
<p>Description<br />
In a multiheap context, the mallinfo_heap subroutine can be used to obtain information about a specific heap managed by the malloc subsystem.</p>
<p>Parameters</p>
<p>Heap Specifies which heap to query.</p>
<p>Return Values<br />
mallinfo_heap returns a structure of type struct mallinfo_heap, filled in with relevant information and statistics about the heap. The contents of this structure can be interpreted using the definition of struct mallinfo_heap in /usr/include/malloc.h.</p>
<p>Error Codes<br />
The mallinfo_heap subroutine does not set errno.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1360264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1360264</guid><dc:creator><![CDATA[theOneWithTheProblem]]></dc:creator><pubDate>Thu, 06 Sep 2007 14:06:49 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Fri, 07 Sep 2007 10:58:53 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-8.html" rel="nofollow">Rund um die Programmierung</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1360704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1360704</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 07 Sep 2007 10:58:53 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Fri, 07 Sep 2007 11:14:42 GMT]]></title><description><![CDATA[<p>- gestrichen -</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1360716</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1360716</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Fri, 07 Sep 2007 11:14:42 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Fri, 07 Sep 2007 14:04:53 GMT]]></title><description><![CDATA[<p>So kann auch geholfen werden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /></p>
<p>Nein, spaß bei Seite. Ich konnte das Problem bisher immer noch nicht lösen (bessergesagt, ich habe es in der zwischenzeit nicht weiterverfolgt). Dennoch muss ich es irgendwie in den Griff bekommen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1360842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1360842</guid><dc:creator><![CDATA[theOneWithTheProblem]]></dc:creator><pubDate>Fri, 07 Sep 2007 14:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Fri, 07 Sep 2007 14:39:03 GMT]]></title><description><![CDATA[<p>Hm, aber bist du dir sicher, dass du es überhaupt so oft aufrufen musst? Kannst du das nicht irgendwie umgehen? Und für was für ein System programmierst du? Gibts da vielleicht eine Funktion, die performanter ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1360866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1360866</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Fri, 07 Sep 2007 14:39:03 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit mallinfo_heap on Fri, 07 Sep 2007 14:39:16 GMT]]></title><description><![CDATA[<p>theOneWithTheProblem schrieb:</p>
<blockquote>
<p>So kann auch geholfen werden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /></p>
<p>Nein, spaß bei Seite. Ich konnte das Problem bisher immer noch nicht lösen (bessergesagt, ich habe es in der zwischenzeit nicht weiterverfolgt). Dennoch muss ich es irgendwie in den Griff bekommen...</p>
</blockquote>
<p>wenn die funktion teuer ist, dann muss du irgendwie versuchen, diese funktion seltener aufzurufen. z.b. indem du selber abschätzt, wie viel speicher allokiert wurde und die schätzung dann ab und zu korrigierst.</p>
<p>Gruß<br />
mathik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1360867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1360867</guid><dc:creator><![CDATA[mathik]]></dc:creator><pubDate>Fri, 07 Sep 2007 14:39:16 GMT</pubDate></item></channel></rss>