lkml.org 
[lkml]   [2014]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/2] oom && coredump
On 11/28, Oleg Nesterov wrote:
>
> On 11/27, Oleg Nesterov wrote:
> >
> > So I think the patch below makes sense anyway. Although I should probably
> > split it and remove PT_TRACE_EXIT in 2/2.
>
> So let me send the patches.
>
> David, Michal, could you review and ack/nack these changes explicitly?
>
> Let me repeat once again that this patch doesn't pretend to solve
> all problems, even with the coredumping. And I have to admit that
> my main motivation is 2/2, this PT_TRACE_EXIT check annoys me ;)

Another simple test. cat mtsleep.c:

#include <unistd.h>
#include <pthread.h>

void *tfunc(void *arg)
{
pause();
return NULL;
}

int main(void)
{
pthread_t th;

pthread_create(&th, NULL, tfunc, NULL);
pause();

return 0;
}

Now,

# echo '|/bin/sleep 1000' >> /proc/sys/kernel/core_pattern
# echo 10 >> /proc/sys/kernel/core_pipe_limit

# ./mtsleep &
# kill -QUIT %1
# perl -e 'push @_,"x" x 1000_1000 while 1'

Before this series the system hangs and doesn't respond. With these
patches it correctly kills perl.

Oleg.



\
 
 \ /
  Last update: 2014-11-28 21:01    [W:0.112 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site