[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1881c379-d752-6850-1a1a-fd217eb4a661@canonical.com>
Date: Fri, 2 Jul 2021 16:48:32 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
To: Paolo Pisati <paolo.pisati@...onical.com>,
Shuah Khan <shuah@...nel.org>
Cc: linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] selftests: memory-hotplug: avoid spamming logs with
dump_page(), ratio limit hot-remove error test
On 30/06/2021 16:57, Paolo Pisati wrote:
> While the offline memory test obey ratio limit, the same test with error
> injection does not and tries to offline all the hotpluggable memory, spamming
> system logs with hundreds of thousands of dump_page() entries, slowing system
> down (to the point the test itself timeout and gets terminated) and excessive fs
> occupation:
>
> ...
> [ 9784.393354] page:c00c0000007d1b40 refcount:3 mapcount:0 mapping:c0000001fc03e950 index:0xe7b
> [ 9784.393355] def_blk_aops
> [ 9784.393356] flags: 0x3ffff800002062(referenced|active|workingset|private)
> [ 9784.393358] raw: 003ffff800002062 c0000001b9343a68 c0000001b9343a68 c0000001fc03e950
> [ 9784.393359] raw: 0000000000000e7b c000000006607b18 00000003ffffffff c00000000490d000
> [ 9784.393359] page dumped because: migration failure
> [ 9784.393360] page->mem_cgroup:c00000000490d000
> [ 9784.393416] migrating pfn 1f46d failed ret:1
> ...
>
> $ grep "page dumped because: migration failure" /var/log/kern.log | wc -l
> 2405558
>
> $ ls -la /var/log/kern.log
> -rw-r----- 1 syslog adm 2256109539 Jun 30 14:19 /var/log/kern.log
Makes sense to me and looks better choice than to disable the test
completely (as other choice...).
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
>
> Signed-off-by: Paolo Pisati <paolo.pisati@...onical.com>
> ---
> tools/testing/selftests/memory-hotplug/mem-on-off-test.sh | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
Best regards,
Krzysztof
Powered by blists - more mailing lists