Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp7551670lko; Fri, 30 Jul 2021 06:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtsYrE/Caj5yDt+AmBnO3Qm0AAcHGQklFfrnn3sUdhBC6iec15gyANB6TzaB73Jobpum2x X-Received: by 2002:a92:d848:: with SMTP id h8mr1919722ilq.282.1627651055013; Fri, 30 Jul 2021 06:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627651055; cv=none; d=google.com; s=arc-20160816; b=SgWu9Jl1jw96+wzhWQX4xT93iFAwNKntnzxNyGAVEa/DrfDeinXwuKgWZfPw7MTUL1 WpmRLyWe510LzBY9+Wovtc/nyLHlL96u9GivJ20b85g5Zupd4baoW5OCuBAhoVpi6npr uG6dAtx4S9obSwczcBDwqyAJJG6fxfmOEmrsoq67yssWOsWRV1jUyCCIkRiElFqQjqMN AypCFxCElu0Hxu1w/U/ZFRlkh7lmYlJgxn6OjloN5VwhWbHxm0GOLWfz9mZeVVRKwga8 2cwyBegx7VI4dBGhaBFjCtlADxvd/A+tvGJHUTmlleiBhUQC2CGGMq3n/VC0bXO0+Mbq 8VUg== 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=T5n9htUTUEDNFMWHlREjCeA6Lm63re0yV9LYwhjCq4c=; b=UxMnLOpmjNELKzrJBU2EhVO6Bwp40JkBSjb41f5sMgt46g+IUHGddUW+5epLM0ca4g 5GscNCYSlRV4y53lQltzu7mqhvJrlxeO1GXdn4lArT2qDEVz3ZhHxAWRUyztSapKFXqb xaDWDWveo1ITvYtPEM97ZLCM+/A1hO84q5wNhUgPs5xyRzME+RbzXvFbxrc5Raq+Zgb5 +NLKbxW2KFyIO8rMxg0ZbUfIA/UbH+PkqFV9OmOPLv/q0LdHa2rkOhTgTI26thXGiKvy HCbgNX15KXX0iDuS/6j4hPjwqaLwMgs5ahppq96SS9BfDBZTTliLMvVDfNkGbXrJGdCZ rYvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U9JkZ5q8; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si1883029ion.28.2021.07.30.06.17.23; Fri, 30 Jul 2021 06:17:35 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U9JkZ5q8; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238801AbhG3NQQ (ORCPT + 99 others); Fri, 30 Jul 2021 09:16:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37304 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238809AbhG3NQP (ORCPT ); Fri, 30 Jul 2021 09:16:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627650970; 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: in-reply-to:in-reply-to:references:references; bh=T5n9htUTUEDNFMWHlREjCeA6Lm63re0yV9LYwhjCq4c=; b=U9JkZ5q8nwKB1qsez4t+MpAg+USf1zPUro/oPJhvd0tep0d91cudUwV2Z662U0kBywso1Y YCCIMmpPTwJmKqAT6DklDEJoKytbBT75KFzG78RpJJ5Ya/7diVkdhlDu5GPv8US2/lkHrr AqXKNsYzU60OqosLpGSIUUCnQAgsxwc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-69-2AWqov1LPKuunWD90ncSHg-1; Fri, 30 Jul 2021 09:16:05 -0400 X-MC-Unique: 2AWqov1LPKuunWD90ncSHg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D5B50101C7DD; Fri, 30 Jul 2021 13:15:48 +0000 (UTC) Received: from ws.net.home (ovpn-112-16.ams2.redhat.com [10.36.112.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4D3045D9D5; Fri, 30 Jul 2021 13:15:44 +0000 (UTC) Date: Fri, 30 Jul 2021 15:15:41 +0200 From: Karel Zak To: Evan Green Cc: Andrew Morton , Michal Hocko , Pavel Machek , linux-api@vger.kernel.org, David Hildenbrand , Alex Shi , Alistair Popple , Johannes Weiner , Joonsoo Kim , "Matthew Wilcox (Oracle)" , Miaohe Lin , Minchan Kim , Suren Baghdasaryan , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v4] mm: Enable suspend-only swap spaces Message-ID: <20210730131541.ighhjiazc4agehcy@ws.net.home> References: <20210726171106.v4.1.I09866d90c6de14f21223a03e9e6a31f8a02ecbaf@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210726171106.v4.1.I09866d90c6de14f21223a03e9e6a31f8a02ecbaf@changeid> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 05:12:46PM -0700, Evan Green wrote: > Swap regions with SWAP_FLAG_HIBERNATE_ONLY set will not appear in > /proc/meminfo under SwapTotal and SwapFree, since they are not usable as > general swap. These regions do still appear in /proc/swaps. Off-topic, /proc/swaps is in the same situation like /proc/mounts years ago ... It does not provide all important information like SWAP_FLAG_DISCARD_PAGES SWAP_FLAG_DISCARD_ONCE and SWAP_FLAG_HIBERNATE_ONLY flags. Users will not able to differentiate between regular and hibernate-only devices in "swapon" or "cat /proc/swaps" output ;-( It would be nice to have /proc/swapsinfo with extendible "flags" column. Karel -- Karel Zak http://karelzak.blogspot.com