Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4337261pxv; Tue, 27 Jul 2021 05:05:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7C0oA4MHTQf7WWvBib2VylXX9NLD91eWhmqImQMyf66I3R3rcrIgnoI30gbpjos4OBsEI X-Received: by 2002:adf:e3d2:: with SMTP id k18mr13815563wrm.212.1627387557143; Tue, 27 Jul 2021 05:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627387557; cv=none; d=google.com; s=arc-20160816; b=l1W+3lVPdc2bKJKUi13PYXB4Ve/d8HvTBTV31NFMRJ2v6YlMZGI12GLvyOb3p437uJ XEYZ+AENvekTKVUnz0MSIAphHNAFAkvNmtgXLOuQd9Rh0sTXG7UVsfkwoottwhOLqYFe z/n+mR1FLKZq4wXa0M/EotqYgA7YX19Uc0LCCyQW323MunrnXlwpNKSbvbWpXHYgS0lP J223obbJndaSkQK+3scLbVjMnUI0EOu+0dwKKLPdnaABjcDctNtx1cfmXaiVLeDGkOLV Ma7vuutvJuNOV6HiF371pQx5AmoYtnTbSn4Yf4+1snKnhz/0xEaEvD2LuayTwnJK0VvD SqQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YO8WLRhJcPVgF1EpAVrt3IVfveepMvchmak2FXlLoxw=; b=F/jXWkUUhUmUgOS5+E9jz+FefLvX5hIuNOxdZl/iLKZOtOaieYusPZ9OOQLQKu04+H /lx5hPxlj0/75CpWZXppeeTBmptrvXaWgxDUBNvUPhA+9w+k0awBzR5QMv1zwwgouKI5 gaI4z2CZ6coh61+wkZfgM84/bfyUfXS+fyhR5XqjR98rmBQcRhrtv1IhPIrbbldjHT6D V8IHl1SUjCeLXW80+bROtJ0//9IW26Aamh3Y2Gk8cnFLE9mUbcUsbuDE5N/o8N+fWNTW Qzcbl8DcsxdN0dW2dbjN0wGHtUrV4sZb8lEoFb3W6bpo8Nr1AX/slslHm/T2eHtnznTZ ATcg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n30si2505778edb.121.2021.07.27.05.05.25; Tue, 27 Jul 2021 05:05:57 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236502AbhG0MBh (ORCPT + 99 others); Tue, 27 Jul 2021 08:01:37 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:58336 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236312AbhG0MBg (ORCPT ); Tue, 27 Jul 2021 08:01:36 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 6BBB41C0B76; Tue, 27 Jul 2021 14:01:35 +0200 (CEST) Date: Tue, 27 Jul 2021 14:01:35 +0200 From: Pavel Machek To: David Hildenbrand Cc: Michal Hocko , Evan Green , Andrew Morton , Alex Shi , Alistair Popple , Jens Axboe , Johannes Weiner , Joonsoo Kim , "Matthew Wilcox (Oracle)" , Miaohe Lin , Minchan Kim , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org Subject: Re: [PATCH v2] mm: Enable suspend-only swap spaces Message-ID: <20210727120135.GA32265@duo.ucw.cz> References: <20210709105012.v2.1.I09866d90c6de14f21223a03e9e6a31f8a02ecbaf@changeid> <30dddfb1-388c-a593-0987-73e821216da9@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline In-Reply-To: <30dddfb1-388c-a593-0987-73e821216da9@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Could you expand some more on why a strict exclusion is really > > necessary? I do understand that one might not want to have swap storage > > available all the time but considering that swapon is really a light > > operation so something like the following should be a reasonable > > workaround, no? > > swapon storage/file > > s2disk > > swapoff storage >=20 > I'm certainly not a hibernation expert, but I'd guess this can also be > triggered by HW events, so from the kernel and not only from user space > where your workaround would apply. I should know about hibernation, and I'm not aware of any case where we do hibernation from kernel. Userspace should be always involved. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYP/1nwAKCRAw5/Bqldv6 8pHjAJ44gAydZJxSbawcNsnD0Vx7XPnYNQCeOFPhMYsWI6XozIkeaEayJDVpRxc= =XzQI -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--