Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2091251ybl; Thu, 9 Jan 2020 06:47:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxoA3tl5ODy4teqPHPngxjFnLeLXCXDIeNmrHGGzcmZ19UKmX3sLY6j4z+CN157GAl/Ft3M X-Received: by 2002:aca:5e02:: with SMTP id s2mr3267767oib.80.1578581232479; Thu, 09 Jan 2020 06:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578581232; cv=none; d=google.com; s=arc-20160816; b=PALnJ4PN/A50Ghghfc6Ii21HD6qJqxqBoEUOYxxx41VotU8kaIcREo1qJEBID9zv/z JnuMKgg6hUOQpIwS4x2hQ/VjnG+8Z+6A6p/1fGSkF0Ux5tYZ15ZMJ2HEzJDdPN11zTPZ P85inEg/UgzUtCww47BnyOKrB2M/Grrh6szOZZUMijFp3X1dqg8xTytK3zcm/SeEkEc7 VEP19tShlQe6bWCo29GIRwFCoaNdWXdmnN3eL8VcvUowMvpP4K92AkB6Rq0MUtBC7mNm uqkKfOVABkGk6wBIFDVQH8gGB9LPqV5NNJRYTrRsttcFm4ZnruK6rhDMFdQKUQDWNVLi gWgg== 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=AVu7sF9AqXnzaqXtf2hGbb5ay0l2XqpGGLIFiXxAyIY=; b=u0bQ21ayvqVcOapWxIt5ZFcDK2GeKqJxEXTJdAQmveB4TF2yLIdYMvYmbC44NW0Ubx Lhe0pMzvQa1Vy2WE+V7/tNmGBvAmPTUCxNvlvBUFkaXcAks2prPwR/JvlS3YGFRUq8Kv t4JUmtmvUrBIjVpbNhjanQDx/q6q+qLG/jyNFuFF2nKsukOib2HTeApRAuhKuQnoGl76 txc1DO7LIlqKKEQnDBu6E8aUp3V6I7VSyL5RyeH9BwZ0/wNX18KXMT5lvJ5ue9q/Dcje Ah16X+YA4cURk+qsObxFi2vrIJr8eA6Y30858mRNDQWd/STAT2X+YMPOGmhAH3tgMWRX dySw== 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 m67si3535908oib.117.2020.01.09.06.46.59; Thu, 09 Jan 2020 06:47:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730171AbgAIL4g (ORCPT + 99 others); Thu, 9 Jan 2020 06:56:36 -0500 Received: from mail-wm1-f48.google.com ([209.85.128.48]:37136 "EHLO mail-wm1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729173AbgAIL4g (ORCPT ); Thu, 9 Jan 2020 06:56:36 -0500 Received: by mail-wm1-f48.google.com with SMTP id f129so2533181wmf.2 for ; Thu, 09 Jan 2020 03:56:35 -0800 (PST) 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=AVu7sF9AqXnzaqXtf2hGbb5ay0l2XqpGGLIFiXxAyIY=; b=fGZJxz5ZZdsDuPnNzI72vKCQwSJQbH6gxtSVEEfzzIR/S/nfAsKEJY6r331Kz3IrYb J0qV8WqnTX7spe5sbsuLyFtR133sbhE71IPcWfOM2md1jbvB1EsSmoUYk6dC/Kk9BOU3 UQ6FjEkF0HIigGqTTeiq+jaqAhlik9r47SXQTSwidB7TktS0N16xWORqYHCEZjdIRk6w QZhpv5nfDeuAFKfebpzwaI0pG4f5sQQVuDAK+sB7F2EFUrLJc4jDYR3b/gXPF7e97pjg mw+sS14vpzGOuCrVK/MrJu/wxsM6Kf2DIiAo58B/O5EHlmd/aZauDcK2QfoBChFNDVwR 0tRQ== X-Gm-Message-State: APjAAAVHGbHfHgT5aX9H+zgmHI5o/wipK4XHVqthZilSSa5IjVJ6lR+0 bMpfoiDxjicTA5/HeluwoRvIJw8P X-Received: by 2002:a1c:1dd7:: with SMTP id d206mr4326511wmd.5.1578570994379; Thu, 09 Jan 2020 03:56:34 -0800 (PST) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id g21sm2573710wmh.17.2020.01.09.03.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 03:56:33 -0800 (PST) Date: Thu, 9 Jan 2020 12:56:33 +0100 From: Michal Hocko To: Pavel Machek Cc: kernel list , Andrew Morton , linux-mm@kvack.org, akpm@linux-foundation.org Subject: Re: OOM killer not nearly agressive enough? Message-ID: <20200109115633.GR4951@dhcp22.suse.cz> References: <20200107204412.GA29562@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200107204412.GA29562@amd> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 07-01-20 21:44:12, Pavel Machek wrote: > Hi! > > I updated my userspace to x86-64, and now chromium likes to eat all > the memory and bring the system to standstill. > > Unfortunately, OOM killer does not react: > > 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. Does sysrq+f help? > Do we agree that OOM killer should have reacted way sooner? 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? > Is there something I can tweak to make it behave more reasonably? PSI based early OOM killing might help. See https://github.com/facebookincubator/oomd -- Michal Hocko SUSE Labs