Messages in this thread | | | Date | Fri, 28 Nov 2014 20:28:05 +0100 | From | Oleg Nesterov <> | Subject | Re: [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.
| |