Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-24 Thread Barry Song
On Mon, Jun 24, 2024 at 7:01 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > On Mon, Jun 24, 2024 at 3:44 PM Huang, Ying wrote: > >> > >> Barry Song <21cn...@gmail.com> writes: > >> > >> > On Fri, Jun 21, 2024 at 9:24 PM Huang, Ying wrote: > >> >> > >> >> Barry Song

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-24 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > On Mon, Jun 24, 2024 at 3:44 PM Huang, Ying wrote: >> >> Barry Song <21cn...@gmail.com> writes: >> >> > On Fri, Jun 21, 2024 at 9:24 PM Huang, Ying wrote: >> >> >> >> Barry Song <21cn...@gmail.com> writes: >> >> >> >> > On Fri, Jun 21, 2024 at 7:25 PM

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-23 Thread Barry Song
On Mon, Jun 24, 2024 at 3:44 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > On Fri, Jun 21, 2024 at 9:24 PM Huang, Ying wrote: > >> > >> Barry Song <21cn...@gmail.com> writes: > >> > >> > On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts > >> > wrote: > >> >> > >> >> On

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-23 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > On Fri, Jun 21, 2024 at 9:24 PM Huang, Ying wrote: >> >> Barry Song <21cn...@gmail.com> writes: >> >> > On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts wrote: >> >> >> >> On 20/06/2024 12:34, David Hildenbrand wrote: >> >> > On 20.06.24 11:04, Ryan Roberts

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Barry Song
On Fri, Jun 21, 2024 at 4:50 PM Chris Li wrote: > > On Fri, Jun 21, 2024 at 12:47 AM Barry Song <21cn...@gmail.com> wrote: > > > > On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts wrote: > > > > > > On 20/06/2024 12:34, David Hildenbrand wrote: > > > > On 20.06.24 11:04, Ryan Roberts wrote: > > > >>

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Barry Song
On Fri, Jun 21, 2024 at 9:24 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts wrote: > >> > >> On 20/06/2024 12:34, David Hildenbrand wrote: > >> > On 20.06.24 11:04, Ryan Roberts wrote: > >> >> On 20/06/2024 01:26, Barry Song

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts wrote: >> >> On 20/06/2024 12:34, David Hildenbrand wrote: >> > On 20.06.24 11:04, Ryan Roberts wrote: >> >> On 20/06/2024 01:26, Barry Song wrote: >> >>> From: Barry Song >> >>> >> >>> Both Ryan and Chris

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread David Hildenbrand
On 21.06.24 09:25, Ryan Roberts wrote: On 20/06/2024 12:34, David Hildenbrand wrote: On 20.06.24 11:04, Ryan Roberts wrote: On 20/06/2024 01:26, Barry Song wrote: From: Barry Song Both Ryan and Chris have been utilizing the small test program to aid in debugging and identifying issues with

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Chris Li
On Fri, Jun 21, 2024 at 12:47 AM Barry Song <21cn...@gmail.com> wrote: > > On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts wrote: > > > > On 20/06/2024 12:34, David Hildenbrand wrote: > > > On 20.06.24 11:04, Ryan Roberts wrote: > > >> On 20/06/2024 01:26, Barry Song wrote: > > >>> From: Barry Song

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Ryan Roberts
On 21/06/2024 08:47, Barry Song wrote: > On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts wrote: >> >> On 20/06/2024 12:34, David Hildenbrand wrote: >>> On 20.06.24 11:04, Ryan Roberts wrote: On 20/06/2024 01:26, Barry Song wrote: > From: Barry Song > > Both Ryan and Chris have been

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Barry Song
On Fri, Jun 21, 2024 at 7:25 PM Ryan Roberts wrote: > > On 20/06/2024 12:34, David Hildenbrand wrote: > > On 20.06.24 11:04, Ryan Roberts wrote: > >> On 20/06/2024 01:26, Barry Song wrote: > >>> From: Barry Song > >>> > >>> Both Ryan and Chris have been utilizing the small test program to aid >

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Ryan Roberts
On 21/06/2024 00:34, Chris Li wrote: >> + * thp_swap_allocator_test >> + * >> + * The purpose of this test program is helping check if THP swpout >> + * can correctly get swap slots to swap out as a whole instead of >> + * being split. It randomly releases swap entries through madvise >> + *

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-21 Thread Ryan Roberts
On 20/06/2024 12:34, David Hildenbrand wrote: > On 20.06.24 11:04, Ryan Roberts wrote: >> On 20/06/2024 01:26, Barry Song wrote: >>> From: Barry Song >>> >>> Both Ryan and Chris have been utilizing the small test program to aid >>> in debugging and identifying issues with swap entry allocation.

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Huang, Ying
David Hildenbrand writes: > On 20.06.24 11:04, Ryan Roberts wrote: >> On 20/06/2024 01:26, Barry Song wrote: >>> From: Barry Song >>> >>> Both Ryan and Chris have been utilizing the small test program to aid >>> in debugging and identifying issues with swap entry allocation. While >>> a real or

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Chris Li
Hi Barry, Thanks for the wonderful test program. I have also used other swap test programs as well. A lot of those tests are harder to setup up and run. This test is very quick and simple to run. It can test some hard to hit corner cases for me. I am able to reproduce the warning and the

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread David Hildenbrand
On 20.06.24 11:04, Ryan Roberts wrote: On 20/06/2024 01:26, Barry Song wrote: From: Barry Song Both Ryan and Chris have been utilizing the small test program to aid in debugging and identifying issues with swap entry allocation. While a real or intricate workload might be more suitable for

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Barry Song
On Thu, Jun 20, 2024 at 8:28 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > On Thu, Jun 20, 2024 at 8:01 PM Huang, Ying wrote: > >> > >> Barry Song <21cn...@gmail.com> writes: > >> > >> > On Thu, Jun 20, 2024 at 6:36 PM Huang, Ying wrote: > >> >> > >> >> Barry Song

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Ryan Roberts
On 20/06/2024 01:26, Barry Song wrote: > From: Barry Song > > Both Ryan and Chris have been utilizing the small test program to aid > in debugging and identifying issues with swap entry allocation. While > a real or intricate workload might be more suitable for assessing the > correctness and

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > On Thu, Jun 20, 2024 at 8:01 PM Huang, Ying wrote: >> >> Barry Song <21cn...@gmail.com> writes: >> >> > On Thu, Jun 20, 2024 at 6:36 PM Huang, Ying wrote: >> >> >> >> Barry Song <21cn...@gmail.com> writes: >> >> >> >> > On Thu, Jun 20, 2024 at 5:22 PM

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Barry Song
On Thu, Jun 20, 2024 at 8:01 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > On Thu, Jun 20, 2024 at 6:36 PM Huang, Ying wrote: > >> > >> Barry Song <21cn...@gmail.com> writes: > >> > >> > On Thu, Jun 20, 2024 at 5:22 PM Huang, Ying wrote: > >> >> > >> >> Barry Song

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > On Thu, Jun 20, 2024 at 6:36 PM Huang, Ying wrote: >> >> Barry Song <21cn...@gmail.com> writes: >> >> > On Thu, Jun 20, 2024 at 5:22 PM Huang, Ying wrote: >> >> >> >> Barry Song <21cn...@gmail.com> writes: >> >> >> >> > On Thu, Jun 20, 2024 at 1:55 PM

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Huang, Ying
David Hildenbrand writes: > On 20.06.24 03:53, Huang, Ying wrote: >> Barry Song <21cn...@gmail.com> writes: >> >>> From: Barry Song >>> >>> Both Ryan and Chris have been utilizing the small test program to aid >>> in debugging and identifying issues with swap entry allocation. While >>> a real

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Barry Song
On Thu, Jun 20, 2024 at 6:36 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > On Thu, Jun 20, 2024 at 5:22 PM Huang, Ying wrote: > >> > >> Barry Song <21cn...@gmail.com> writes: > >> > >> > On Thu, Jun 20, 2024 at 1:55 PM Huang, Ying wrote: > >> >> > >> >> Barry Song

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread David Hildenbrand
On 20.06.24 03:53, Huang, Ying wrote: Barry Song <21cn...@gmail.com> writes: From: Barry Song Both Ryan and Chris have been utilizing the small test program to aid in debugging and identifying issues with swap entry allocation. While a real or intricate workload might be more suitable for

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > On Thu, Jun 20, 2024 at 5:22 PM Huang, Ying wrote: >> >> Barry Song <21cn...@gmail.com> writes: >> >> > On Thu, Jun 20, 2024 at 1:55 PM Huang, Ying wrote: >> >> >> >> Barry Song <21cn...@gmail.com> writes: >> >> >> >> > From: Barry Song >> >> > >> >> >

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-20 Thread Barry Song
On Thu, Jun 20, 2024 at 5:22 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > On Thu, Jun 20, 2024 at 1:55 PM Huang, Ying wrote: > >> > >> Barry Song <21cn...@gmail.com> writes: > >> > >> > From: Barry Song > >> > > >> > Both Ryan and Chris have been utilizing the small

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-19 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > On Thu, Jun 20, 2024 at 1:55 PM Huang, Ying wrote: >> >> Barry Song <21cn...@gmail.com> writes: >> >> > From: Barry Song >> > >> > Both Ryan and Chris have been utilizing the small test program to aid >> > in debugging and identifying issues with swap

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-19 Thread Barry Song
On Thu, Jun 20, 2024 at 1:55 PM Huang, Ying wrote: > > Barry Song <21cn...@gmail.com> writes: > > > From: Barry Song > > > > Both Ryan and Chris have been utilizing the small test program to aid > > in debugging and identifying issues with swap entry allocation. While > > a real or intricate

Re: [PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-19 Thread Huang, Ying
Barry Song <21cn...@gmail.com> writes: > From: Barry Song > > Both Ryan and Chris have been utilizing the small test program to aid > in debugging and identifying issues with swap entry allocation. While > a real or intricate workload might be more suitable for assessing the > correctness and

[PATCH] selftests/mm: Introduce a test program to assess swap entry allocation for thp_swapout

2024-06-19 Thread Barry Song
From: Barry Song Both Ryan and Chris have been utilizing the small test program to aid in debugging and identifying issues with swap entry allocation. While a real or intricate workload might be more suitable for assessing the correctness and effectiveness of the swap allocation policy, a small