Re: Linux do_coredump() and SMP systems

2015-02-19 Thread Sudharsan Vijayaraghavan
Hi Greg, There is plan to move to 3.14, right now the focus it to iron out existing issues. Now with regard to core dump issue, we find 10% of times we get struck in coredump_wait(): == wait_for_completion(core_state-startup); Analyzing exit_mm() to see what is going wrong here. I have one

Re: Linux do_coredump() and SMP systems

2015-02-18 Thread Greg KH
On Wed, Feb 18, 2015 at 11:44:32AM +0530, Sudharsan Vijayaraghavan wrote: We are doing prototype so much change have gone into kernel , we are finding it difficult to upgrade to latest immediately What changes are you making to the kernel that you are sticking with such an old version (3.8 is 2

Re: Linux do_coredump() and SMP systems

2015-02-17 Thread Sudharsan Vijayaraghavan
We are doing prototype so much change have gone into kernel , we are finding it difficult to upgrade to latest immediately However I ran through the code once again, indeed kernel handles it down_write(mm-mmap_sem); in coredump_wait() makes sure the second coredump is stopped and returns negative

Re: Linux do_coredump() and SMP systems

2015-02-17 Thread Greg KH
On Tue, Feb 17, 2015 at 07:11:55PM +0530, Sudharsan Vijayaraghavan wrote: Hi All, We are running 3.8 kernel. That's pretty old and obsolete, why are you stuck with that version? I have a unique scenario, where we hit on several issues in do_coredump. We have a SMP system with thousands of

Linux do_coredump() and SMP systems

2015-02-17 Thread Sudharsan Vijayaraghavan
Hi All, We are running 3.8 kernel. I have a unique scenario, where we hit on several issues in do_coredump. We have a SMP system with thousands of cores, one pthread is tied to one core. The main process containing these pthreads runs in the first core. Here is the issue # 1 When one of threads