<?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 Re: Re:max protected data size enclave can handle in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1246318#M4213</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Jesus, Thank you very much for your answer.&lt;BR /&gt;I managed to load vector more than 400mb (it was issue not SGX related). But I still wonder how EPC size (which is 16mb for me) affects processing of data in the enclave. Only performance is affected when data size is more than EPC size.. or some processing cannot be performed at all?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank /Maxim&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 16:40:33 GMT</pubDate>
    <dc:creator>maxkaynov</dc:creator>
    <dc:date>2021-01-14T16:40:33Z</dc:date>
    <item>
      <title>max protected data size enclave can handle</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1241038#M4190</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;
&lt;P&gt;I'm working on virtualised system managed by ubuntu and I'm trying to understand how much data I can load into the enclave (to do some ml tasks in the future). Enclave heap is 2Gb. The next actions sequentially repeated:&lt;BR /&gt;1. ecall to pass next chunk of data (encrypted values of type double)&lt;BR /&gt;2. decrypt data and append it to a c++vector in the enclave&lt;BR /&gt;After vector becomes more than ~400mbyte - app got stuck.&lt;BR /&gt;Is there any limit on paged protected memory that enclave can manage?&lt;/P&gt;
&lt;P&gt;CPUID&amp;nbsp;says that MaxEnclaveSize_64: 24 in my environment (&lt;A href="https://github.com/ayeks/SGX-hardware/blob/master/test-sgx.c" target="_blank"&gt;https://github.com/ayeks/SGX-hardware/blob/master/test-sgx.c&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;Am I correct that max enclave size is 2^24 (16 mbyte) for me? Is this size limits the total amount of data in protected memory that enclave can handle? Can I anyhow increase amount of data I can load into the enclave?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Maxim&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 20:53:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1241038#M4190</guid>
      <dc:creator>maxkaynov</dc:creator>
      <dc:date>2020-12-27T20:53:54Z</dc:date>
    </item>
    <item>
      <title>Re:max protected data size enclave can handle</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1243474#M4199</link>
      <description>&lt;P&gt;Hello Maxim,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Are you using&lt;SPAN style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;A href="https://github.com/intel/kvm-sgx" rel="noopener noreferrer" target="_blank" style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt;KVM-SGX&lt;/A&gt;&lt;SPAN style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To be able to use more than 400MB in your vector, try increasing the amount of heap and stack memory available to your enclave in the Enclave Config file. You are limited by the amount of memory available to your VM and the amount used by your guest OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you have made available 16MB of your EPC to your guest VM. However, due to paging in most Linux systems, your enclave can use more than the allocated 16MB.  Follow these&lt;SPAN style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;A href="https://github.com/intel/qemu-sgx#virtual-epc" rel="noopener noreferrer" target="_blank" style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt;instructions&lt;/A&gt; to change the amount of allocated EPC with&lt;SPAN style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;A href="https://github.com/intel/qemu-sgx" rel="noopener noreferrer" target="_blank" style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt;Qemu&lt;/A&gt;&lt;SPAN style="font-family: &amp;quot;Calibri&amp;quot;, sans-serif; font-size: 11pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;“To define an EPC range, you must allocate a custom QEMU memory object and assign it a unique ID, then provide the memory ID to the -sgx-epc option. The following QEMU options create and assign an 8-MB EPC to the VM:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier; font-size: 11pt;"&gt;-object memory-backend-epc,id=mem1,size=8M,prealloc -sgx-epc id=epc1,memdev=mem1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can define multiple EPC segments in this manner. See the README file for the qemu-sgx repository for more information on defining EPC segments.”&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:45:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1243474#M4199</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-01-05T15:45:42Z</dc:date>
    </item>
    <item>
      <title>Re:max protected data size enclave can handle</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1245212#M4208</link>
      <description>&lt;P&gt;Hello Maxim,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Were you able to resolve your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jan 2021 18:15:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1245212#M4208</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-01-11T18:15:13Z</dc:date>
    </item>
    <item>
      <title>Re:max protected data size enclave can handle</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1245926#M4211</link>
      <description>&lt;P&gt;&lt;B&gt;Intel is no longer monitoring this thread. If you want a response from Intel in a follow-up question, please open a new thread.&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2021 17:39:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1245926#M4211</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-01-13T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re:max protected data size enclave can handle</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1246318#M4213</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Jesus, Thank you very much for your answer.&lt;BR /&gt;I managed to load vector more than 400mb (it was issue not SGX related). But I still wonder how EPC size (which is 16mb for me) affects processing of data in the enclave. Only performance is affected when data size is more than EPC size.. or some processing cannot be performed at all?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank /Maxim&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 16:40:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/max-protected-data-size-enclave-can-handle/m-p/1246318#M4213</guid>
      <dc:creator>maxkaynov</dc:creator>
      <dc:date>2021-01-14T16:40:33Z</dc:date>
    </item>
  </channel>
</rss>

