<?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[wozu ausrichten an cache-line?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hätte nur eine verständnisfrage. Im neuen Standard gibts es die Möglichkeit über __attribute__ Daten an cache-lines auszurichten. Das soll z.B. Abhelfen beim false sharing.<br />
Wie muss ich mir das vorstellen bzw. warum hilft das Ausrichten an cache-lines gegen das besagte false sharing?</p>
<p>Danke für Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/320007/wozu-ausrichten-an-cache-line</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 14:52:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/320007.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Sep 2013 08:37:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 08:37:57 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich hätte nur eine verständnisfrage. Im neuen Standard gibts es die Möglichkeit über __attribute__ Daten an cache-lines auszurichten. Das soll z.B. Abhelfen beim false sharing.<br />
Wie muss ich mir das vorstellen bzw. warum hilft das Ausrichten an cache-lines gegen das besagte false sharing?</p>
<p>Danke für Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352091</guid><dc:creator><![CDATA[cache]]></dc:creator><pubDate>Thu, 12 Sep 2013 08:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 09:04:04 GMT]]></title><description><![CDATA[<p>cache schrieb:</p>
<blockquote>
<p>Im neuen Standard gibts es die Möglichkeit über __attribute__ Daten an cache-lines auszurichten.</p>
</blockquote>
<p>Das wäre mir neu. Wo im Standard soll das stehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352095</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 12 Sep 2013 09:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 09:05:27 GMT]]></title><description><![CDATA[<p>Das Ausrichten an cache-lines erhöht die Chance, das die Daten in eine cache-line passen. Das verhindert für sich genommen kein false sharing, aber je mehr Cachlines einzelne Datenstrukturen belegen, desto größer ist die Wahrscheinlichkeit von false sharing. In erster linie ergeben sich aber Performencegewinne beim Zugriff, da es seltener zu Cache-Misses kommt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352096</guid><dc:creator><![CDATA[TNA]]></dc:creator><pubDate>Thu, 12 Sep 2013 09:05:27 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 09:09:02 GMT]]></title><description><![CDATA[<p>Hier ist ne lange Erklärung: <a href="http://www.roguewave.com/portals/0/products/threadspotter/docs/2011.1/manual/multithreading_problems.html" rel="nofollow">http://www.roguewave.com/portals/0/products/threadspotter/docs/2011.1/manual/multithreading_problems.html</a></p>
<p>Die kurze hat TNA viel besser hinbekommen als ich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352097</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352097</guid><dc:creator><![CDATA[Shade Of Mine]]></dc:creator><pubDate>Thu, 12 Sep 2013 09:09:02 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 09:26:52 GMT]]></title><description><![CDATA[<p>danke, jetzt versteh ichs besser!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352101</guid><dc:creator><![CDATA[cache]]></dc:creator><pubDate>Thu, 12 Sep 2013 09:26:52 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 09:28:13 GMT]]></title><description><![CDATA[<p>cache schrieb:</p>
<blockquote>
<p>Im neuen Standard gibts es die Möglichkeit über __attribute__ Daten an cache-lines auszurichten.</p>
</blockquote>
<p>Das wäre mir neu. Wo im Standard soll das stehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352102</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352102</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 12 Sep 2013 09:28:13 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 09:31:56 GMT]]></title><description><![CDATA[<p>das mit dem neuen standard ist wohl Blödsinn gewesen, sorry.<br />
Aber in der POSIX-bib und über gcc gehts mit __attribute__</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352105</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352105</guid><dc:creator><![CDATA[cache]]></dc:creator><pubDate>Thu, 12 Sep 2013 09:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 09:38:18 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>cache schrieb:</p>
<blockquote>
<p>Im neuen Standard gibts es die Möglichkeit über __attribute__ Daten an cache-lines auszurichten.</p>
</blockquote>
<p>Das wäre mir neu. Wo im Standard soll das stehen?</p>
</blockquote>
<p>Das wäre zumindest mal eine sehr gute Anwendungsmöglichkeit, für die neue Attributssyntax. Wenn ich die Dokumentation des GCC richtig verstehe, geht die neue Syntax ab Version 4.8 für alle Attribute, die der GCC unter seiner speziellen __attribute__-Syntax kennt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352107</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 12 Sep 2013 09:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 10:04:21 GMT]]></title><description><![CDATA[<p>die Attribute Syntax ist gcc spezifisch. in C++11 gibt es aber alignas</p>
<p><a href="http://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax" rel="nofollow">http://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax</a><br />
<a href="http://en.cppreference.com/w/cpp/language/alignas" rel="nofollow">http://en.cppreference.com/w/cpp/language/alignas</a></p>
<p>das ganze ist auch nicht zu verwechseln mit der C++11 attribute specifier sequence</p>
<p><a href="http://en.cppreference.com/w/cpp/language/attributes" rel="nofollow">http://en.cppreference.com/w/cpp/language/attributes</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352116</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352116</guid><dc:creator><![CDATA[dd++ 0]]></dc:creator><pubDate>Thu, 12 Sep 2013 10:04:21 GMT</pubDate></item><item><title><![CDATA[Reply to wozu ausrichten an cache-line? on Thu, 12 Sep 2013 12:00:36 GMT]]></title><description><![CDATA[<p>dd++ schrieb:</p>
<blockquote>
<p>das ganze ist auch nicht zu verwechseln mit der C++11 attribute specifier sequence</p>
<p><a href="http://en.cppreference.com/w/cpp/language/attributes" rel="nofollow">http://en.cppreference.com/w/cpp/language/attributes</a></p>
</blockquote>
<p>Doch, die meine ich. Ich kann es gerade nicht ausprobieren, aber angeblich kann der neueste GCC alle seine __attributes__ auch mit dieser Syntax.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352146</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 12 Sep 2013 12:00:36 GMT</pubDate></item></channel></rss>