Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2455399ybl; Thu, 9 Jan 2020 13:05:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyxuEfOSkazqhbaDNw/mNEB8DF68XYDM6jo071znPhEiYbTlgJm2ytrZ7CV0u7cRQvsX2kx X-Received: by 2002:aca:b60a:: with SMTP id g10mr4572667oif.102.1578603944177; Thu, 09 Jan 2020 13:05:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578603944; cv=none; d=google.com; s=arc-20160816; b=SyGQndTbXDQ7kmPfQQooMtISKtANsJ6oc4Lp5I8e3ZgC5ENAuHawq2x5ht+wIH3Qse EmW1hwMwWuvCfKF/n0bFKMG6ZaZS2sO3Bk4dD1afStfafAEdtiQLJjOxR1D3zlHUY/r6 Y3LXOYwoGFwMFh0MFWarZLg7Q95xGq/aZ+EdJ7zw+MsfLg/vpt2SjVrrsC6VeAIScxIn bDlrjWt8nHGIaTcwLYmRvTwi+uFpSkYmIyh2EqwswLZo8f8YrOZiALnsImWruh3FQ2VU 2QtKpqKfqlylivNI/f0hfuXkPPC46rnGVoP7fjAoZeFfh5ESeBgQ4keJNpp5S/Goev/z 1hPQ== 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=OaCk7DpjhUp8BeYcwkLxbCgLJQnmVHvgOzbX95USoGI=; b=qUDD5rdkhWccPn5UUkEE67JmpnRQ5fZ1KwYHTz//lVDe/Vdkh2IJysxbO6L8i5var4 aHgdDJERohGA7O3sYJslrIurDSk77yz/C6bHIYkGKAezF6T3q0bHyv20EBfbkReUQCKd +GvKQ9cbRQlTOXLgt7gO0X5vgWBowuKvZ+TDu83scCoHMCsKkSIqqU0+PvAAHNFUe6pq cg/giLrWOpTuWYC8SCmR1ICZdYe9BSOplRMYwBCZ02YOxJS7t3C13JBNmVSeB9tljzfH 7oiVJLnsvWGMRyG3j1cUBXW04cumNDrBHHyrhncLePIQw58dNOPNXj44IObj6klimccW khUg== 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 v1si5176403otf.161.2020.01.09.13.05.28; Thu, 09 Jan 2020 13:05:44 -0800 (PST) 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 S1728629AbgAIVDL (ORCPT + 99 others); Thu, 9 Jan 2020 16:03:11 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:33572 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgAIVDL (ORCPT ); Thu, 9 Jan 2020 16:03:11 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E97671C25CE; Thu, 9 Jan 2020 22:03:07 +0100 (CET) Date: Thu, 9 Jan 2020 22:03:07 +0100 From: Pavel Machek To: Michal Hocko Cc: kernel list , Andrew Morton , linux-mm@kvack.org, akpm@linux-foundation.org Subject: Re: OOM killer not nearly agressive enough? Message-ID: <20200109210307.GA1553@duo.ucw.cz> References: <20200107204412.GA29562@amd> <20200109115633.GR4951@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <20200109115633.GR4951@dhcp22.suse.cz> 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 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2020-01-09 12:56:33, Michal Hocko wrote: > On Tue 07-01-20 21:44:12, Pavel Machek wrote: > > Hi! > >=20 > > I updated my userspace to x86-64, and now chromium likes to eat all > > the memory and bring the system to standstill. > >=20 > > Unfortunately, OOM killer does not react: > >=20 > > I'm now running "ps aux", and it prints one line every 20 seconds or > > more. Do we agree that is "unusable" system? I attempted to do kill > > from other session. >=20 > Does sysrq+f help? May try that next time. > > Do we agree that OOM killer should have reacted way sooner? >=20 > This is impossible to answer without knowing what was going on at the > time. Was the system threshing over page cache/swap? In other words, is > the system completely out of memory or refaulting the working set all > the time because it doesn't fit into memory? Swap was full, so "completely out of memory", I guess. Chromium does that fairly often :-(. > > Is there something I can tweak to make it behave more reasonably? >=20 > PSI based early OOM killing might help. See https://github.com/facebookin= cubator/oomd Um. Before doing that... is there some knob somewhere saying "hey oomkiller, one hour to recover machine is a bit too much, can you please react sooner"? PSI is completely different system, but I guess I should attempt to tweak the existing one first... Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXheVCwAKCRAw5/Bqldv6 8jrTAJ9SOcPY4NOLGrJdYUYmDZU8C4lEWgCdGX9JQcRf8oSwH2dqDYw5xIx8L+o= =ZCiY -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--