Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp48600ybl; Wed, 11 Dec 2019 13:46:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyfLipLB4QyMWDfnGnthujhO+yZyDwqowpTJrgL34mM9ngHn1g8M65z+3JgGQ97q+6wU96m X-Received: by 2002:a05:6830:1e30:: with SMTP id t16mr4270311otr.220.1576100803749; Wed, 11 Dec 2019 13:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576100803; cv=none; d=google.com; s=arc-20160816; b=HegRgn3nhnBauqabuhIjvpHGRDXof3Kmifkh3DAX86W0ozWRme8FXSm2Vf10q7HBy4 e0ClvyvAp4X/Uw58PjoXbf1uBH6l5kuewmzibaWeOwytN45l3c2gSFFcjq8BnnMQ1oLo jZDQFnV1jKWtB9bkX7rrVbcMnNRrCpsa8QN6XC1S9T4VwpHpx4dlitnkEhDVRgKycUhj fu57Ja8tMFL3+zYcr13Vu3bP+F9UD83ine2Ddb0PPSFZ82tSFoDVrN2Q4FoKwxJtZtw8 PgGXvqlrhPmb9G+Q1aCi/zT1bjDJRzIQF1v/WXBbxgtkY5oYMZmHxQoz6lx1A7j9atad tX1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=wkoNjmei5sIfxNKYIytd7zHyeLv+b+a83ECcT+r0WWE=; b=nFAq9MJUtefsN58wfKbPHBaYx34qSevN45xNn7a7P3Xs9tWgbb1djaw4H6rBejGdPW Y8iBSPyzfh/xZBECvJDmwOO7HKXckvHGcE67a+PPCgiFEAe3G2Jo+FpBsJpbBVeQ2yje +rTu/NwWoaBgkzzT3llqh0yXfU7KDKKWW88mpkY8wU4Mt+GHnl8ksoL8K19HCwMk7hjf jAJLhc6NT5j6iqg5ajL0r0k12zNx75vt+rCaM2NTUn97+w67YNJkubI0IwL5zMg7GtAX RUfzJyDqyFQ/3Vjy+lhmI+bz3sMGch730Dmli7v3419UgTY1MfvUJU2fglnqHMIWVwv0 Eszg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eQhg4POU; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x68si2004539oia.227.2019.12.11.13.46.30; Wed, 11 Dec 2019 13:46:43 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=eQhg4POU; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726646AbfLKVop (ORCPT + 99 others); Wed, 11 Dec 2019 16:44:45 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33248 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbfLKVop (ORCPT ); Wed, 11 Dec 2019 16:44:45 -0500 Received: by mail-pg1-f194.google.com with SMTP id 6so21369pgk.0 for ; Wed, 11 Dec 2019 13:44:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=wkoNjmei5sIfxNKYIytd7zHyeLv+b+a83ECcT+r0WWE=; b=eQhg4POUvSGfKDGmAfB3LhOnH9J0IJrxgIKZW7BGANMGUuByHKI+JnZLshJIG0WwcC V5XHdW9lyQ0MxV4oCh5vmk6QOnMheyWSd7MtrBaQHzvG2phA2M+va7PryK+uMB/BaSC1 JVWjqwGDON2r046aP2D7HY9T/KlpEDvS7obk3LFAZSBSudOxMJvscBD73p+L02Li55xF dmlNUnmolqzRBTmLtafIo/dt1oBuYT5nyE2kXVQNrbWoaowAaA5J+QAgxVr49uGPT8sR AaOoPPhahDkiwf2miU8uH2JKMezkJfZyWM0/ojhYFkbC62EPJia6RoaCK0Oy74n9WXMU zJLw== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=wkoNjmei5sIfxNKYIytd7zHyeLv+b+a83ECcT+r0WWE=; b=RaoymNurZzyhC2KYsrjRR7xg7mOA0TT5nDX+AlNfHXzglU7D9y+4mSkqX30XjEiUOL Q5MxR0jJl5UVcCwWDHLeU/1ufQKY19waRfpyt0VGjEcX8k/6sEuZSijgxgV7pasHf7VD 5vGZ8UWPATTmHphhLh1eduwP/jZE1GZ2faURLXFLQvDv8Z9JjD7Wimh3gnle3BbrkvOD axBd5dYaMoX9NduNTMsRhWGiL1x3xeVBeIzcJnQb1qJz+wcMXj6Z96NAVY/Zm7g6vgUU 6HN/u/il+L7ba6tvfNNFJ4zeHzlLZUNdbNfLUspIVgamMo9iLRPnM9zEgpQlQwpCWitK MK8Q== X-Gm-Message-State: APjAAAWa3YbIRI1/IaHHJU1a5trwnKGGNucSpPAWhG7/hdUGCy+PrXIH nyJmzAiQDgIeDgVl1Z8XOTI8og== X-Received: by 2002:a62:7541:: with SMTP id q62mr6091794pfc.256.1576100684673; Wed, 11 Dec 2019 13:44:44 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id y38sm3951314pgk.33.2019.12.11.13.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 13:44:43 -0800 (PST) Date: Wed, 11 Dec 2019 13:44:43 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Ilya Dryomov cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Edward Chron , Michal Hocko , Andrew Morton , Linus Torvalds Subject: Re: [PATCH] mm/oom: fix pgtables units mismatch in Killed process message In-Reply-To: <20191211202830.1600-1-idryomov@gmail.com> Message-ID: References: <20191211202830.1600-1-idryomov@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Dec 2019, Ilya Dryomov wrote: > pr_err() expects kB, but mm_pgtables_bytes() returns the number of > bytes. As everything else is printed in kB, I chose to fix the value > rather than the string. > > Before: > > [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name > ... > [ 1878] 1000 1878 217253 151144 1269760 0 0 python > ... > Out of memory: Killed process 1878 (python) total-vm:869012kB, anon-rss:604572kB, file-rss:4kB, shmem-rss:0kB, UID:1000 pgtables:1269760kB oom_score_adj:0 > > After: > > [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name > ... > [ 1436] 1000 1436 217253 151890 1294336 0 0 python > ... > Out of memory: Killed process 1436 (python) total-vm:869012kB, anon-rss:607516kB, file-rss:44kB, shmem-rss:0kB, UID:1000 pgtables:1264kB oom_score_adj:0 > > Fixes: 70cb6d267790 ("mm/oom: add oom_score_adj and pgtables to Killed process message") > Signed-off-by: Ilya Dryomov Acked-by: David Rientjes I'd also suggest a Cc: stable@vger.kernel.org # 5.4