<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic After I replaced malloc to in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Is-sgx-aes-ctr-reentrant/m-p/1104078#M25242</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;After I replaced malloc to tcmalloc, execution times became scalable.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thank you, Juan!&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2017 03:20:50 GMT</pubDate>
    <dc:creator>Joongun_P_</dc:creator>
    <dc:date>2017-05-15T03:20:50Z</dc:date>
    <item>
      <title>Is sgx_aes_ctr reentrant?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Is-sgx-aes-ctr-reentrant/m-p/1104076#M25240</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;In my enclave.cpp code, there is sgx_aes_ctr function calls.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;When I executes my program, it works well but the execution time is not proportional to the 1 / (number of threads).&lt;/P&gt;

&lt;P&gt;I tested with 7700k cpu and 1, 2, 4 threads.&lt;/P&gt;

&lt;P&gt;Without&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;sgx_aes_ctr calls, execution results are &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: gulim; font-size: 13px;"&gt;proportional to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;4, 2, 1 times well.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I am using sgx sdk version 1.8 and I realize that the fuction is lapping of&amp;nbsp;&lt;SPAN style="color: rgb(0, 134, 179); font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;"&gt;ippsAESEncryptCTR.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;A href="https://github.com/01org/linux-sgx/blob/1115c195cd60d5ab2b80c12d07e21663e5aa8030/sdk/tlibcrypto/sgx_aes_ctr.cpp" target="_blank"&gt;https://github.com/01org/linux-sgx/blob/1115c195cd60d5ab2b80c12d07e21663e5aa8030/sdk/tlibcrypto/sgx_aes_ctr.cpp&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/default/files/managed/f6/6f/ippcp_0.pdf" target="_blank"&gt;https://software.intel.com/sites/default/files/managed/f6/6f/ippcp_0.pdf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Is sgx_aes_ctr reentrant?&lt;/P&gt;

&lt;P&gt;Why my programs execution time looks it doesn't?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:53:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Is-sgx-aes-ctr-reentrant/m-p/1104076#M25240</guid>
      <dc:creator>Joongun_P_</dc:creator>
      <dc:date>2017-05-11T10:53:39Z</dc:date>
    </item>
    <item>
      <title>It looks like you're not</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Is-sgx-aes-ctr-reentrant/m-p/1104077#M25241</link>
      <description>&lt;P&gt;It looks like you're not concerned about reentrancy but multithreading scalability, right?&lt;/P&gt;

&lt;P&gt;Could you describe (or even better post) your code here showing how you measure sgx_aes_ctr&amp;nbsp; and ippsAESEncryptCTR execution times?&lt;/P&gt;

&lt;P&gt;If your program is calling sgx_aes_ctr multiple times, the lack of scalability might be caused by the malloc/free&amp;nbsp;calls. Since you're using the 1.8 Linux&amp;nbsp;SGX SDK, you could use the tcmalloc library, instead of the default memory allocator included in sgx_tstdc. If that's not the reason, I'd like to see&amp;nbsp;the test program to better understand what the issue might be.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 13:02:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Is-sgx-aes-ctr-reentrant/m-p/1104077#M25241</guid>
      <dc:creator>Juan_d_Intel</dc:creator>
      <dc:date>2017-05-12T13:02:39Z</dc:date>
    </item>
    <item>
      <title>After I replaced malloc to</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Is-sgx-aes-ctr-reentrant/m-p/1104078#M25242</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;After I replaced malloc to tcmalloc, execution times became scalable.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thank you, Juan!&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 03:20:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Is-sgx-aes-ctr-reentrant/m-p/1104078#M25242</guid>
      <dc:creator>Joongun_P_</dc:creator>
      <dc:date>2017-05-15T03:20:50Z</dc:date>
    </item>
  </channel>
</rss>

