Maximum size of data segment used by c program
devendra.aaru at gmail.com
Mon Sep 17 07:01:09 EDT 2012
On Mon, Sep 17, 2012 at 6:17 AM, Rajat Sharma <fs.rajat at gmail.com> 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?
> # 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 gmail.com>
>> Hi all,
>> Is there any limit on the maximum data segment size used by c programs?
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
More information about the Kernelnewbies