On Wed, 7 May 2008 14:25:39 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:I don't think this is a fix for serious trouble just a improvement. But not sure on small systems.... a consideration. == at coredump before patch killed by something -> generate core dump -> allocate "a" page before starting I/O even if a page is empty -> do I/O A page which is not mapped but there is page tables will be written out. Here, newly allocated page is mapped_and_used after I/O. So, when we reclaim this page, we need swap. This means terrible slow down or we cannot go ahead when we exhaust swap. A user can avoid this kind ot situation by setting rlimit. (and RLIMIT_CORE is 0 at default.) or set overcommit memory or set dirty_ratio to very small. But one terrible thing which I can think of is that a process in coredump cannot be killed. So once this happens, a user have to be patient or reboot system. It seems this patch can help coredump in following system - swapless or An application which can generate core has some amount of ANON memory and it is multi-threaded. (pthread's stack is typical case for this memory usage.) - RLIMIT_CORE is RLIMIT_INIFINITY - core_pattern is file. - Don't have enough memory to do buffer I/O at coredump. - dirty_ratio is default. But an application on this kind of system tends to be well controlled. Ok, I'll check and update this against the newest git tree. (But may took some hours.) Thanks, -Kame --
| Ingo Molnar | Re: [BUG] long freezes on thinkpad t60 |
| Rafael J. Wysocki | Re: [Bug 10030] Suspend doesn't work when SD card is inserted |
| Jamie Lokier | Proposal for "proper" durable fsync() and fdatasync() |
| jimmy bahuleyan | Re: how about mutual compatibility between Linux's GPLv2 and GPLv3? |
git: | |
| Martin Langhoff | Handling large files with GIT |
| Matt Mackall | Re: cleaner/better zlib sources? |
| Wink Saville | git-svn segmetation fault |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Florin Andrei | firewall is very slow, something's wrong |
| Wijnand Wiersma | Almost success: OpenBSD on Xen |
| Marcus Andree | Re: OpenBSD kernel janitors |
| Richard Stallman | Real men don't attack straw men |
| David Miller | Re: tcp bw in 2.6 |
| Rick Jones | Re: 2.6.24 BUG: soft lockup - CPU#X |
| Patrick McHardy | [NET_SCHED 00/04]: External SFQ classifiers/flow classifier |
| Patrick McHardy | Re: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode |
