lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABXGCsO58RJo23-vitp5+XY_nsq+xEA11LUC1-iwgBZYWQKPmw@mail.gmail.com>
Date: Thu, 4 Jul 2024 15:50:22 +0500
From: Mikhail Gavrilov <mikhail.v.gavrilov@...il.com>
To: Filipe Manana <fdmanana@...nel.org>
Cc: Andrea Gelmini <andrea.gelmini@...il.com>, 
	Linux List Kernel Mailing <linux-kernel@...r.kernel.org>, 
	Linux regressions mailing list <regressions@...ts.linux.dev>, Btrfs BTRFS <linux-btrfs@...r.kernel.org>, 
	dsterba@...e.com, josef@...icpanda.com
Subject: Re: 6.10/regression/bisected - after f1d97e769152 I spotted increased
 execution time of the kswapd0 process and symptoms as if there is not enough memory

On Thu, Jul 4, 2024 at 2:57 PM Filipe Manana <fdmanana@...nel.org> wrote:
>
> I wonder if you have bpftrace installed and can run the following
> script while doing the test:
>
> $ cat bpftrace-em-shrinker.sh
> #!/usr/bin/bpftrace
>
> tracepoint:btrfs:btrfs_extent_map_shrinker_scan_enter
> {
> time("%H:%M:%S ");
> @start_em_scan[tid] = nsecs;
> printf("%s enter shrinker scan %ld nr %ld root %llu ino %llu\n",
>        comm, args->nr_to_scan, args->nr, args->last_root_id, args->last_ino);
> }
>
> tracepoint:btrfs:btrfs_extent_map_shrinker_scan_exit
> /@...rt_em_scan[tid]/
> {
> time("%H:%M:%S ");
> $dur = (nsecs - @start_em_scan[tid]) / 1000;
> delete(@start_em_scan[tid]);
> printf("%s exit shrinker drop %ld nr %ld root %llu ino %llu | %llu us\n",
>        comm, args->nr_dropped, args->nr, args->last_root_id,
> args->last_ino, $dur);
> }
>
> END
> {
> clear(@start_em_scan);
> }
>
> The run it like:
>
> $ ./bpftrace-em-shrinker.sh 2>&1 | tee em_shrinker_log.txt
>
> And provide the log file.

I applied all four patches and still not seen any improvements:
6.10.0-0.rc6.53.fc41.x86_64+debug with patch (1-4)
up  1:02
root         269 27.9  0.0      0     0 ?        R    10:00  17:29 [kswapd0]
up  2:00
root         269 43.7  0.0      0     0 ?        R    10:00  52:47 [kswapd0]
up  3:00
root         269 40.5  0.0      0     0 ?        R    10:00  73:22 [kswapd0]
up  4:00
root         269 43.9  0.0      0     0 ?        R    10:00 105:30 [kswapd0]
up  5:00
root         269 48.7  0.0      0     0 ?        R    10:00 146:22 [kswapd0]

Also, I attached em_shrinker_log.txt in the archive.

-- 
Best Regards,
Mike Gavrilov.

Download attachment "em_shrinker_log.zip" of type "application/zip" (1623 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ