From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34E31C07E9A for ; Mon, 5 Jul 2021 07:44:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BBF0261410 for ; Mon, 5 Jul 2021 07:44:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BBF0261410 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3CFC56B0011; Mon, 5 Jul 2021 03:44:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3A7C66B0036; Mon, 5 Jul 2021 03:44:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 220CA6B005D; Mon, 5 Jul 2021 03:44:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0009.hostedemail.com [216.40.44.9]) by kanga.kvack.org (Postfix) with ESMTP id F40556B0011 for ; Mon, 5 Jul 2021 03:44:36 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 7A1C71F368 for ; Mon, 5 Jul 2021 07:44:36 +0000 (UTC) X-FDA: 78327746952.37.BCA97B9 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf13.hostedemail.com (Postfix) with ESMTP id 19E521001C25 for ; Mon, 5 Jul 2021 07:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625471074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5np36eWmSvMO78OcbcuN9y0DCOEjj7CB0/OWLTB56sM=; b=RKf7g8IoVzKd/xy0TOYsIsj40iI6fzrQ2IBOsHOXGt035SweZAU4mlSzXFHu5MXCPm3vc9 nzPh5s36Fy0qnc71qdi1o5es01aIUB1PjrC03ynO4pG5lUm6qyp3F7/I5NhawbZs4Uwq7f G9bm0hrE1SuMSeL9TuhanYG8XgCiVkY= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-464-8AwQgolQO8iE322HexatJg-1; Mon, 05 Jul 2021 03:44:33 -0400 X-MC-Unique: 8AwQgolQO8iE322HexatJg-1 Received: by mail-wr1-f71.google.com with SMTP id g4-20020a5d64e40000b029013398ce8904so1249356wri.16 for ; Mon, 05 Jul 2021 00:44:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=5np36eWmSvMO78OcbcuN9y0DCOEjj7CB0/OWLTB56sM=; b=gI3IDmhISmjTGlkH3VZnusAEQXx2vpZqImpmk7o9tpVppyvrMRmg/+WhQGBqobI7y7 yKkakEjhBdE1DwW1i+2Dvr46nsapT+bXL0UM2Qtd+TrlfNa6/ZpNCGwuS5Z/fDifVq0F jPwtDMoh6S2S3W6CvMMWTBs6xr8gQ69aTR0cmCG30jakmRX0ok/i+00O5/ngugul9wkB spe++0oSn/5ga7rRJpnGdZ2VJyaUrNlb48K302MLu3ksLKoRPa8uB1RtwSCREpN7h3bE G72wWzCYISU2QC1uehvquWd/F/p+ju5LZAzslzK3ONiYqRXTTk2GgF6xHiJUGMqErbjg PXlg== X-Gm-Message-State: AOAM532JYk8V1uvTEpG7iOq2SMj8OO2/ogXtU1sxnGLTgPAubI9JKvuZ nSekp6CsXCWvhCO+rGlW/qYpugBk56Dih2UXbtcz3wZ6pVE+2aQFnavGuQQrIZzDRS+jGgl/ejK Qe1+SS4yBGR+Bu4uj99ZOl6jlq+LLP5Omhknna/jqZTstr2oXKrxXl79cklE= X-Received: by 2002:a5d:4351:: with SMTP id u17mr13902873wrr.47.1625471072235; Mon, 05 Jul 2021 00:44:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZEBJsRvqmPHoTLdce0dIvJJTt5iVxgxtJhBUqISg2Kcf4rWXTtDjWAcmG8am/2rOegeRzqg== X-Received: by 2002:a5d:4351:: with SMTP id u17mr13902846wrr.47.1625471071973; Mon, 05 Jul 2021 00:44:31 -0700 (PDT) Received: from ?IPv6:2003:d8:2f0a:7f00:fad7:3bc9:69d:31f? (p200300d82f0a7f00fad73bc9069d031f.dip0.t-ipconnect.de. [2003:d8:2f0a:7f00:fad7:3bc9:69d:31f]) by smtp.gmail.com with ESMTPSA id b20sm11829216wmj.7.2021.07.05.00.44.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jul 2021 00:44:31 -0700 (PDT) Subject: Re: [PATCH v1] mm: Enable suspend-only swap spaces To: Evan Green , Andrew Morton Cc: Alex Shi , Alistair Popple , Jens Axboe , Johannes Weiner , Joonsoo Kim , "Matthew Wilcox (Oracle)" , Miaohe Lin , Minchan Kim , Stephen Rothwell , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20210630100432.v1.1.I09866d90c6de14f21223a03e9e6a31f8a02ecbaf@changeid> From: David Hildenbrand Organization: Red Hat Message-ID: Date: Mon, 5 Jul 2021 09:44:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210630100432.v1.1.I09866d90c6de14f21223a03e9e6a31f8a02ecbaf@changeid> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=RKf7g8Io; spf=none (imf13.hostedemail.com: domain of david@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 19E521001C25 X-Stat-Signature: nat7z35p4hpnk6tbq1newu6hsz8xczry X-HE-Tag: 1625471074-943234 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 30.06.21 19:07, Evan Green wrote: > Currently it's not possible to enable hibernation without also enabling > generic swap for a given swap area. These two use cases are not the > same. For example there may be users who want to enable hibernation, > but whose drives don't have the write endurance for generic swap > activities. > > Add a new SWAP_FLAG_NOSWAP that adds a swap region but refuses to allow > generic swapping to it. This region can still be wired up for use in > suspend-to-disk activities, but will never have regular pages swapped to > it. Just to confirm: things like /proc/meminfo won't show this "swap that's not actually swap" as free/total swap, correct? Maybe it's worth spelling the expected system behavior out here. -- Thanks, David / dhildenb