Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1435810pxb; Tue, 17 Aug 2021 11:37:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5T2YDSz+x72fGblWRrkJZx6oFIGk3r1HCsF4s/HTTsf4IBFWGrWcHtyKW1zy2GOsCMhss X-Received: by 2002:a17:907:9602:: with SMTP id gb2mr5564757ejc.119.1629225430423; Tue, 17 Aug 2021 11:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629225430; cv=none; d=google.com; s=arc-20160816; b=wLcU2I199G70yfbZGi8I94LyzQsWNtmkJB+g9Ucww7shoWowX38N5lzfUHA6ZaDzNM fUwj5F/nWuyWmmWmVFNwFVjokAQg8DTwuPnLFRsvJzR2dYklvtBXifMw7qFvaToBO2I9 TCi8OQPotkK68vCooRKppVzqsg9WiBrtV4SOR8GL4wK4Huu7Z9yggUYe3gU2He4l16WO n7oqMuE8bJWmYtyp5cV2CsvErx4dN0QCdXpROaVOOZQmPJgNUVHSqEuOtS/gbbBn4W9i 8Lfk4pescIWQMA2xxpEHT7Lv54SwbJ2T1/LMfmaope+RrYEt+sXvoe+VEOnr1ULkxhbU Zv+g== 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=y6yAGJwzNEmeZzzSXGqNqd6qIYEaOPWaOqm5STuTn4U=; b=K/UDzjES9utpqs/HN9MhTJ2Fhg8ghtSCqy5fFL+6Go0igsDWThN7UQDdFB61J13IeV RBNdd8ymNpmd1zL/+1fqLrzl0Y/Oxeo2XMkACPjzS5qFUhlMC4z/WN7lBWvcMGcR4gAH F/W4O6wpZBhy6kBYyaJ2dCPqGRVm2p7Wel0lfGSNgWTZiETvkAVl7spwUDTUGhiDN8FY PsuOs0akHsqbiFg40X4LdVDy+T5RlUmQfKWhUNbR6kCYPNGEC26idet/1iqhuWexr/hk 8M6mEfvR5RZbDWgzip53ZpxOedkZ/Fi4EiSfzdRSVy/fooelleg45jRITy4yRWrHcnR4 I2Sw== 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 j11si3240987ejj.109.2021.08.17.11.36.46; Tue, 17 Aug 2021 11:37:10 -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 S232981AbhHQSdJ (ORCPT + 99 others); Tue, 17 Aug 2021 14:33:09 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:43702 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhHQSdI (ORCPT ); Tue, 17 Aug 2021 14:33:08 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id B91051C0B77; Tue, 17 Aug 2021 20:32:33 +0200 (CEST) Date: Tue, 17 Aug 2021 20:32:33 +0200 From: Pavel Machek To: Evan Green Cc: Andrew Morton , David Hildenbrand , Michal Hocko , linux-api@vger.kernel.org, Alex Shi , Alistair Popple , Johannes Weiner , Joonsoo Kim , "Matthew Wilcox (Oracle)" , Miaohe Lin , Minchan Kim , Suren Baghdasaryan , Vlastimil Babka , LKML , linux-mm@kvack.org Subject: Re: [PATCH v4] mm: Enable suspend-only swap spaces Message-ID: <20210817183233.GA14518@amd> References: <20210726171106.v4.1.I09866d90c6de14f21223a03e9e6a31f8a02ecbaf@changeid> <6ff28cfe-1107-347b-0327-ad36e256141b@redhat.com> <20210727141832.86695e7181eb10c6e8fd0191@linux-foundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > > Pavel just mentioned uswsusp, and I wonder if it would be a possible > > > > alternative to this patch. > > > > > > I think you're right that it would be possible to isolate the > > > hibernate image with uswsusp if you avoid using the SNAPSHOT_*SWAP* > > > ioctls. But I'd expect performance to suffer noticeably, since now > > > every page is making a round trip out to usermode and back. I'd still > > > very much use the HIBERNATE_ONLY flag if it were accepted, I think > > > there's value to it. > > > > The uswsusp option makes your patch a performance optimization rather > > than a feature-add. And we do like to see quantitative testing results > > when considering a performance optimization. Especially when the > > performance optimization is a bit icky, putting special-case testing > > all over the place, maintenance cost, additional testing effort, etc. > > > > I do think that diligence demands that we quantify the difference. Is > > this a thing you can help with? >=20 > I'm wrong about the performance. Uswsusp is just as fast, and possibly > faster in my use case than kernel-driven hibernate. What's more, > uswsusp also helps me solve several additional problems I hadn't > tackled yet that were looming in front of me. Thanks all for your > patience and thoughtful review on this. Great to see uswsusp being used :-). Thanks, Pavel --=20 http://www.livejournal.com/~pavelmachek --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmEcAMEACgkQMOfwapXb+vKT/QCghbi3ZypdUeEfrA2k0why8r3r USoAnjPivJsELW4o50xScy0FwXbf1B7w =MuBX -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--