[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9a8748490612010640t7ed7119bj57f45c8b47289719@mail.gmail.com>
Date: Fri, 1 Dec 2006 15:40:35 +0100
From: "Jesper Juhl" <jesper.juhl@...il.com>
To: "linux err" <linux_err@...oo.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Core file size?
On 30/11/06, linux err <linux_err@...oo.com> 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?
>
http://x86.ddj.com/ftp/manuals/tools/elf.pdf
http://en.wikipedia.org/wiki/Core_dump
--
Jesper Juhl <jesper.juhl@...il.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists