mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rik van Riel <riel@surriel.com>
To: Johannes Weiner <hannes@cmpxchg.org>, Nhat Pham <nphamcs@gmail.com>
Cc: "Chris Li" <chrisl@kernel.org>, "Kairui Song" <ryncsn@gmail.com>,
	"David Hildenbrand (Arm)" <david@kernel.org>,
	"Baoquan He" <baoquan.he@linux.dev>,
	"Michal Hocko" <mhocko@kernel.org>,
	"Roman Gushchin" <roman.gushchin@linux.dev>,
	"Shakeel Butt" <shakeel.butt@linux.dev>,
	"Muchun Song" <muchun.song@linux.dev>,
	"Kemeng Shi" <shikemeng@huaweicloud.com>,
	"Barry Song" <baohua@kernel.org>,
	"YoungJun Park" <youngjun.park@lge.com>,
	"Chengming Zhou" <chengming.zhou@linux.dev>,
	"Lorenzo Stoakes (Oracle)" <ljs@kernel.org>,
	"Liam R. Howlett" <liam@infradead.org>,
	"Vlastimil Babka (SUSE)" <vbabka@kernel.org>,
	"Mike Rapoport" <rppt@kernel.org>,
	"Suren Baghdasaryan" <surenb@google.com>,
	"Qi Zheng" <qi.zheng@linux.dev>,
	"Axel Rasmussen" <axelrasmussen@google.com>,
	"Yuanchu Xie" <yuanchu@google.com>,
	"Gregory Price" <gourry@gourry.net>,
	"Wenchao Hao" <haowenchao22@gmail.com>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Hugh Dickins" <hughd@google.com>,
	"Baolin Wang" <baolin.wang@linux.alibaba.com>,
	"Tejun Heo" <tj@kernel.org>, "Michal Koutný" <mkoutny@suse.com>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Kunwu Chan" <kunwu.chan@linux.dev>,
	"Meta kernel team" <kernel-team@meta.com>,
	"Linux Memory Management List" <linux-mm@kvack.org>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	"open list:CONTROL GROUP - MEMORY RESOURCE CONTROLLER (MEMCG)"
	<cgroups@vger.kernel.org>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Joshua Hahn" <joshua.hahnjy@gmail.com>,
	"Wei Xu" <weixugc@google.com>, "Yosry Ahmed" <yosry@kernel.org>
Subject: Re: Virtual Swap Sync
Date: Fri, 04 Dec 2026 15:31:59 -0500	[thread overview]
Message-ID: <23c44369bd3577dedc5026cdf37e7b48bbd4b740.camel@surriel.com> (raw)
In-Reply-To: <axMYDd1BrX41s_H1@cmpxchg.org>

On Fri, 2026-12-04 at 14:44 -0500, Johannes Weiner wrote:
> On Fri, Dec 04, 2026 at 11:30:46AM -0700, Nhat Pham wrote:
> > On Tue, Dec 1, 2026 at 10:27 PM Chris Li <chrisl@kernel.org> wrote:
> > > 
> > > On Mon, Nov 30, 2026 at 4:26 AM Nhat Pham <nphamcs@gmail.com>
> > > wrote:
> > > > Ah I see. It's logical footprint, but enforced on an
> > > > allocation/used
> > > > basis rather than mapping (i.e address space reservation, which
> > > > existing vm.overcommit modes regulate).
> > > > 
> > > > I think swap sizing is still the wrong interface for this.
> > > > IMHO, it's
> > > > a crude emulation, with some downsides:
> > > > 
> > > > Say the desired logical memory limit is 4GB. We have 2GB of
> > > > physical
> > > > memory limit, so we emulate that by setting swap size to 2GB.
> > > > Now say
> > > > I have a hot file cache of 1GB, and 3GB of cold anon. That
> > > > should be
> > > > allowed, but you'd thrash prematurely or OOM because you can
> > > > only
> 
> It shouldn't be a vswap blocker. This is as incremental as it gets.
> No memsw setup is broken, no zram setup is broken.

Agreed. The current upstream kernel does not support the
total logical memory limit functionality, so this should
not be a prerequisite for merging vswap.

This is something we can integrate later.

-- 
All Rights Reversed.

  reply	other threads:[~2026-12-04 20:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 21:06 Nhat Pham
2026-11-06 12:55 ` David Hildenbrand (Arm)
2026-11-22 15:31 ` Nhat Pham
2026-11-26  6:03   ` Baoquan He
2026-11-26 17:30     ` Nhat Pham
2026-11-29 17:25       ` Kairui Song
2026-11-29 22:12         ` Chris Li
2026-12-03  0:47           ` Chris Li
2026-12-04 18:58             ` Nhat Pham
2026-11-29 16:40   ` Kairui Song
2026-11-30  2:40     ` Rik van Riel
2026-11-30 12:26     ` Nhat Pham
2026-11-30 12:34       ` Nhat Pham
2026-12-02  5:27       ` Chris Li
2026-12-04 18:30         ` Nhat Pham
2026-12-04 19:44           ` Johannes Weiner
2026-12-04 20:31             ` Rik van Riel [this message]
2026-12-03 22:12   ` Nhat Pham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23c44369bd3577dedc5026cdf37e7b48bbd4b740.camel@surriel.com \
    --to=riel@surriel.com \
    --cc=akpm@linux-foundation.org \
    --cc=axelrasmussen@google.com \
    --cc=baohua@kernel.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=baoquan.he@linux.dev \
    --cc=cgroups@vger.kernel.org \
    --cc=chengming.zhou@linux.dev \
    --cc=chrisl@kernel.org \
    --cc=corbet@lwn.net \
    --cc=david@kernel.org \
    --cc=gourry@gourry.net \
    --cc=hannes@cmpxchg.org \
    --cc=haowenchao22@gmail.com \
    --cc=hughd@google.com \
    --cc=joshua.hahnjy@gmail.com \
    --cc=kernel-team@meta.com \
    --cc=kunwu.chan@linux.dev \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@kernel.org \
    --cc=mkoutny@suse.com \
    --cc=muchun.song@linux.dev \
    --cc=nphamcs@gmail.com \
    --cc=qi.zheng@linux.dev \
    --cc=roman.gushchin@linux.dev \
    --cc=rppt@kernel.org \
    --cc=ryncsn@gmail.com \
    --cc=shakeel.butt@linux.dev \
    --cc=shikemeng@huaweicloud.com \
    --cc=skhan@linuxfoundation.org \
    --cc=surenb@google.com \
    --cc=tj@kernel.org \
    --cc=vbabka@kernel.org \
    --cc=weixugc@google.com \
    --cc=yosry@kernel.org \
    --cc=youngjun.park@lge.com \
    --cc=yuanchu@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®