Thread (6 messages) flat view 6 messages, 3 authors, 2012-09-20

Maximum size of data segment used by c program

From: devendra.aaru <hidden>
Date: 2012-09-17 11:01:09

On Mon, Sep 17, 2012 at 6:17 AM, Rajat Sharma [off-list ref] wrote:
yes there is a limit, look at
getrlimit show the size as 4GiGs of RLIMIT_DATA on a 32-bit. which
means that its unlimited?

Thanks,
# man setrlimit

RLIMIT_DATA
              The maximum size of the process's data segment (initialized
data, uninitialized data, and heap).  This limit affects calls to brk(2) and
sbrk(2), which fail with the error ENOMEM  upon
              encountering the soft limit of this resource.

-Rajat

On Mon, Sep 17, 2012 at 3:11 PM, devendra.aaru [off-list ref]
wrote:
quoted
Hi all,

Is there any limit on the maximum data segment size used by c programs?

Thanks,

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help