title: Why does the memory consumption grows when using more threads on Linux? (C++)
body: <p><strong>Program:</strong></p>
  
  <p>I created a C++ calculation program for high volume of data, which could be run on 1 or more threads. (via config file)</p>
  
  <p>The program environment is the following: C++, OpenMp, Redhat-x64, malloc/free</p>
  
  <p><strong>Results on Linux:</strong></p>
  
  <ul>
  <li>When I run it on 1 thread, process size is 177 MB.</li>
  <li>When I run it on 2 threads, process size is 317 MB.</li>
  <li>When I run it on 4 threads, process size is 600 MB.</li>
  </ul>
  
  <p><strong>Results on Windows:</strong></p>
  
  <ul>
  <li>Process size still the same regardless the number of threads used, 110MB.</li>
  </ul>
  
  <p><strong>Question:</strong></p>
  
  <p>Why does the memory consumption grows when using more threads on Linux?</p>