Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1983794ybl; Sat, 10 Aug 2019 14:08:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwoMnS/zQ1rzIFjIz9yTJIziyy0Wddjsfb7Kz17cwj6B2u3pgB4xTg9/nawBstn7OVV/5A X-Received: by 2002:a17:90a:ad93:: with SMTP id s19mr16110536pjq.36.1565471319344; Sat, 10 Aug 2019 14:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565471319; cv=none; d=google.com; s=arc-20160816; b=CAZ2V9a46IZkd4Q0GBjXeZjFtGUZrFn9WWq8TRGdHCxv58bD2Dgbp5eJ7nJvjn7Tlk b9lAexvWmptGNCtWFCCC6tuc+BN194eYZESsKMA4T9ypBQHCAym/FXgDDjQldSchYOzW xUoA3c0YqVf4XNEXlNpDN1Jx/gfccFm7D606VuBCpdGItxpMRYAL8S2G01LrM56dyNu7 +wgWKr2fRx4dMaifWw+2jhRMHQ8Qez7ff2sherlWyr5iwg2yojzXfsP6XPwczmyd3TEl IbdotjCJuqnQXVTkgOFNmnJcK7ioWZ6WBNV+1S8EUlTIsvB0/pnAM6p+iA9p2bpHNaf+ DXkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0F2uqHTrwVV0T1fS/2p0u20ixcdXgRaM2ovH7AfXBk4=; b=Wlqrow/D0t9LDsTDhZwnTFbvbhdxz+/tG1vIH8oBps6/MQeRvs2xWtPSnEIPRPIY/Y QFQBMFCYt3ASI3xMmYVseMNqJ7RE0xn49M1rU6UPPqsJ6R4k25f6pom8mxG1ljNLUP4x 2E3GciB1dU2hHjsJjd/LErOHQW+r8BJRWStQ0+OmzKDgv8rQgq/xq8LZIBpSyvYbhMM6 7IYrkTG/MGoEdsTYKVEv2NLkmJzrKK8BbvnrhlaqUb9UQepp5dS1BWK7s5Dz0FZWJ/qx QBBPa5zs6YN+dWKsbi2ffOx5OiZD3m3X6uvlsbofDocYKP+lmDopq56pMGlMOk7Zkh1o 0IIQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si24191665pgl.177.2019.08.10.14.08.23; Sat, 10 Aug 2019 14:08:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726457AbfHJVHw (ORCPT + 99 others); Sat, 10 Aug 2019 17:07:52 -0400 Received: from 68.66.241.172.static.a2webhosting.com ([68.66.241.172]:48738 "EHLO vps.redhazel.co.uk" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1725863AbfHJVHw (ORCPT ); Sat, 10 Aug 2019 17:07:52 -0400 Received: from [192.168.1.66] (unknown [212.159.68.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vps.redhazel.co.uk (Postfix) with ESMTPSA id 1E5011C02B32; Sat, 10 Aug 2019 22:07:50 +0100 (BST) Subject: Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure To: Michal Hocko Cc: Johannes Weiner , Suren Baghdasaryan , Vlastimil Babka , "Artem S. Tashkinov" , Andrew Morton , LKML , linux-mm References: <20190806220150.GA22516@cmpxchg.org> <20190807075927.GO11812@dhcp22.suse.cz> <20190807205138.GA24222@cmpxchg.org> <20190808114826.GC18351@dhcp22.suse.cz> <806F5696-A8D6-481D-A82F-49DEC1F2B035@redhazel.co.uk> <20190808163228.GE18351@dhcp22.suse.cz> <5FBB0A26-0CFE-4B88-A4F2-6A42E3377EDB@redhazel.co.uk> <20190808185925.GH18351@dhcp22.suse.cz> <08e5d007-a41a-e322-5631-b89978b9cc20@redhazel.co.uk> <20190809085748.GN18351@dhcp22.suse.cz> From: ndrw Message-ID: <5fcf237c-d270-26e5-e995-02755695b459@redhazel.co.uk> Date: Sat, 10 Aug 2019 22:07:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190809085748.GN18351@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/08/2019 09:57, Michal Hocko wrote: > This is a useful feedback! What was your workload? Which kernel version? With 16GB zram swap and swappiness=60 I get the avg10 memory PSI numbers of about 10 when swap is half filled and ~30 immediately before the freeze. Swapping with zram has less effect on system responsiveness comparing to swapping to an ssd, so, if combined with the proposed PSI triggered OOM killer, this could be a viable solution. Still, using swap only to make PSI sensing work when triggering OOM killer at non-zero available memory would do the job just as well is a bit of an overkill. I don't really need these extra few GB or memory, just want to get rid of system freezes. Perhaps we could have both heuristics. Best regards, ndrw