Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

memory limits

Roman1
New Contributor I
441 Views

Hi,

I think the following Intel web page is very interesting:
http://software.intel.com/en-us/articles/memory-limits-applications-windows/

Do you have something similar for Linux? I have searched, but I can't
seem to find it.


Roman
0 Kudos
2 Replies
Steven_L_Intel1
Employee
441 Views
We don't have a similar article for Linux. The situation on Linux is a bit different.

For 32-bit systems, the same limits generally apply as for Windows.

For 64-bit systems, it depends on which of the "-mcmodel" options you specify when you build:
  • -mcmodel=small - static code and data limited to 2GB. This is the default
  • -mcmodel=medium - static code is limited to 2GB but static data is unlimited
  • -mcmodel=large - no limits on size of static code or data

There are performance and code size penalties for the medium and large options.

Dynamically-allocated data on 64-bit systems has no inherent limit. As best as I can tell, there is also no fixed limit on stack size, though on Linux this is established with a default when the process is created and can be raised by a shell command.

0 Kudos
Roman1
New Contributor I
441 Views

Thanks for the information. This is what I was looking for.
0 Kudos
Reply