Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4318681imj; Tue, 12 Feb 2019 13:45:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IbalJiygXHESQ54MZQv9MH6TmAMWlRsLYIskIycHXfn72bV4fwy20mlQS3uniyrXQfXWBQ8 X-Received: by 2002:a62:1484:: with SMTP id 126mr5978059pfu.257.1550007945774; Tue, 12 Feb 2019 13:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550007945; cv=none; d=google.com; s=arc-20160816; b=X6J+QCsDSSQ/aqVZLPja7P28oZRZmZMjYjCBejC4LTxWsnutbbSWRXfkaSn4bFj9Pa Y/76U/xNbRrI6uswDQAxYx1rel8fVMFpJS3zg1Mc0ZNP6S48UjaKHkiXPt1fsKPI4BUG 9vz5G61pkz6M75zJBKPGQnLt+delQaXlLq5Waa4w0L40Cj+Rn6jDRcfH03Z8Lzlb2mNP adidOsmyB74PW6cC1lSTJm8FGXjir7R8roa27TAoa9babbi39T6c8MdVHJxgay3G7SRK A/fmq/nZa1k8Rb4dh0FOP7tfOkigFJjc5rQE7bTGqSc/6+4opCYNGOGcgot+1ijyPS4M 8KyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ZjhHrABKWpvvXOXLhMDMvnjzdr6hAbzpIaoKD+qqA/I=; b=PuZVd5Witfx6FeUq85tnPcAThxxKCoIvxtKpBXUQvHATu+9Eokza+cGh2QjE5Zsqx2 N358M1AcWg/pBXvKIgdUAc3lFNBwGMgAf5yPWa5ChPWhANgOpN8He/6O/y7zeaNQyS6M M/KikCkyJNFdTTxVZR/0bfo8kVvucC2y9LoU4P0MYOTTWzgKMLrGloiJo9FucgzaDhmG zTZfWUbVZIJaxOLOLUHa2qHmIn9iznWF+dm9gg2jUahScJAqZHmVRqZk4fmLcsYMi+HQ H2R3cO9iFSsOnFsAl2yfjpxRTsgEvuhCNYf7WDoVlkS+aKthNobGsW1sMAnnRWei4z/X w+1Q== 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 b1si7019546plx.425.2019.02.12.13.45.29; Tue, 12 Feb 2019 13:45:45 -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 S1732214AbfBLU4h (ORCPT + 99 others); Tue, 12 Feb 2019 15:56:37 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51386 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727977AbfBLU4h (ORCPT ); Tue, 12 Feb 2019 15:56:37 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2EB90E5C0; Tue, 12 Feb 2019 20:56:36 +0000 (UTC) Date: Tue, 12 Feb 2019 12:56:35 -0800 From: Andrew Morton To: Michal Hocko Cc: Tetsuo Handa , David Rientjes , Johannes Weiner , Linus Torvalds , Yong-Taek Lee , , LKML , Michal Hocko , Tetsuo Handa Subject: Re: [PATCH] proc, oom: do not report alien mms when setting oom_score_adj Message-Id: <20190212125635.27742b5741e92a0d47690c53@linux-foundation.org> In-Reply-To: <20190212102129.26288-1-mhocko@kernel.org> References: <20190212102129.26288-1-mhocko@kernel.org> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Feb 2019 11:21:29 +0100 Michal Hocko wrote: > Tetsuo has reported that creating a thousands of processes sharing MM > without SIGHAND (aka alien threads) and setting > /proc//oom_score_adj will swamp the kernel log and takes ages [1] > to finish. This is especially worrisome that all that printing is done > under RCU lock and this can potentially trigger RCU stall or softlockup > detector. > > The primary reason for the printk was to catch potential users who might > depend on the behavior prior to 44a70adec910 ("mm, oom_adj: make sure > processes sharing mm have same view of oom_score_adj") but after more > than 2 years without a single report I guess it is safe to simply remove > the printk altogether. > > The next step should be moving oom_score_adj over to the mm struct and > remove all the tasks crawling as suggested by [2] > > [1] http://lkml.kernel.org/r/97fce864-6f75-bca5-14bc-12c9f890e740@i-love.sakura.ne.jp > [2] http://lkml.kernel.org/r/20190117155159.GA4087@dhcp22.suse.cz I think I'll put a cc:stable on this. Deleting a might-trigger debug printk is safe and welcome.