Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5998963yba; Thu, 11 Apr 2019 09:55:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDRwBUjLry8C7ZljgeYW/DhpNvKQiA3QPQvdi9AMhSnq0LKYnpNyuZeGHyv5ttQszoXpbR X-Received: by 2002:a17:902:ec0b:: with SMTP id cy11mr51633286plb.21.1555001716200; Thu, 11 Apr 2019 09:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555001716; cv=none; d=google.com; s=arc-20160816; b=XCuLACd0ARv82LDI/Jlcc45wvfBV+s7tzE20IAMMCUgFn/MWxurBBnxjoZVPNf6Pel 74vWqsdV500KJOt9hwAawAsOrKGY4u8mCr/sjCkYeI9V3mYtN5O+vw0G0nnrzCSFjnv9 cCly2ZIDkdghQo8zGawPwXraAf9uGV8vtUo+zmHL7e06fltrNv805+5D1ViMi4+jBEiW nSKtARRolm0k36wGy+YJx+utC7U0m/E3WTIWWJkPiHJ5Sr4vLz1eVLoGe68Gf6GsxMPC /CcoV1D1cOBzVLeAUtdTz/+dJ6HdABjQfsLut2ghCX4kLQOP0tAP0CsBhJhJdN2Ed7rF Leug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Otu8oQ57F7UNmqh12Qrt5qvVebAwqh7zepUUOR2psCw=; b=nusmcNW7jGM3sdz00Xu9vdR0rp78ATLoZo28itBBFCMxzoNAwqS6Us+IyA4Siyb2Yy M1aHsFm4EdUzzKf5NIl5xujjLR4lKOEmsnsOfHRP39mWbXymJSfWG5TD78rCKcdY+Fpp V3owSZGj5VEUlLJ2LcAoshhG4h30YEcQ65F+B4ShNAQdIgNPR7ghL1onEs33AQVOlV8h ZC/jAkHA3l6AYcrawavj0ntJ9HXFWF+QDWpTCwZ9zE9Kc7b/yoa6utMI7qFyEHYYqqDy Wism9SkoDgfHVrLSe9MLFfi9R3xu2oAQI315WKwGFuIoapTgFpw5OpoakBV/FWfi+HDS jnNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fNWDni2W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q82si17497090pfc.104.2019.04.11.09.55.00; Thu, 11 Apr 2019 09:55:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fNWDni2W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbfDKQyX (ORCPT + 99 others); Thu, 11 Apr 2019 12:54:23 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:47074 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfDKQyW (ORCPT ); Thu, 11 Apr 2019 12:54:22 -0400 Received: by mail-wr1-f68.google.com with SMTP id t17so8243982wrw.13 for ; Thu, 11 Apr 2019 09:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Otu8oQ57F7UNmqh12Qrt5qvVebAwqh7zepUUOR2psCw=; b=fNWDni2WBHljHOFUUJspzmpa63RWuYdVIS0I3zOyBS2lLLO6KySQ51cmWNiO7hc2Zl ECt/C5Ky670bJQ5Y/0J0LhOCfc0Lt2Iwpob0TZ7SIP5kv9C9NNRB1wStqN/N2tYLuIKw wZg0KFFK27GJ1pbKVFkdVwDqOyreBFZk/jafrt6UExSb4bI4BAkAjcPUss8hpIGyWHct 5ikRIfAdd9LNMlN4QIMJoanmN2oiEoSZWVAINnP8ESOpbf1mzxDB7iVXd9gmjJZUG9zF Ju866VB9mBqZkVotHQnuvZKKWpWRfOzBfvhObdATWC3h+6KUBTdrH/MXs5IMpClUYU84 G7mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Otu8oQ57F7UNmqh12Qrt5qvVebAwqh7zepUUOR2psCw=; b=AEbj1dCNevHD2UJXrSswP26aZ7yRUITBKouFoPi8mxN0QNQcgQX7bK7KbQ2NvZNxKn OwE8458X46id+2kO2GDtVFXXzkyT4Wzxp20mkecAqU3OPaSBP9XjjPq4tNEUX7ld3hiO ii8trMPTQFEJVJ98Ayq9eI3Ubk4KSpJsUp1Uwc+ftBoh6VPdDa304VyywCXuKigvVLV1 vGI/Hj6vw800Wvjx3NC05yMFsynKdvpLCrX7pOX1yGYmYfO8WgirVqd3BJne9oNFn8UI HKCmYN6SnsukiRI3OXp9bEP/2fFgm4xLKCTiHSj84w1nylhjk0VsWmi1Q/Jeyghx4PK6 gTow== X-Gm-Message-State: APjAAAVDnZs5QScQQ7As4uU1FK4lKPuU6cdneyWHq4SMQ2kRwHG2tOlu iA11Hhx5p9ux0Hvgk65n9JgPWE0LHK3OzU7GZljgjQ== X-Received: by 2002:adf:cf0c:: with SMTP id o12mr12832082wrj.16.1555001660732; Thu, 11 Apr 2019 09:54:20 -0700 (PDT) MIME-Version: 1.0 References: <20190411014353.113252-1-surenb@google.com> <20190411121633.GV10383@dhcp22.suse.cz> In-Reply-To: <20190411121633.GV10383@dhcp22.suse.cz> From: Suren Baghdasaryan Date: Thu, 11 Apr 2019 09:54:09 -0700 Message-ID: Subject: Re: [Lsf-pc] [RFC 0/2] opportunistic memory reclaim of a killed process To: Michal Hocko Cc: Rik van Riel , Suren Baghdasaryan , Andrew Morton , Daniel Colascione , Jann Horn , Minchan Kim , Tetsuo Handa , kernel-team , David Rientjes , LKML , Matthew Wilcox , linux-mm , Johannes Weiner , Shakeel Butt , Souptick Joarder , yuzhoujian@didichuxing.com, Joel Fernandes , Tim Murray , lsf-pc@lists.linux-foundation.org, Roman Gushchin , Christian Brauner , ebiederm@xmission.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 11, 2019 at 5:16 AM Michal Hocko wrote: > > On Thu 11-04-19 07:51:21, Rik van Riel wrote: > > On Wed, 2019-04-10 at 18:43 -0700, Suren Baghdasaryan via Lsf-pc wrote: > > > The time to kill a process and free its memory can be critical when > > > the > > > killing was done to prevent memory shortages affecting system > > > responsiveness. > > > > The OOM killer is fickle, and often takes a fairly > > long time to trigger. Speeding up what happens after > > that seems like the wrong thing to optimize. > > > > Have you considered using something like oomd to > > proactively kill tasks when memory gets low, so > > you do not have to wait for an OOM kill? > > AFAIU, this is the point here. They probably have a user space OOM > killer implementation and want to achieve killing to be as swift as > possible. That is correct. Android has a userspace daemon called lmkd (low memory killer daemon) to respond to memory pressure before things get bad enough for kernel oom-killer to get involved. So this asynchronous reclaim optimization would allow lmkd do its job more efficiently. > -- > Michal Hocko > SUSE Labs > > -- > You received this message because you are subscribed to the Google Groups "kernel-team" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com. >