Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2174379imc; Tue, 12 Mar 2019 08:26:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlwn/fqjWc70p76s1sYbKYM+Nl5K7STbTo9hjmNxwa1SdrF2Eu6QsfRPqLt+VnOnVaI+iG X-Received: by 2002:a17:902:b708:: with SMTP id d8mr39416438pls.322.1552404401625; Tue, 12 Mar 2019 08:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552404401; cv=none; d=google.com; s=arc-20160816; b=xU2rVPieim+3F7aktHqrUU6XRByuwRa1SGn1e/fJQEDq3c7dFocwM6ISBumarw5Avp 1bdGttnGj7TMkNBcUDFQ7yudbV67u7jwGQ09TMGdVp5FpyKkAJpLTEZKnhXwmlpBf+6w 4KCV1A8G/7R41a+AbNInUxCIn+eFZFBOEer6R5aCOITa9T4XZZt7gSpAIpDoOy6wP6Nm maHNn75yYG82L+pxkZGUdyJjFMdUx3/T6O6spqx97Mnk7LfVDXf8Br+NKPpoz7MX5vdQ tedJBAKzLSAE+ASlTKqa30kZbu7srw/UdD385J1R41dhEnWD2GqecK8Ujvv0VzJwFlcy lr7Q== 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:dkim-signature; bh=OAThpFYHfFpJdEy8OwLPNDdww7fmMTYYWyenN4Id6uo=; b=Vb4eyHejrZTnwXeNU012a2bw0RymshNeg+WoPHRX1taKZeBNuaZYywFXZBGwHRh7Qj yDkD3zYCisc3184rg/u2poKpti6h4cVJTY1zXQhT2jnfvctmZDI4nNLBePX7GGtMED5F Gm0abxdj/bvOOtSvx2oRdoWHxek/OK3i3dpvD+ip74nf4EFbk+q3LwhTeguNGPv1E7hP VAbKWreMpH2+9U+v0J0UbE/20XuEnt6z/V0FnMRtMYOa9pGj6D1YLZTuqlEn/tzxP9YM 0MSRKvBTyxp7lT603ivXWbAjdDbn1YjcnKqBpM+8CiVwVpogeNmnH5drObbZhSwQbSUC cj2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AOvHnDX1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si7485586pgs.572.2019.03.12.08.26.25; Tue, 12 Mar 2019 08:26:41 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=AOvHnDX1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726556AbfCLPZq (ORCPT + 99 others); Tue, 12 Mar 2019 11:25:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58712 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbfCLPZq (ORCPT ); Tue, 12 Mar 2019 11:25:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OAThpFYHfFpJdEy8OwLPNDdww7fmMTYYWyenN4Id6uo=; b=AOvHnDX1lDeBOkejHAgtcES98 maDyEJIbh2t0zujM6b1FKExleWlsQr9ryaTezc2F7EGc7u5iLKFyUKAZt9V0EjkBysvW1PlEps+O0 qGt6i68gN15lovw3xoNxGU2FqsVKU0FpIcGbsogl0lu64m87a7E5ZMT1PIsXOOxBecMp8i5D4/kmB ZThuHfu/oIyz5uRfHh0N3RZRTcRwEjSPvrIEbfIbzRlDWkPmLveIeC9Z4QCSAi6IjN8kE+v9iOU52 x7cXj+QX1JvdxblwYJwnWvHlo6Cdyr6VVLyBsXNYJaFL/+CWtkiBDA/ZyiaVMBOc+JwkWseRE7qzF LVUBGt8hA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3jHh-0004rb-E5; Tue, 12 Mar 2019 15:25:41 +0000 Date: Tue, 12 Mar 2019 08:25:41 -0700 From: Matthew Wilcox To: Michal Hocko 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: <20190312152541.GI19508@bombadil.infradead.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190312080532.GE5721@dhcp22.suse.cz> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.