Maximum size of data segment used by c program

Rajat Sharma fs.rajat at
Mon Sep 17 06:17:58 EDT 2012

yes there is a limit, look at

# man setrlimit

              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.


On Mon, Sep 17, 2012 at 3:11 PM, devendra.aaru <devendra.aaru at>wrote:

> Hi all,
> Is there any limit on the maximum data segment size used by c programs?
> Thanks,
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list