All of lore.kernel.org
 help / color / mirror / Atom feed
* Disk write deterioration in 5.x kernel
@ 2024-01-16  5:51 Gowtham
  2024-01-19  4:07 ` Gowtham
  0 siblings, 1 reply; 5+ messages in thread
From: Gowtham @ 2024-01-16  5:51 UTC (permalink / raw)
  To: linux-btrfs

Hi

We use BTRFS as a root filesystem and have recently upgraded our
servers from Ubuntu 16.04 to 20.04 (from 4.15.0-36 linux kernel to
5.4.0-137). Post that we see a deterioration in the disk write speeds

# dd if=/dev/zero of=/var/nvOS/log/dd.img bs=1G count=2 oflag=dsync;date
2+0 records in
2+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 2.72458 s, 788 MB/s

vs

# dd if=/dev/zero of=/var/nvOS/log/dd.img bs=1G count=2 oflag=dsync;date
2+0 records in
2+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 3.11866 s, 689 MB/s

# btrfs --version
btrfs-progs v5.4.1

BTRFS options
rw,noatime,compress=lzo,ssd,flushoncommit,space_cache,subvolid=269,subvol=

On average we see 10-15% slower speeds on 20.04 when compared with
16.04. And this data has been recorded from different systems and
different types of SSD.

Are there any known enhancements in BTRFS that can affect the write speeds?

Regards,
Gowtham

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

* Re: Disk write deterioration in 5.x kernel
  2024-01-16  5:51 Disk write deterioration in 5.x kernel Gowtham
@ 2024-01-19  4:07 ` Gowtham
  2024-01-19  6:58   ` Bagas Sanjaya
  0 siblings, 1 reply; 5+ messages in thread
From: Gowtham @ 2024-01-19  4:07 UTC (permalink / raw)
  To: linux-btrfs

Hi

Is there anything I can collect to debug what is the problem in the new kernel?

Regards,
Gowtham

On Tue, Jan 16, 2024 at 11:21 AM Gowtham <trgowtham123@gmail.com> wrote:
>
> Hi
>
> We use BTRFS as a root filesystem and have recently upgraded our
> servers from Ubuntu 16.04 to 20.04 (from 4.15.0-36 linux kernel to
> 5.4.0-137). Post that we see a deterioration in the disk write speeds
>
> # dd if=/dev/zero of=/var/nvOS/log/dd.img bs=1G count=2 oflag=dsync;date
> 2+0 records in
> 2+0 records out
> 2147483648 bytes (2.1 GB, 2.0 GiB) copied, 2.72458 s, 788 MB/s
>
> vs
>
> # dd if=/dev/zero of=/var/nvOS/log/dd.img bs=1G count=2 oflag=dsync;date
> 2+0 records in
> 2+0 records out
> 2147483648 bytes (2.1 GB, 2.0 GiB) copied, 3.11866 s, 689 MB/s
>
> # btrfs --version
> btrfs-progs v5.4.1
>
> BTRFS options
> rw,noatime,compress=lzo,ssd,flushoncommit,space_cache,subvolid=269,subvol=
>
> On average we see 10-15% slower speeds on 20.04 when compared with
> 16.04. And this data has been recorded from different systems and
> different types of SSD.
>
> Are there any known enhancements in BTRFS that can affect the write speeds?
>
> Regards,
> Gowtham

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

* Re: Disk write deterioration in 5.x kernel
  2024-01-19  4:07 ` Gowtham
@ 2024-01-19  6:58   ` Bagas Sanjaya
  2024-01-19  8:55     ` Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 1 reply; 5+ messages in thread
From: Bagas Sanjaya @ 2024-01-19  6:58 UTC (permalink / raw)
  To: Gowtham, Linux btrfs, Linux Regressions, Linux Kernel Mailing List
  Cc: Chris Mason, Josef Bacik, David Sterba

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

[also Cc: btrfs maintainers]

On Fri, Jan 19, 2024 at 09:37:50AM +0530, Gowtham wrote:
> Hi
> 
> Is there anything I can collect to debug what is the problem in the new kernel?
> 

Please don't top-post, reply inline with appropriate context instead.

Since you have regression w.r.t. old LTS kernel (v5.4.y), can you check
current mainline (v6.7) to confirm or deny the regression? If the
regression still happens there, can you perform bisection (see
Documentation/admin-guide/bug-bisect.rst in the kernel sources for details)?

Also, it is also helpful to list SSD devices that you've tested.

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: Disk write deterioration in 5.x kernel
  2024-01-19  6:58   ` Bagas Sanjaya
@ 2024-01-19  8:55     ` Linux regression tracking (Thorsten Leemhuis)
  2024-01-19 13:34       ` Bagas Sanjaya
  0 siblings, 1 reply; 5+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2024-01-19  8:55 UTC (permalink / raw)
  To: Bagas Sanjaya, Gowtham, Linux btrfs, Linux Regressions,
	Linux Kernel Mailing List
  Cc: Chris Mason, Josef Bacik, David Sterba

On 19.01.24 07:58, Bagas Sanjaya wrote:
> [also Cc: btrfs maintainers]
> 
> On Fri, Jan 19, 2024 at 09:37:50AM +0530, Gowtham wrote:
>>
>> Is there anything I can collect to debug what is the problem in the new kernel?

From the version numbers you provided it seems you are using vendor
kernels containing patches. You thus might want to ask the vendor for
support. Most upstream developers are unlikely to help and some even
complete ignore reports using such kernels.

You also need to try latest mainline and bisect, as Bagas already
pointed out, as that problem might be solved already and might have
nothing to do with Btrfs at all.

> Please don't top-post, reply inline with appropriate context instead.

Bagas, FWIW, I think telling users this is not helpful at all and maybe
counter productive; please consider to stop doing this.

Yes, kernel development uses inline replies -- hence it's a good idea to
point that out *to developers* that submit patches et. al.

But most people in the world uses top-posting; you and I might not like
that, but that's how it is. Telling non-developers to adjust their
behavior to our habits will often just come over as rude. It might
nevertheless be worth it. But it's best to leave that decision to the
developers that handle the report, as they have to interact way more
with the reporter that you or I will have to.

Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat)
--
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.

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

* Re: Disk write deterioration in 5.x kernel
  2024-01-19  8:55     ` Linux regression tracking (Thorsten Leemhuis)
@ 2024-01-19 13:34       ` Bagas Sanjaya
  0 siblings, 0 replies; 5+ messages in thread
From: Bagas Sanjaya @ 2024-01-19 13:34 UTC (permalink / raw)
  To: Linux regressions mailing list, Gowtham, Linux btrfs,
	Linux Kernel Mailing List
  Cc: Chris Mason, Josef Bacik, David Sterba

On 1/19/24 15:55, Linux regression tracking (Thorsten Leemhuis) wrote:
> On 19.01.24 07:58, Bagas Sanjaya wrote:
>> [also Cc: btrfs maintainers]
>>
>> On Fri, Jan 19, 2024 at 09:37:50AM +0530, Gowtham wrote:
>>>
>>> Is there anything I can collect to debug what is the problem in the new kernel?
> 
> From the version numbers you provided it seems you are using vendor
> kernels containing patches. You thus might want to ask the vendor for
> support. Most upstream developers are unlikely to help and some even
> complete ignore reports using such kernels.
> 
> You also need to try latest mainline and bisect, as Bagas already
> pointed out, as that problem might be solved already and might have
> nothing to do with Btrfs at all.
> 
>> Please don't top-post, reply inline with appropriate context instead.
> 
> Bagas, FWIW, I think telling users this is not helpful at all and maybe
> counter productive; please consider to stop doing this.
> 

I was writing the reminder like broonie did.

> Yes, kernel development uses inline replies -- hence it's a good idea to
> point that out *to developers* that submit patches et. al.
> 
> But most people in the world uses top-posting; you and I might not like
> that, but that's how it is. Telling non-developers to adjust their
> behavior to our habits will often just come over as rude. It might
> nevertheless be worth it. But it's best to leave that decision to the
> developers that handle the report, as they have to interact way more
> with the reporter that you or I will have to.
> 

OK, thanks!

-- 
An old man doll... just what I always wanted! - Clara


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

end of thread, other threads:[~2024-01-19 13:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16  5:51 Disk write deterioration in 5.x kernel Gowtham
2024-01-19  4:07 ` Gowtham
2024-01-19  6:58   ` Bagas Sanjaya
2024-01-19  8:55     ` Linux regression tracking (Thorsten Leemhuis)
2024-01-19 13:34       ` Bagas Sanjaya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.