Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp813763imu; Tue, 27 Nov 2018 06:41:38 -0800 (PST) X-Google-Smtp-Source: AJdET5c3RZNm16yvkLr+erKiaetXBuyfh6S6z+ZukYGDyRkV8QSRF6QsaRQyUCbJLSmuyuP8i9y8 X-Received: by 2002:a62:7687:: with SMTP id r129mr32796171pfc.17.1543329698060; Tue, 27 Nov 2018 06:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543329698; cv=none; d=google.com; s=arc-20160816; b=YQ7JC9umUH6f3s3SVjqfJ4aM600AsISdvBLl/k3UjJxgFcNOav1uFo/FgKS0p0GLlX 8fc56GxykyyhHNvZAnTfdeulGp+EHs10JFnQfD/B3MfnaPGreh6CzFYhZksnCVegCqm5 8IyK3mQ+ln24HE4Km+OsQCu+QykCnie3KePxnNdlJ90IvwgqN46zCRBSBjCNx0AZ1NB2 NAdzJjEW0YjwSOp2smEcW4Ih6sLWCQUPMyrJOobDpZmc32Gt5G9tZLYROLIO/Ngm6v9R k6bRhZzLKiEZZ53wl0dtsRf3nhTDSXGCEiJDDevQ/UjdDxoTnuy/SK4mgQpy0Bb/l3cl 7SFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:in-reply-to:mime-version :references:subject:cc:to:from:date; bh=/GBZAJ/g8vXe4mkdTo/YE1YA+ak2yHtKCZ5I4G27cQw=; b=06JNPt9kwHBnVmHLYbolQpxd7hn+l7Wp+NUvlyT751KYh0msnLfgOSmMv2Xin6bEHR VoH0FEIBfhgIDLXU0GwImp89bj0t58woosapPWsSRMrKYL+uEzyv68k8eLKLWYuoJ/Tl G7KI9g+RY41w9G5wE3pts6WzRCsfhHo88RSeUfIE3aU/R9v7i/H8N5Oj8hYXuoNmHmiJ eHhmQjj4euVAwNkwSygK0Q1OssWLbnxKbup4AlWP77cReOhx7VLOF++gyqxptsMmP6gX I9JybCb/47lvnEeRmajVG+cJ7fnbzCRH7wZFzOjNXPddofnScRV6CWj9bggNK58M/rZ3 gPMw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l33si4361547pld.142.2018.11.27.06.41.07; Tue, 27 Nov 2018 06:41:38 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728101AbeK1Bey (ORCPT + 99 others); Tue, 27 Nov 2018 20:34:54 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35694 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726872AbeK1Bey (ORCPT ); Tue, 27 Nov 2018 20:34:54 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAREY5lL103286 for ; Tue, 27 Nov 2018 09:36:47 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2p16r9ka37-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Nov 2018 09:36:46 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Nov 2018 14:36:44 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 27 Nov 2018 14:36:41 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wAREae2C5636430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Nov 2018 14:36:40 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7565811C04A; Tue, 27 Nov 2018 14:36:40 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2DF4211C04C; Tue, 27 Nov 2018 14:36:40 +0000 (GMT) Received: from osiris (unknown [9.152.212.95]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 27 Nov 2018 14:36:40 +0000 (GMT) Date: Tue, 27 Nov 2018 15:36:38 +0100 From: Heiko Carstens To: Michal Hocko Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-mm@kvack.org, "Kirill A . Shutemov" , Martin Schwidefsky Subject: Re: [PATCH] mm: warn only once if page table misaccounting is detected References: <20181127083603.39041-1-heiko.carstens@de.ibm.com> <20181127131916.GX12455@dhcp22.suse.cz> MIME-Version: 1.0 In-Reply-To: <20181127131916.GX12455@dhcp22.suse.cz> X-TM-AS-GCONF: 00 x-cbid: 18112714-4275-0000-0000-000002E77989 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18112714-4276-0000-0000-000037F4B6CC Message-Id: <20181127143638.GE3625@osiris> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-27_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811270126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 02:19:16PM +0100, Michal Hocko wrote: > On Tue 27-11-18 09:36:03, Heiko Carstens wrote: > > Use pr_alert_once() instead of pr_alert() if page table misaccounting > > has been detected. > > > > If this happens once it is very likely that there will be numerous > > other occurrence as well, which would flood dmesg and the console with > > hardly any added information. Therefore print the warning only once. > > Have you actually experience a flood of these messages? Is one per mm > message really that much? Yes, I did. Since in this case all compat processes caused the message to appear, I saw thousands of these messages. > If yes why rss counters do not exhibit the same problem? No rss counter messages appeared. Or do you suggest that the other pr_alert() within check_mm() should also be changed?