public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 6.10/regression/bisected - after f1d97e769152 I spotted increased execution time of the kswapd0 process and symptoms as if there is not enough memory
@ 2024-06-25 20:56 Mikhail Gavrilov
  2024-06-26 10:48 ` Filipe Manana
  0 siblings, 1 reply; 56+ messages in thread
From: Mikhail Gavrilov @ 2024-06-25 20:56 UTC (permalink / raw)
  To: Linux List Kernel Mailing, Linux regressions mailing list,
	Btrfs BTRFS, fdmanana, dsterba, josef

[-- Attachment #1: Type: text/plain, Size: 2612 bytes --]

Hi,
after f1d97e769152 I spotted increased execution time of the kswapd0
process and symptoms as if there is not enough memory.
Very often I see that kswapd0 consumes 100% CPU [1].
Before f1d97e769152 after an hour kswapd0 is working ~3:51 and after
three hours ~10:13 time.
After f1d97e769152 kswapd0 time increased to ~25:48 after the first
hour and three hours it hit 71:01 time.
So execution time has increased by 6-7 times.

f1d97e76915285013037c487d9513ab763005286 is the first bad commit
commit f1d97e76915285013037c487d9513ab763005286 (HEAD)
Author: Filipe Manana <fdmanana@suse.com>
Date:   Fri Mar 22 18:02:59 2024 +0000

    btrfs: add a global per cpu counter to track number of used extent maps

    Add a per cpu counter that tracks the total number of extent maps that are
    in extent trees of inodes that belong to fs trees. This is going to be
    used in an upcoming change that adds a shrinker for extent maps. Only
    extent maps for fs trees are considered, because for special trees such as
    the data relocation tree we don't want to evict their extent maps which
    are critical for the relocation to work, and since those are limited, it's
    not a concern to have them in memory during the relocation of a block
    group. Another case are extent maps for free space cache inodes, which
    must always remain in memory, but those are limited (there's only one per
    free space cache inode, which means one per block group).

    Reviewed-by: Josef Bacik <josef@toxicpanda.com>
    Signed-off-by: Filipe Manana <fdmanana@suse.com>
    Reviewed-by: David Sterba <dsterba@suse.com>
    Signed-off-by: David Sterba <dsterba@suse.com>

 fs/btrfs/disk-io.c    |  9 +++++++++
 fs/btrfs/extent_map.c | 17 +++++++++++++++++
 fs/btrfs/fs.h         |  2 ++
 3 files changed, 28 insertions(+)

Unfortunately I can't check the revert commit f1d97e769152 because of conflicts.

> git reset --hard v6.10-rc1
HEAD is now at 1613e604df0c Linux 6.10-rc1

> git revert -n f1d97e76915285013037c487d9513ab763005286
Auto-merging fs/btrfs/disk-io.c
Auto-merging fs/btrfs/extent_map.c
Auto-merging fs/btrfs/fs.h
CONFLICT (content): Merge conflict in fs/btrfs/fs.h
error: could not revert f1d97e769152... btrfs: add a global per cpu
counter to track number of used extent maps

However I double checked every bisect step and I am confident in the
correctness of the result.

I also attach here a full kernel log and build config.

My hardware specs: https://linux-hardware.org/?probe=d377acdb9e

Filipe can you look into this please?

[1] https://postimg.cc/Xrn6qfxh

-- 
Best Regards,
Mike Gavrilov.

[-- Attachment #2: .config.zip --]
[-- Type: application/zip, Size: 66495 bytes --]

[-- Attachment #3: dmesg.zip --]
[-- Type: application/zip, Size: 52548 bytes --]

^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2024-09-26 13:45 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25 20:56 6.10/regression/bisected - after f1d97e769152 I spotted increased execution time of the kswapd0 process and symptoms as if there is not enough memory Mikhail Gavrilov
2024-06-26 10:48 ` Filipe Manana
2024-06-26 14:16   ` Mikhail Gavrilov
2024-07-01  9:30     ` Filipe Manana
2024-07-02 14:13       ` Mikhail Gavrilov
2024-07-02 17:22         ` Filipe Manana
2024-07-02 19:46           ` Chris Murphy
2024-07-03 10:32             ` Filipe Manana
2024-07-03 10:31           ` Filipe Manana
2024-07-03 10:44             ` Filipe Manana
2024-07-03 21:07               ` Andrea Gelmini
2024-07-04  9:48                 ` Filipe Manana
2024-07-04  9:56                   ` Filipe Manana
2024-07-04 10:50                     ` Mikhail Gavrilov
2024-07-04 13:33                     ` Andrea Gelmini
2024-07-04 13:47                       ` Andrea Gelmini
2024-07-04 14:48                         ` Andrea Gelmini
2024-07-04 17:25                           ` Filipe Manana
2024-07-04 17:31                             ` Filipe Manana
2024-07-04 22:15                             ` Andrea Gelmini
2024-07-04 22:23                               ` Andrea Gelmini
2024-07-05 11:00                               ` Filipe Manana
2024-07-05  6:30                             ` Andrea Gelmini
2024-07-05 11:06                               ` Filipe Manana
2024-07-05 18:36                             ` Mikhail Gavrilov
2024-07-05 23:09                               ` Filipe Manana
2024-07-06  0:11                             ` Andrea Gelmini
2024-07-06 12:07                               ` Andrea Gelmini
2024-07-06 17:37                                 ` Filipe Manana
2024-07-07  9:41                                   ` Filipe Manana
2024-07-07 10:15                                     ` Andrea Gelmini
2024-07-07 10:28                                       ` Filipe Manana
2024-07-07 11:15                                         ` Andrea Gelmini
2024-07-07 12:10                                           ` Filipe Manana
2024-07-07 11:35                                   ` Mikhail Gavrilov
2024-07-07 12:15                                     ` Filipe Manana
2024-07-07 19:16                                       ` Mikhail Gavrilov
2024-07-08 14:15                                         ` Filipe Manana
2024-07-10  9:24                                           ` Mikhail Gavrilov
2024-07-10 10:53                                             ` Filipe Manana
2024-08-11  8:08                                               ` Jannik Glückert
2024-08-11 15:33                                                 ` Filipe Manana
2024-08-14 21:24                                                   ` Jannik Glückert
2024-08-15 22:21                                                   ` intelfx
2024-08-15 23:17                                                     ` intelfx
2024-08-16  0:02                                                       ` David Sterba
2024-08-16  6:42                                                       ` Andrea Gelmini
2024-08-16  6:47                                                         ` Ivan Shapovalov
2024-08-16  7:45                                                           ` Qu Wenruo
2024-08-16 10:58                                                       ` Filipe Manana
2024-08-16 11:16                                                         ` Ivan Shapovalov
2024-09-26 13:45                                                           ` Filipe Manana
2024-07-04 11:18                   ` Andrea Gelmini
2024-07-04 16:38                     ` Filipe Manana
2024-07-04 22:32                       ` Qu Wenruo
2024-07-05  6:18                         ` Andrea Gelmini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox