From: "Jesper Juhl" <jesper.juhl@gmail.com>
To: "linux err" <linux_err@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Core file size?
Date: Fri, 1 Dec 2006 15:40:35 +0100 [thread overview]
Message-ID: <9a8748490612010640t7ed7119bj57f45c8b47289719@mail.gmail.com> (raw)
In-Reply-To: <4288.39070.qm@web56507.mail.re3.yahoo.com>
On 30/11/06, linux err <linux_err@yahoo.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@gmail.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
next prev parent reply other threads:[~2006-12-01 14:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-30 4:44 linux err
2006-12-01 14:40 ` Jesper Juhl [this message]
2006-12-01 15:47 ` linux err
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a8748490612010640t7ed7119bj57f45c8b47289719@mail.gmail.com \
--to=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux_err@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®