[lkml]   [2006]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Core file size?
On 30/11/06, linux err <> wrote:
> Does anyone know what determines the size of a core
> dump? I have a process running out of memory (it
> allocates about 3GB) - but the size of core varies
> (between 2-3GB) depending on how much the process
> wrote on the allocated memory.

Makes perfect sense. The core dump contains the memory of the process,
so if the process has 3GB in use then the core file will be 3GB.

You can limit the size of core dumps with "ulimit -c"

> Also, the time it takes to write the core (same size)
> varies??
Could be many reasons for that. If the load on the machine varies the
time to perform any given action will vary as well.

> I briefly looked at elf_core_dump and get_user_pages()
> in binfmt_elf.c. Is there any documentation on this?
> Or anyone knows how it works?

Jesper Juhl <>
Don't top-post
Plain text mails only, please
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-12-01 15:43    [W:0.035 / U:31.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site