Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-22 Thread Uladzislau Rezki
On Wed, Jan 22, 2025 at 05:43:06PM +0100, Vlastimil Babka wrote: > On 1/22/25 16:04, Joel Fernandes wrote: > > On Tue, Jan 21, 2025 at 3:32 PM Paul E. McKenney wrote: > >> > >> On Tue, Jan 21, 2025 at 03:14:16PM +0100, Uladzislau Rezki wrote: > >> > On Tue, Jan 21, 2025 at 02:49:13PM +0100, Vlasti

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-22 Thread Joel Fernandes
On Wed, Jan 22, 2025 at 11:43 AM Vlastimil Babka wrote: [...] > > __is_kvfree_rcu_offset() and its usage from Tiny. Granted, there is > > the overhead of function calling, but I highly doubt that it is going > > to be a bottleneck, considering that the __is_kvfree_rcu_offset() path > > is a kfree

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-22 Thread Vlastimil Babka
On 1/22/25 16:04, Joel Fernandes wrote: > On Tue, Jan 21, 2025 at 3:32 PM Paul E. McKenney wrote: >> >> On Tue, Jan 21, 2025 at 03:14:16PM +0100, Uladzislau Rezki wrote: >> > On Tue, Jan 21, 2025 at 02:49:13PM +0100, Vlastimil Babka wrote: >> > > Right so that's the first Possible solution, but wi

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-22 Thread Joel Fernandes
On Tue, Jan 21, 2025 at 3:32 PM Paul E. McKenney wrote: > > On Tue, Jan 21, 2025 at 03:14:16PM +0100, Uladzislau Rezki wrote: > > On Tue, Jan 21, 2025 at 02:49:13PM +0100, Vlastimil Babka wrote: > > > On 1/21/25 2:33 PM, Uladzislau Rezki wrote: > > > > On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vla

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Paul E. McKenney
On Tue, Jan 21, 2025 at 03:14:16PM +0100, Uladzislau Rezki wrote: > On Tue, Jan 21, 2025 at 02:49:13PM +0100, Vlastimil Babka wrote: > > On 1/21/25 2:33 PM, Uladzislau Rezki wrote: > > > On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: > > >> On 12/16/24 17:46, Paul E. McKenney wrot

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Uladzislau Rezki
On Tue, Jan 21, 2025 at 02:49:13PM +0100, Vlastimil Babka wrote: > On 1/21/25 2:33 PM, Uladzislau Rezki wrote: > > On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: > >> On 12/16/24 17:46, Paul E. McKenney wrote: > >>> On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote:

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Vlastimil Babka
On 1/21/25 2:33 PM, Uladzislau Rezki wrote: > On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: >> On 12/16/24 17:46, Paul E. McKenney wrote: >>> On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote: On Mon, Dec 16, 2024 at 04:44:41PM +0100, Vlastimil Babka wrote: >>

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Uladzislau Rezki
On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: > On 12/16/24 17:46, Paul E. McKenney wrote: > > On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote: > >> On Mon, Dec 16, 2024 at 04:44:41PM +0100, Vlastimil Babka wrote: > >> > On 12/16/24 16:41, Uladzislau Rezki wrote:

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-20 Thread Vlastimil Babka
On 12/16/24 17:46, Paul E. McKenney wrote: > On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote: >> On Mon, Dec 16, 2024 at 04:44:41PM +0100, Vlastimil Babka wrote: >> > On 12/16/24 16:41, Uladzislau Rezki wrote: >> > > On Mon, Dec 16, 2024 at 03:20:44PM +0100, Vlastimil Babka wrote:

Re: [External Mail] [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-11 Thread Vlastimil Babka
On 1/6/25 08:21, Hyeonggon Yoo wrote: > > > On 2024-12-13 3:02 AM, Uladzislau Rezki (Sony) wrote: >> Hello! >> >> This is v2. It is based on the Linux 6.13-rc2. The first version is >> here: >> >> https://lore.kernel.org/linux-mm/20241210164035.3391747-4-ure...@gmail.com/T/ >> >> The differenc

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-11 Thread Vlastimil Babka
On 12/16/24 14:07, Uladzislau Rezki wrote: > On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote: >> On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: >> > Hello! >> > >> > This is v2. It is based on the Linux 6.13-rc2. The first version is >> > here: >> > >> > https://lore.kernel.org

Re: [External Mail] [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-05 Thread Hyeonggon Yoo
On 2024-12-13 3:02 AM, Uladzislau Rezki (Sony) wrote: Hello! This is v2. It is based on the Linux 6.13-rc2. The first version is here: https://lore.kernel.org/linux-mm/20241210164035.3391747-4-ure...@gmail.com/T/ The difference between v1 and v2 is that, the preparation process is done in o

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-16 Thread Paul E. McKenney
On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote: > On Mon, Dec 16, 2024 at 04:44:41PM +0100, Vlastimil Babka wrote: > > On 12/16/24 16:41, Uladzislau Rezki wrote: > > > On Mon, Dec 16, 2024 at 03:20:44PM +0100, Vlastimil Babka wrote: > > >> On 12/16/24 12:03, Uladzislau Rezki wrote

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-16 Thread Uladzislau Rezki
On Mon, Dec 16, 2024 at 04:44:41PM +0100, Vlastimil Babka wrote: > On 12/16/24 16:41, Uladzislau Rezki wrote: > > On Mon, Dec 16, 2024 at 03:20:44PM +0100, Vlastimil Babka wrote: > >> On 12/16/24 12:03, Uladzislau Rezki wrote: > >> > On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote:

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-16 Thread Uladzislau Rezki
On Mon, Dec 16, 2024 at 03:20:44PM +0100, Vlastimil Babka wrote: > On 12/16/24 12:03, Uladzislau Rezki wrote: > > On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote: > >> On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: > >> > Hello! > >> > > >> > This is v2. It is based on the Linux

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-16 Thread Vlastimil Babka
On 12/16/24 16:41, Uladzislau Rezki wrote: > On Mon, Dec 16, 2024 at 03:20:44PM +0100, Vlastimil Babka wrote: >> On 12/16/24 12:03, Uladzislau Rezki wrote: >> > On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote: >> >> On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: >> >> > Hello! >>

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-16 Thread Vlastimil Babka
On 12/16/24 12:03, Uladzislau Rezki wrote: > On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote: >> On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: >> > Hello! >> > >> > This is v2. It is based on the Linux 6.13-rc2. The first version is >> > here: >> > >> > https://lore.kernel.org

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-16 Thread Uladzislau Rezki
On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote: > On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: > > Hello! > > > > This is v2. It is based on the Linux 6.13-rc2. The first version is > > here: > > > > https://lore.kernel.org/linux-mm/20241210164035.3391747-4-ure...@gmail.com/

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-16 Thread Uladzislau Rezki
On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote: > On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: > > Hello! > > > > This is v2. It is based on the Linux 6.13-rc2. The first version is > > here: > > > > https://lore.kernel.org/linux-mm/20241210164035.3391747-4-ure...@gmail.com/

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-15 Thread Paul E. McKenney
On Sun, Dec 15, 2024 at 06:30:02PM +0100, Vlastimil Babka wrote: > On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: > > Hello! > > > > This is v2. It is based on the Linux 6.13-rc2. The first version is > > here: > > > > https://lore.kernel.org/linux-mm/20241210164035.3391747-4-ure...@gmail.com/

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-15 Thread Vlastimil Babka
On 12/12/24 19:02, Uladzislau Rezki (Sony) wrote: > Hello! > > This is v2. It is based on the Linux 6.13-rc2. The first version is > here: > > https://lore.kernel.org/linux-mm/20241210164035.3391747-4-ure...@gmail.com/T/ > > The difference between v1 and v2 is that, the preparation process is >

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-12 Thread Uladzislau Rezki
On Thu, Dec 12, 2024 at 11:10:47AM -0800, Paul E. McKenney wrote: > On Thu, Dec 12, 2024 at 10:30:28AM -0800, Christoph Lameter (Ampere) wrote: > > On Thu, 12 Dec 2024, Uladzislau Rezki (Sony) wrote: > > > > > This is v2. It is based on the Linux 6.13-rc2. The first version is > > > here: > > > >

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-12 Thread Paul E. McKenney
On Thu, Dec 12, 2024 at 10:30:28AM -0800, Christoph Lameter (Ampere) wrote: > On Thu, 12 Dec 2024, Uladzislau Rezki (Sony) wrote: > > > This is v2. It is based on the Linux 6.13-rc2. The first version is > > here: > > I do not see any use of internal slab interfaces by this code. It seems to > be

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-12 Thread Uladzislau Rezki
On Thu, Dec 12, 2024 at 10:30:28AM -0800, Christoph Lameter (Ampere) wrote: > On Thu, 12 Dec 2024, Uladzislau Rezki (Sony) wrote: > > > This is v2. It is based on the Linux 6.13-rc2. The first version is > > here: > > I do not see any use of internal slab interfaces by this code. It seems to > be

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-12 Thread Christoph Lameter (Ampere)
On Thu, 12 Dec 2024, Uladzislau Rezki (Sony) wrote: > This is v2. It is based on the Linux 6.13-rc2. The first version is > here: I do not see any use of internal slab interfaces by this code. It seems to be using rcu internals though. So it would best be placed with the rcu code.

[PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2024-12-12 Thread Uladzislau Rezki (Sony)
Hello! This is v2. It is based on the Linux 6.13-rc2. The first version is here: https://lore.kernel.org/linux-mm/20241210164035.3391747-4-ure...@gmail.com/T/ The difference between v1 and v2 is that, the preparation process is done in original place instead and after that there is one final mov