Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1452578imc; Mon, 11 Mar 2019 14:12:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjIAYj6YSO9c2zOoVEPulMhJnnB6lBM//Y1R5J4Lll15qQrLBf4sNiTpeMmKdZ+vM054ix X-Received: by 2002:a65:6642:: with SMTP id z2mr32065211pgv.196.1552338735263; Mon, 11 Mar 2019 14:12:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552338735; cv=none; d=google.com; s=arc-20160816; b=zTXiDkLddsmFMuqajARBRp7zhjuZ4FDGMAS9KCvROxtyDTVCXMuZwY+wjvRM2Alr1W jsCr4+te2bSGvOb6fbJ0XLswVNu7bSx9ZbXAFOpJUrG24oeXjI1CrtiSDsG+Ap4rLkal gaw6WpSbZRBUzS1pNo73t8pEjqHX0ZBmKotOr4fUc4mTyhS+ttnWdGmJONHbEGBzC4X/ MlFUoYaQSLyKbIM151fh90yU26Rw8bTFDmMn+qQ3qnH+0p80FVw0ZAROOz3ckmGh1Bev Wau10AftvakYMI/C8c2EH+2dsc+3r9zxnKdookM2P2B/jQ7WqLsuTM5xVJrE1nIbMeDl BNWg== 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=smMkHZ9JhQfb6/mQRtbcBe+zcweWT3OeKffPkYTaNks=; b=DYM7UKfUW9Yep++QDZwo41QcjvCzdTsaOuMixYjnyKB/6XeUzDSbHkPGdWVyqDFKoG Gtg2U9eZWoU58nk7skqvXdsGUUbDK3y/5Su2F2ULY2TkB6e82TJ6qYZrqMmW6kqBNVgq B63tXdaYZQT3XdhDprkeGbWVPi6Nu9ETB7GO3PuItSMAjODYnarFRU51L8VchzBGCBj1 cruQqvgOPTjt8+UM+OygVLaia3PU8odfIBxIBaFjis0uwl5icC7pA7o9SfQl0VNRh1S8 Lq4nUFgIDif0ADflIyHAey+CcZNIgUt4EQHHuNGMiwrpzpAV7Y4+Cp7nOw+aQibNbRIN UIDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=dcva41yz; 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 j19si754339pgg.276.2019.03.11.14.11.58; Mon, 11 Mar 2019 14:12:15 -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=@joelfernandes.org header.s=google header.b=dcva41yz; 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 S1728173AbfCKVL2 (ORCPT + 99 others); Mon, 11 Mar 2019 17:11:28 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35309 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfCKVL2 (ORCPT ); Mon, 11 Mar 2019 17:11:28 -0400 Received: by mail-qk1-f195.google.com with SMTP id z13so200486qki.2 for ; Mon, 11 Mar 2019 14:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=smMkHZ9JhQfb6/mQRtbcBe+zcweWT3OeKffPkYTaNks=; b=dcva41yz79DBmbxdi62q2hDd5KunjFFVwMtEIXhRo0y2Ob9tWcI9vUYahMLSc2agDD 1hVJvgi6SbMGAEJn2gJnoB0nWZNwX2j2ZGvATle39540M+XyP4qwocsJZhcn6YUCTxsf xEis5Uz2pqJHVnokDUmexoOV/bVauBtGu8a30= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=smMkHZ9JhQfb6/mQRtbcBe+zcweWT3OeKffPkYTaNks=; b=fkCx/6JwktGZdlBJo6WhUlt9hStTGpYMYN/tV19kOPIuFkDwUtLgpQ8f1TJXU0lIZ8 S4PIrV8wWyZeKVZTsk8iuTqd64tFt9Ae5ffHRRufuq2XkBNcrZvvD36iljc7T1Z9ad/V 32xmZpuMBDJkJccgLE5peebNXngxA5egNJkhX0Ib6GS8m+KDCpifV6xmn+7uWT5sFs+5 xR95Gjpd7T6uf0qSscsn49KBmdrf10oMZcezAGPcsaJ9wcZJcMd3c1UPdFt9/+uUCqEh LetcCTEqx16A6DPDgJ1DI6he/4+K900IWjbSouEZC8FYq+UWphDf9EJllLUApfE0J4cr mwSg== X-Gm-Message-State: APjAAAVIBOq+xhqw1gellQWykwKD0OrlIgUP+tMr1JSlv7QsJsSio6Q3 LbMIZTZsjV/v6Im34CDh6leHQw== X-Received: by 2002:a37:378f:: with SMTP id e137mr26822049qka.137.1552338687026; Mon, 11 Mar 2019 14:11:27 -0700 (PDT) Received: from localhost ([2620:0:1004:1100:cca9:fccc:8667:9bdc]) by smtp.gmail.com with ESMTPSA id g82sm3841105qkb.34.2019.03.11.14.11.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Mar 2019 14:11:26 -0700 (PDT) Date: Mon, 11 Mar 2019 17:11:25 -0400 From: Joel Fernandes To: Sultan Alsawaf Cc: Suren Baghdasaryan , Michal Hocko , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , 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: <20190311211125.GA127617@google.com> References: <20190310203403.27915-1-sultan@kerneltoast.com> <20190311174320.GC5721@dhcp22.suse.cz> <20190311175800.GA5522@sultan-box.localdomain> <20190311204626.GA3119@sultan-box.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190311204626.GA3119@sultan-box.localdomain> 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 Mon, Mar 11, 2019 at 01:46:26PM -0700, Sultan Alsawaf wrote: > On Mon, Mar 11, 2019 at 01:10:36PM -0700, Suren Baghdasaryan wrote: > > The idea seems interesting although I need to think about this a bit > > more. Killing processes based on failed page allocation might backfire > > during transient spikes in memory usage. > > This issue could be alleviated if tasks could be killed and have their pages > reaped faster. But the point is that a transient temporary memory spike should not be a signal to kill _any_ process. The reaction to kill shouldn't be so spontaneous that unwanted tasks are killed because the system went into panic mode. It should be averaged out which I believe is what PSI does. thanks, - Joel