Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-12 Thread Alex Shi
在 2020/11/12 下午8:19, Vlastimil Babka 写道: > On 11/5/20 9:55 AM, Alex Shi wrote: >> This patch moves per node lru_lock into lruvec, thus bring a lru_lock for >> each of memcg per node. So on a large machine, each of memcg don't >> have to suffer from per node pgdat->lru_lock competition. They coul

Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-12 Thread Vlastimil Babka
On 11/5/20 9:55 AM, Alex Shi wrote: This patch moves per node lru_lock into lruvec, thus bring a lru_lock for each of memcg per node. So on a large machine, each of memcg don't have to suffer from per node pgdat->lru_lock competition. They could go fast with their self lru_lock. After move memcg

Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-11 Thread Vlastimil Babka
On 11/11/20 6:46 PM, Vlastimil Babka wrote: Acked-by: Vlastimil Babka Err, not yet, that was supposed for patch 16/17

Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-11 Thread Vlastimil Babka
On 11/5/20 9:55 AM, Alex Shi wrote: This patch moves per node lru_lock into lruvec, thus bring a lru_lock for each of memcg per node. So on a large machine, each of memcg don't have to suffer from per node pgdat->lru_lock competition. They could go fast with their self lru_lock. After move memcg

Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-10 Thread Johannes Weiner
On Fri, Nov 06, 2020 at 03:48:16PM +0800, Alex Shi wrote: > From 84e69f892119d99612e9668e3fe47a3922bafff1 Mon Sep 17 00:00:00 2001 > From: Alex Shi > Date: Tue, 18 Aug 2020 16:44:21 +0800 > Subject: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock > > This pa

Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-05 Thread Alex Shi
(). Hence this and next patch needs update for this: >From 84e69f892119d99612e9668e3fe47a3922bafff1 Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Tue, 18 Aug 2020 16:44:21 +0800 Subject: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock This patch moves per node lru_lock into lr

Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-05 Thread Alex Shi
t;_refcount is zero. Ops, here is a typo, we need to add back above line. so the patch updated here: >From 9f187d04c7ba62bb7e07c07733b2848f155961f6 Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Tue, 18 Aug 2020 16:44:21 +0800 Subject: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lr

[PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-05 Thread Alex Shi
This patch moves per node lru_lock into lruvec, thus bring a lru_lock for each of memcg per node. So on a large machine, each of memcg don't have to suffer from per node pgdat->lru_lock competition. They could go fast with their self lru_lock. After move memcg charge before lru inserting, page iso