Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3954592pxb; Mon, 8 Feb 2021 04:33:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRTUc9jI0o2PQmdcWyYypMgUmiyX6yszarya1nJA3FTp8j9W3epEN3KmHs42A2DCuFh1ec X-Received: by 2002:a17:906:76c9:: with SMTP id q9mr17036912ejn.484.1612787604132; Mon, 08 Feb 2021 04:33:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612787604; cv=none; d=google.com; s=arc-20160816; b=NOYImYDvrQtY7ePwiUUNBRZO/ngCqThHoVAaZQYm6YQ7oBVIoPhXyLpeKDXnGaUZal 8p7HJrlVOoP4gPeULU9qguDcq6d0R1XaomOR20fnE0UbvwlEFjtnEdSlDsIBZ4dCVpKw UqH2/2L2XZz7ds3Pkqgoktpd+JbdtCh3z9v6VkgHzqKiQ3H5LeM35z7+9/I5fSTmqIcD YSUNpvsDVqi2bIaGmRTHUqnlqyMrO1VYoCUNwjr/vZcLMhelxJj2jIFvMaiLXRT0+c6A Rz667L0eUuvKBwD/UdyMWu6Yw0LmEfWqsWbMQdOXUVl7eVDVCA/693JFiau7pHx8NSof iv5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n+2LVFofWrDzo5XkXIbA8HqM46aC4ZldghhZ33psn6M=; b=loIgXPp9M8R9CyhMpmZ3gb+urlNU23CmsHauBH9J0gE186CN0yWFS0ri382cTSEhan s1q6sIoFiM/afyq/1zDHALCAlKWGUjorjgO5qhJdkDtVOvxIRQDiHeaD5FHjBBWzOMHB Mpu8IYKTNRd8mb3LVo9C4I1PcTyY890AJp1Z9Heg/MVjcuid1I6lK8nxcG4G3vHSIY7e 2B5NGAnLzHeBgEFop2g/vC16JROk3YLnFTaeBKmF2CEa5vk4o+6CAF7OFhX7lL3Fnr4m Atur005+W2fMsaQbul0dWZOnnsN1BEXE+YINGZg61aGgNPqE1FK/pjZOzdqxdLGG+PoK b0CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KSPyq7HV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si10728497edh.31.2021.02.08.04.33.00; Mon, 08 Feb 2021 04:33:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KSPyq7HV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231876AbhBHMcT (ORCPT + 99 others); Mon, 8 Feb 2021 07:32:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:57490 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbhBHMSN (ORCPT ); Mon, 8 Feb 2021 07:18:13 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1612786646; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n+2LVFofWrDzo5XkXIbA8HqM46aC4ZldghhZ33psn6M=; b=KSPyq7HV9X52hHkw5B3fAQ6GHHyEdJ7l95EmFctR048cvtpwwEJSzUjnHCHT2EQT2m1fwI Jsts1jfz6j4PUcL+oOZWQPNH0wYw5qJxQghfmFs/AJ9ffQiRDEhRFqPxBNTbqXBqUQzMJN tTTWa45AKjgqUKiY3BBR4wSnVehy4C8= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 268A7AC6E; Mon, 8 Feb 2021 12:17:26 +0000 (UTC) Date: Mon, 8 Feb 2021 13:17:24 +0100 From: Michal Hocko To: David Hildenbrand Cc: Mike Rapoport , Andrew Morton , Alexander Viro , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christopher Lameter , Dan Williams , Dave Hansen , Elena Reshetova , "H. Peter Anvin" , Ingo Molnar , James Bottomley , "Kirill A. Shutemov" , Matthew Wilcox , Mark Rutland , Mike Rapoport , Michael Kerrisk , Palmer Dabbelt , Paul Walmsley , Peter Zijlstra , Rick Edgecombe , Roman Gushchin , Shakeel Butt , Shuah Khan , Thomas Gleixner , Tycho Andersen , Will Deacon , linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-riscv@lists.infradead.org, x86@kernel.org, Hagen Paul Pfeifer , Palmer Dabbelt Subject: Re: [PATCH v17 08/10] PM: hibernate: disable when there are active secretmem users Message-ID: References: <20210208084920.2884-1-rppt@kernel.org> <20210208084920.2884-9-rppt@kernel.org> <38c0cad4-ac55-28e4-81c6-4e0414f0620a@redhat.com> <770690dc-634a-78dd-0772-3aba1a3beba8@redhat.com> <21f4e742-1aab-f8ba-f0e7-40faa6d6c0bb@redhat.com> <5db6ac46-d4e1-3c68-22a0-94f2ecde8801@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5db6ac46-d4e1-3c68-22a0-94f2ecde8801@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 08-02-21 12:26:31, David Hildenbrand wrote: [...] > My F33 system happily hibernates to disk, even with an application that > succeeded in din doing an mlockall(). > > And it somewhat makes sense. Even my freshly-booted, idle F33 has > > $ cat /proc/meminfo | grep lock > Mlocked: 4860 kB > > So, stopping to hibernate with mlocked memory would essentially prohibit any > modern Linux distro to hibernate ever. My system seems to be completely fine without mlocked memory. It would be interesting to see who mlocks memory on your system and check whether the expectated mlock semantic really works for those. This should be documented at least. -- Michal Hocko SUSE Labs