Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2181519imc; Tue, 12 Mar 2019 08:34:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh3ZwVrIJlyz60tr+0rPIU+btPQ8SN3/Ddr446ZmNbqTJvQclCkpeiT43DTZSmmT1b5ep3 X-Received: by 2002:a62:48c1:: with SMTP id q62mr39294382pfi.113.1552404851651; Tue, 12 Mar 2019 08:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552404851; cv=none; d=google.com; s=arc-20160816; b=JgQChhs/9LcyBHwVbJUMg+aKOXSkOCdPfmB2kdWah0HWsBr3WyG8TC+MCgRy9c/hwo m/dlM6KbNxibPMOJy74FT6piCsyEerclXGCisbwyWYei0yqvp/2V8Vt2zBvBLmOgubRA oTB99hMrLhB4+Mzt3a1OTeYucsan/5nt1K0Tv4enj/5a/kIChTCr4JFGIIetDMyMwasz qTq3+TXwMUyDkm4XY9y3iow6lPg20VtZmKSRsPpW7hEmN0SP8vXwvmwmd7rW9KGWsXLB JsYSGTssBEZNUxMQjDByiEnOSXTQuHAL4FriqDucyj87GZ9GfO7xcoiekiEVtRXQ0t9u 8NAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LqRevOFTAX2Ac38MoABsbl45hzYgq9ABXoU3ZKWkRko=; b=gWL08a1kKwECsasoDryv8JUPQ1i3iF+iQAgUW0YS4ELbL2TAT6ySH8TSEVeOxlP8BD 6o4ShAeEizA0HwEwXyDzlrUZ+rhukB5RxktfCt+lvfsmgl4Ca401qhTIW1p3zMMbTduE RES4x1od1e/QqQlBzFdnpd/erT3nm4+fIwdiHlsKLcE2IuQfetxcoVm6zfvwV0+jHBZF 9vHNocr2L99Do2SQYtPh90FqJV9CQzdBYI8l2Geiy3kWc1hd9GYILmoMFgbXKInmfzc5 KZ2aC6oRok80V4lPP1Ulii9TI69mnqumCAev8A3Q8Oj7wodjVj7EX5AC436kzSQgOTIa 9I+A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si7832512pgl.153.2019.03.12.08.33.55; Tue, 12 Mar 2019 08:34:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbfCLPdT (ORCPT + 99 others); Tue, 12 Mar 2019 11:33:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:44094 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726422AbfCLPdT (ORCPT ); Tue, 12 Mar 2019 11:33:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 35CC6B69E; Tue, 12 Mar 2019 15:33:17 +0000 (UTC) Date: Tue, 12 Mar 2019 16:33:15 +0100 From: Michal Hocko To: Matthew Wilcox Cc: Suren Baghdasaryan , Sultan Alsawaf , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Ingo Molnar , Peter Zijlstra , LKML , devel@driverdev.osuosl.org, linux-mm , Tim Murray Subject: Re: [RFC] simple_lmk: Introduce Simple Low Memory Killer for Android Message-ID: <20190312153315.GV5721@dhcp22.suse.cz> References: <20190310203403.27915-1-sultan@kerneltoast.com> <20190311174320.GC5721@dhcp22.suse.cz> <20190311175800.GA5522@sultan-box.localdomain> <20190311204626.GA3119@sultan-box.localdomain> <20190312080532.GE5721@dhcp22.suse.cz> <20190312152541.GI19508@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190312152541.GI19508@bombadil.infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 12-03-19 08:25:41, Matthew Wilcox wrote: > On Tue, Mar 12, 2019 at 09:05:32AM +0100, Michal Hocko wrote: > > On Mon 11-03-19 15:15:35, Suren Baghdasaryan wrote: > > > Yeah, killing speed is a well-known problem which we are considering > > > in LMKD. For example the recent LMKD change to assign process being > > > killed to a cpuset cgroup containing big cores cuts the kill time > > > considerably. This is not ideal and we are thinking about better ways > > > to expedite the cleanup process. > > > > If you design is relies on the speed of killing then it is fundamentally > > flawed AFAICT. You cannot assume anything about how quickly a task dies. > > It might be blocked in an uninterruptible sleep or performin an > > operation which takes some time. Sure, oom_reaper might help here but > > still. > > Many UNINTERRUPTIBLE sleeps can be converted to KILLABLE sleeps. It just > needs someone to do the work. They can and should as much as possible. No question about that. But not all of them can and that is why nobody should be relying on that. That is the whole point of having the oom_reaper and async oom victim tear down. -- Michal Hocko SUSE Labs