All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Senozhatsky <senozhatsky@chromium.org>
To: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Erhard Furtner <erhard_f@mailbox.org>,
	Nhat Pham <nphamcs@gmail.com>, Yu Zhao <yuzhao@google.com>,
	linux-mm@kvack.org, Minchan Kim <minchan@kernel.org>,
	linux-kernel@vger.kernel.org, Yosry Ahmed <yosryahmed@google.com>,
	Sergey Senozhatsky <senozhatsky@chromium.org>,
	Johannes Weiner <hannes@cmpxchg.org>,
	linuxppc-dev@lists.ozlabs.org,
	"Vlastimil Babka \(SUSE\)" <vbabka@kernel.org>
Subject: Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)
Date: Thu, 6 Jun 2024 14:43:34 +0900	[thread overview]
Message-ID: <20240606054334.GD11718@google.com> (raw)
In-Reply-To: <6335c05d-9493-4b03-85a7-f2dd91db9451@linux.dev>

On (24/06/06 12:46), Chengming Zhou wrote:
> >> Agree, I think we should try to improve locking scalability of zsmalloc.
> >> I have some thoughts to share, no code or test data yet:
> >>
> >> 1. First, we can change the pool global lock to per-class lock, which
> >>    is more fine-grained.
> > 
> > Commit c0547d0b6a4b6 "zsmalloc: consolidate zs_pool's migrate_lock
> > and size_class's locks" [1] claimed no significant difference
> > between class->lock and pool->lock.
> 
> Ok, I haven't looked into the history much, that seems preparation of trying
> to introduce reclaim in the zsmalloc? Not sure. But now with the reclaim code
> in zsmalloc has gone, should we change back to the per-class lock? Which is

Well, the point that commit made was that Nhat (and Johannes?) were
unable to detect any impact of pool->lock on a variety of cases.  So
we went on with code simplification.

> obviously more fine-grained than the pool lock. Actually, I have just done it,
> will test to get some data later.

Thanks, we'll need data on this.  I'm happy to take the patch, but
jumping back and forth between class->lock and pool->lock merely
"for obvious reasons" is not what I'm extremely excited about.

WARNING: multiple messages have this Message-ID (diff)
From: Sergey Senozhatsky <senozhatsky@chromium.org>
To: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>,
	Yosry Ahmed <yosryahmed@google.com>,
	Erhard Furtner <erhard_f@mailbox.org>,
	Yu Zhao <yuzhao@google.com>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org,
	Johannes Weiner <hannes@cmpxchg.org>,
	Nhat Pham <nphamcs@gmail.com>, Minchan Kim <minchan@kernel.org>,
	"Vlastimil Babka (SUSE)" <vbabka@kernel.org>
Subject: Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)
Date: Thu, 6 Jun 2024 14:43:34 +0900	[thread overview]
Message-ID: <20240606054334.GD11718@google.com> (raw)
In-Reply-To: <6335c05d-9493-4b03-85a7-f2dd91db9451@linux.dev>

On (24/06/06 12:46), Chengming Zhou wrote:
> >> Agree, I think we should try to improve locking scalability of zsmalloc.
> >> I have some thoughts to share, no code or test data yet:
> >>
> >> 1. First, we can change the pool global lock to per-class lock, which
> >>    is more fine-grained.
> > 
> > Commit c0547d0b6a4b6 "zsmalloc: consolidate zs_pool's migrate_lock
> > and size_class's locks" [1] claimed no significant difference
> > between class->lock and pool->lock.
> 
> Ok, I haven't looked into the history much, that seems preparation of trying
> to introduce reclaim in the zsmalloc? Not sure. But now with the reclaim code
> in zsmalloc has gone, should we change back to the per-class lock? Which is

Well, the point that commit made was that Nhat (and Johannes?) were
unable to detect any impact of pool->lock on a variety of cases.  So
we went on with code simplification.

> obviously more fine-grained than the pool lock. Actually, I have just done it,
> will test to get some data later.

Thanks, we'll need data on this.  I'm happy to take the patch, but
jumping back and forth between class->lock and pool->lock merely
"for obvious reasons" is not what I'm extremely excited about.


  reply	other threads:[~2024-06-06  5:44 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-08 18:21 kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc) Erhard Furtner
2024-05-08 18:21 ` Erhard Furtner
2024-05-15 20:45 ` Erhard Furtner
2024-05-15 20:45   ` Erhard Furtner
2024-05-15 22:06   ` Yu Zhao
2024-05-15 22:06     ` Yu Zhao
2024-06-01  6:01     ` Yu Zhao
2024-06-01  6:01       ` Yu Zhao
2024-06-01 15:37       ` David Hildenbrand
2024-06-01 15:37         ` David Hildenbrand
2024-06-06  3:11         ` Michael Ellerman
2024-06-06  3:11           ` Michael Ellerman
2024-06-06  3:38           ` Yu Zhao
2024-06-06  3:38             ` Yu Zhao
2024-06-06 12:08             ` Michael Ellerman
2024-06-06 12:08               ` Michael Ellerman
2024-06-06 16:05               ` Erhard Furtner
2024-06-06 16:05                 ` Erhard Furtner
2024-06-02 18:03       ` Erhard Furtner
2024-06-02 18:03         ` Erhard Furtner
2024-06-02 20:38         ` Yu Zhao
2024-06-02 20:38           ` Yu Zhao
2024-06-02 21:36           ` Erhard Furtner
2024-06-02 21:36             ` Erhard Furtner
2024-06-03 22:13         ` Erhard Furtner
2024-06-03 22:13           ` Erhard Furtner
2024-06-03 23:24           ` Yosry Ahmed
2024-06-03 23:24             ` Yosry Ahmed
2024-06-04 11:44             ` Erhard Furtner
2024-06-04 11:44               ` Erhard Furtner
2024-06-04 16:11               ` Yosry Ahmed
2024-06-04 16:11                 ` Yosry Ahmed
2024-06-04 17:18                 ` Yu Zhao
2024-06-04 17:18                   ` Yu Zhao
2024-06-04 17:34                   ` Yosry Ahmed
2024-06-04 17:34                     ` Yosry Ahmed
2024-06-04 17:53                     ` Yu Zhao
2024-06-04 17:53                       ` Yu Zhao
2024-06-04 18:01                       ` Yosry Ahmed
2024-06-04 18:01                         ` Yosry Ahmed
2024-06-04 21:00                         ` Vlastimil Babka (SUSE)
2024-06-04 21:00                           ` Vlastimil Babka (SUSE)
2024-06-04 21:10                         ` Erhard Furtner
2024-06-04 21:10                           ` Erhard Furtner
2024-06-05  3:03                           ` Yosry Ahmed
2024-06-05  3:03                             ` Yosry Ahmed
2024-06-05 23:04                             ` Erhard Furtner
2024-06-05 23:04                               ` Erhard Furtner
2024-06-05 23:41                               ` Yosry Ahmed
2024-06-05 23:41                                 ` Yosry Ahmed
2024-06-05 23:52                                 ` Yu Zhao
2024-06-05 23:52                                   ` Yu Zhao
2024-06-05 23:58                                   ` Yosry Ahmed
2024-06-05 23:58                                     ` Yosry Ahmed
2024-06-06 13:28                                     ` Erhard Furtner
2024-06-06 13:28                                       ` Erhard Furtner
2024-06-06 16:42                                       ` Yosry Ahmed
2024-06-06 16:42                                         ` Yosry Ahmed
2024-06-06  2:49                                 ` Chengming Zhou
2024-06-06  2:49                                   ` Chengming Zhou
2024-06-06  4:31                                   ` Sergey Senozhatsky
2024-06-06  4:31                                     ` Sergey Senozhatsky
2024-06-06  4:46                                     ` Chengming Zhou
2024-06-06  4:46                                       ` Chengming Zhou
2024-06-06  5:43                                       ` Sergey Senozhatsky [this message]
2024-06-06  5:43                                         ` Sergey Senozhatsky
2024-06-06  5:55                                         ` Chengming Zhou
2024-06-06  5:55                                           ` Chengming Zhou
2024-06-07  9:40                                         ` Nhat Pham
2024-06-07  9:40                                           ` Nhat Pham
2024-06-07 11:20                                           ` Sergey Senozhatsky
2024-06-07 11:20                                             ` Sergey Senozhatsky
2024-06-06  7:24                                 ` Vlastimil Babka (SUSE)
2024-06-06  7:24                                   ` Vlastimil Babka (SUSE)
2024-06-06 13:32                                   ` Erhard Furtner
2024-06-06 13:32                                     ` Erhard Furtner
2024-06-06 16:53                                     ` Vlastimil Babka (SUSE)
2024-06-06 16:53                                       ` Vlastimil Babka (SUSE)
2024-06-06 17:14                                 ` Takero Funaki
2024-06-06 17:14                                   ` Takero Funaki
2024-06-06 17:41                                   ` Yosry Ahmed
2024-06-06 17:41                                     ` Yosry Ahmed
2024-06-06 17:55                                     ` Yu Zhao
2024-06-06 17:55                                       ` Yu Zhao
2024-06-06 18:03                                       ` Yosry Ahmed
2024-06-06 18:03                                         ` Yosry Ahmed
2024-06-04 22:17                   ` Erhard Furtner
2024-06-04 22:17                     ` Erhard Furtner
2024-06-04 20:52             ` Vlastimil Babka (SUSE)
2024-06-04 20:52               ` Vlastimil Babka (SUSE)
2024-06-04 20:55               ` Yosry Ahmed
2024-06-04 20:55                 ` Yosry Ahmed

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=20240606054334.GD11718@google.com \
    --to=senozhatsky@chromium.org \
    --cc=chengming.zhou@linux.dev \
    --cc=erhard_f@mailbox.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=minchan@kernel.org \
    --cc=nphamcs@gmail.com \
    --cc=vbabka@kernel.org \
    --cc=yosryahmed@google.com \
    --cc=yuzhao@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.