From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 394F0C282DD for ; Thu, 9 Jan 2020 21:28:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 017442077C for ; Thu, 9 Jan 2020 21:28:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 017442077C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 75DDB8E0005; Thu, 9 Jan 2020 16:28:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 70E8A8E0001; Thu, 9 Jan 2020 16:28:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 624DC8E0005; Thu, 9 Jan 2020 16:28:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0023.hostedemail.com [216.40.44.23]) by kanga.kvack.org (Postfix) with ESMTP id 490A68E0001 for ; Thu, 9 Jan 2020 16:28:14 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with SMTP id 0627C5827 for ; Thu, 9 Jan 2020 21:28:14 +0000 (UTC) X-FDA: 76359384108.11.sort58_2ab609dd8c430 X-HE-Tag: sort58_2ab609dd8c430 X-Filterd-Recvd-Size: 3715 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Thu, 9 Jan 2020 21:28:13 +0000 (UTC) Received: by mail-wr1-f54.google.com with SMTP id b6so9061311wrq.0 for ; Thu, 09 Jan 2020 13:28:13 -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=gB1RyhHtTQ+0s49bn15C7GeS8pX+9LNGVaVb1fuNcDI=; b=N9zQJHRazQv2fQMpJfhuc2OzQOZoU58JQGDw71HrfbTmXJ5504BfOUgbkrlFckXtcS 3CcCxzWSD6Q188/kJcBxuAgdvgaIltiM3GrF7egUqVw0ccr0ho1c1wGltqsmeJiTJH/B feZbX8cwroffXWGE838diMdF4CkmzF5SXdIRpQXlI7tiuEYblfOoYspPBaYPV/7m4WsY ZZcilWR25bRKPuBq+7Frnzw3ziP0TOT48VE0AGN6CRtm6eaLBBVAhcemrrtRGXef+HN7 4oJ8vnGMV1SXXEPpiHEx2kq0ZhoAIXRU8G0EPCaLBcQenRcAGGWXgz/MwBx/GzjOVLih qJdA== X-Gm-Message-State: APjAAAVx7RUQ9ysDei7dSQQmWR22IoSDDxphmnYPTPapiTrOf/hXLj/E qQ0MpJ0WTfyp905aGSnc74U= X-Google-Smtp-Source: APXvYqwO+ulr8Tt8Z+t+GNTy8Emz4YPzNlUPFTfJHu6q5twl2eR5obmCRkLLYDpKcEuNLan/EZNlwA== X-Received: by 2002:a5d:4392:: with SMTP id i18mr13654938wrq.199.1578605292416; Thu, 09 Jan 2020 13:28:12 -0800 (PST) Received: from localhost (ip-37-188-146-105.eurotel.cz. [37.188.146.105]) by smtp.gmail.com with ESMTPSA id z4sm4225820wma.2.2020.01.09.13.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 13:28:11 -0800 (PST) Date: Thu, 9 Jan 2020 22:28:10 +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: <20200109212810.GB23620@dhcp22.suse.cz> References: <20200107204412.GA29562@amd> <20200109115633.GR4951@dhcp22.suse.cz> <20200109210535.GB1553@duo.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109210535.GB1553@duo.ucw.cz> User-Agent: Mutt/1.12.2 (2019-09-21) X-Bogosity: Ham, tests=bogofilter, spamicity=0.001843, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu 09-01-20 22:05:36, Pavel Machek wrote: > On Thu 2020-01-09 12:56:33, Michal Hocko wrote: > > 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? > > What statistics are best to collect? Would the memory lines from top > do the trick? I normally have gkrellm running, but I found its results > hard to interpret. /proc/vmstat (and collecting it periodically) gives the most comprehensive picture about the state of MM. Interpreting numbers is far from trivial though. It requires to analyze multiple snapshots usually to see how the situation evolves. -- Michal Hocko SUSE Labs