Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-23 Thread Suren Baghdasaryan
On Wed, Nov 18, 2020 at 4:13 PM Suren Baghdasaryan wrote: > > On Wed, Nov 18, 2020 at 11:55 AM Suren Baghdasaryan wrote: > > > > On Wed, Nov 18, 2020 at 11:51 AM Suren Baghdasaryan > > wrote: > > > > > > On Wed, Nov 18, 2020 at 11:32 AM Michal Hocko wrote: > > > > > > > > On Wed 18-11-20

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-18 Thread Suren Baghdasaryan
On Wed, Nov 18, 2020 at 11:55 AM Suren Baghdasaryan wrote: > > On Wed, Nov 18, 2020 at 11:51 AM Suren Baghdasaryan wrote: > > > > On Wed, Nov 18, 2020 at 11:32 AM Michal Hocko wrote: > > > > > > On Wed 18-11-20 11:22:21, Suren Baghdasaryan wrote: > > > > On Wed, Nov 18, 2020 at 11:10 AM Michal

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-18 Thread Suren Baghdasaryan
On Wed, Nov 18, 2020 at 11:51 AM Suren Baghdasaryan wrote: > > On Wed, Nov 18, 2020 at 11:32 AM Michal Hocko wrote: > > > > On Wed 18-11-20 11:22:21, Suren Baghdasaryan wrote: > > > On Wed, Nov 18, 2020 at 11:10 AM Michal Hocko wrote: > > > > > > > > On Fri 13-11-20 18:16:32, Andrew Morton

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-18 Thread Suren Baghdasaryan
On Wed, Nov 18, 2020 at 11:32 AM Michal Hocko wrote: > > On Wed 18-11-20 11:22:21, Suren Baghdasaryan wrote: > > On Wed, Nov 18, 2020 at 11:10 AM Michal Hocko wrote: > > > > > > On Fri 13-11-20 18:16:32, Andrew Morton wrote: > > > [...] > > > > It's all sounding a bit painful (but not *too*

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-18 Thread Michal Hocko
On Wed 18-11-20 11:22:21, Suren Baghdasaryan wrote: > On Wed, Nov 18, 2020 at 11:10 AM Michal Hocko wrote: > > > > On Fri 13-11-20 18:16:32, Andrew Morton wrote: > > [...] > > > It's all sounding a bit painful (but not *too* painful). But to > > > reiterate, I do think that adding the ability

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-18 Thread Suren Baghdasaryan
On Wed, Nov 18, 2020 at 11:10 AM Michal Hocko wrote: > > On Fri 13-11-20 18:16:32, Andrew Morton wrote: > [...] > > It's all sounding a bit painful (but not *too* painful). But to > > reiterate, I do think that adding the ability for a process to shoot > > down a large amount of another

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-18 Thread Michal Hocko
On Fri 13-11-20 18:16:32, Andrew Morton wrote: [...] > It's all sounding a bit painful (but not *too* painful). But to > reiterate, I do think that adding the ability for a process to shoot > down a large amount of another process's memory is a lot more generally > useful than tying it to

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-18 Thread Christian Brauner
On Fri, Nov 13, 2020 at 03:55:39PM -0800, Andrew Morton wrote: > On Fri, 13 Nov 2020 09:34:48 -0800 Suren Baghdasaryan > wrote: > > > When a process is being killed it might be in an uninterruptible sleep > > which leads to an unpredictable delay in its memory reclaim. In low memory > >

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-16 Thread Minchan Kim
On Fri, Nov 13, 2020 at 06:16:32PM -0800, Andrew Morton wrote: > On Fri, 13 Nov 2020 17:57:02 -0800 Suren Baghdasaryan > wrote: > > > On Fri, Nov 13, 2020 at 5:18 PM Andrew Morton > > wrote: > > > > > > On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan > > > wrote: > > > > > > > > > >

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
On Fri, Nov 13, 2020 at 6:16 PM Andrew Morton wrote: > > On Fri, 13 Nov 2020 17:57:02 -0800 Suren Baghdasaryan > wrote: > > > On Fri, Nov 13, 2020 at 5:18 PM Andrew Morton > > wrote: > > > > > > On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan > > > wrote: > > > > > > > > > > Seems to

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 17:57:02 -0800 Suren Baghdasaryan wrote: > On Fri, Nov 13, 2020 at 5:18 PM Andrew Morton > wrote: > > > > On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan > > wrote: > > > > > > > > Seems to me that the ability to reap another process's memory is a > > > > > >

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
On Fri, Nov 13, 2020 at 5:18 PM Andrew Morton wrote: > > On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan > wrote: > > > > > > Seems to me that the ability to reap another process's memory is a > > > > > generally useful one, and that it should not be tied to delivering a > > > > > signal

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan wrote: > > > > Seems to me that the ability to reap another process's memory is a > > > > generally useful one, and that it should not be tied to delivering a > > > > signal in this fashion. > > > > > > > > And we do have the new

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
On Fri, Nov 13, 2020 at 5:00 PM Andrew Morton wrote: > > On Fri, 13 Nov 2020 16:06:25 -0800 Suren Baghdasaryan > wrote: > > > On Fri, Nov 13, 2020 at 3:55 PM Andrew Morton > > wrote: > > > > > > On Fri, 13 Nov 2020 09:34:48 -0800 Suren Baghdasaryan > > > wrote: > > > > > > > When a process

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 16:06:25 -0800 Suren Baghdasaryan wrote: > On Fri, Nov 13, 2020 at 3:55 PM Andrew Morton > wrote: > > > > On Fri, 13 Nov 2020 09:34:48 -0800 Suren Baghdasaryan > > wrote: > > > > > When a process is being killed it might be in an uninterruptible sleep > > > which leads to

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
On Fri, Nov 13, 2020 at 3:55 PM Andrew Morton wrote: > > On Fri, 13 Nov 2020 09:34:48 -0800 Suren Baghdasaryan > wrote: > > > When a process is being killed it might be in an uninterruptible sleep > > which leads to an unpredictable delay in its memory reclaim. In low memory > > situations,

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 09:34:48 -0800 Suren Baghdasaryan wrote: > When a process is being killed it might be in an uninterruptible sleep > which leads to an unpredictable delay in its memory reclaim. In low memory > situations, when it's important to free up memory quickly, such delay is >

[PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
When a process is being killed it might be in an uninterruptible sleep which leads to an unpredictable delay in its memory reclaim. In low memory situations, when it's important to free up memory quickly, such delay is problematic. Kernel solves this problem with oom-reaper thread which performs