linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: pierre.juhen@orange.fr
Cc: bugzilla-daemon@kernel.org, linux-mm@kvack.org
Subject: Re: [Bug 220605] New: Very slow access on HDD when a swap partition is used on this HDD on kernel 6.16
Date: Mon, 29 Sep 2025 16:07:27 -0700	[thread overview]
Message-ID: <20250929160727.a0119e93688378c570a3c550@linux-foundation.org> (raw)
In-Reply-To: <bug-220605-27@https.bugzilla.kernel.org/>

(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Sat, 27 Sep 2025 08:07:59 +0000 bugzilla-daemon@kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=220605
> 
>             Bug ID: 220605
>            Summary: Very slow access on HDD when a swap partition is used
>                     on this HDD on kernel 6.16
>            Product: Memory Management
>            Version: 2.5
>           Hardware: Intel
>                 OS: Linux
>             Status: NEW
>           Severity: high
>           Priority: P3
>          Component: Page Allocator
>           Assignee: akpm@linux-foundation.org
>           Reporter: pierre.juhen@orange.fr
>         Regression: No
> 
> Hello everybody,
> 
> I have a strange behavior on my system (Fedora 42 up to date => kernel 6.16.8).

You certainly do.  I wonder what we did to cause this.

I'll cc the MM development list.  Please prefer to report issues over
email this way - we don't use bugzilla and it's rather annoying that MM
bugzilla even exists.


> I have many disks but but my two swap partitions are on 2 HDD, sda and sdb,
> which are identical (SEAGATE Barracuda 2To). Swap partition on sda has a higher
> priority than the one on sdb.
> 
> I don't use zram.
> 
> When a swap partion is used, the disk on wich it seats is very slow.
> 
> $ sudo hdparm -t /dev/sda
> /dev/sda:
>  Timing buffered disk reads:  24 MB in  3.72 seconds =   6.46 MB/sec
> 
> $ sudo hdparm -t /dev/sdb
> /dev/sdb:
>  Timing buffered disk reads: 540 MB in  3.16 seconds = 170.85 MB/sec
> pierre@pierre:~$ 
> 
> Sometimes, speed gets down to less than 2 MB/s.
> 
> Lets turn swap off => swapoff -a 
> 
> $ sudo hdparm -t /dev/sdb
> /dev/sdb:
>  Timing buffered disk reads: 462 MB in  3.00 seconds = 153.75 MB/sec
> 
> $ sudo hdparm -t /dev/sda
> 
> /dev/sda:
>  Timing buffered disk reads: 474 MB in  3.00 seconds = 157.84 MB/sec
> pierre@pierre:~$ 
> 
> Now speed is normal.
> 
> Lets put swap on again => sudo swapon -a 
> 
> Speed is still normal :
> 
> $ sudo hdparm -t /dev/sda
> /dev/sda:
>  Timing buffered disk reads: 612 MB in  3.01 seconds = 203.56 MB/sec
> $ sudo hdparm -t /dev/sdb
> /dev/sdb:
>  Timing buffered disk reads: 570 MB in  3.00 seconds = 189.95 MB/sec
> pierre@pierre:~$ 
> 
> But swap is not used 
> 
> MiB Mem :  31952,0 total,  27091,7 free,   3057,6 used,   2343,0 buff/cache     
> MiB Swap:  36000,0 total,  36000,0 free,      0,0 used.  28894,4 avail Mem 
> 
> 
> So I suspect that, when the swap is used, there is some sort of lock that slows
> the whole disk that contains the swap partition that is being used.
> 
> Logically, the system becomes very slow.
> 
> There is nothing in the journal that seems related to this problem.
> 
> Since the virtual memory has been modified in 6.16, I suspect a nasty bug.
> 
> This affects 6.16.5 to 6.16.8.
> 
> This appeared "recently", probably with 6.16
> 
> Thanks,
> 
> Regards,
> 
> Pierre
> 
> -- 
> You may reply to this email to add a comment.
> 
> You are receiving this mail because:
> You are the assignee for the bug.


       reply	other threads:[~2025-09-29 23:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-220605-27@https.bugzilla.kernel.org/>
2025-09-29 23:07 ` Andrew Morton [this message]
2025-10-10 16:06   ` Pierre Juhen
2025-10-14  6:29     ` Kairui Song
2025-10-14  6:57       ` Kairui Song
2025-10-15 13:00   ` Pierre Juhen
2025-10-16  8:04   ` Pierre Juhen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250929160727.a0119e93688378c570a3c550@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=bugzilla-daemon@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=pierre.juhen@orange.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox