Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

: is not an identifier


computers / alt.os.linux.ubuntu / Re: btrfs seems extremely slow on kernel 5.15

SubjectAuthor
* btrfs seems extremely slow on kernel 5.15Paulo da Silva
+* Re: btrfs seems extremely slow on kernel 5.15J.O. Aho
|+* Re: btrfs seems extremely slow on kernel 5.15Andrei Z.
||`* Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
|| `* Re: btrfs seems extremely slow on kernel 5.15Andrei Z.
||  `* Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
||   +* Re: btrfs seems extremely slow on kernel 5.15Paul
||   |`- Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
||   `* Re: btrfs seems extremely slow on kernel 5.15J.O. Aho
||    `* Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
||     `* Re: btrfs seems extremely slow on kernel 5.15Mark Bourne
||      `- Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
|`* Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
| `- Re: btrfs seems extremely slow on kernel 5.15J.O. Aho
+* Re: btrfs seems extremely slow on kernel 5.15Paul
|`- Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
+* Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
|`* Re: btrfs seems extremely slow on kernel 5.15Andrei Z.
| `* Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
|  `* Re: btrfs seems extremely slow on kernel 5.15Andrei Z.
|   `- Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva
`- Re: btrfs seems extremely slow on kernel 5.15Paulo da Silva

1
btrfs seems extremely slow on kernel 5.15

<tanu95$1b5v$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2302&group=alt.os.linux.ubuntu#2302

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 03:16:00 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tanu95$1b5v$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="44223"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Paulo da Silva - Thu, 14 Jul 2022 02:16 UTC

Hi!

I have a USB external backup volume with btrfs.
The backup script is a simple cp -al <prev> <next> followed by a rsync
to update <next>.

The cp -al took 10-20 mins. in kernel 5.13 and before that.
Now, with 5.15, without any changes, it is taking a few hours!!

NOTES:
I have noticed that before, during the cp -al there were outputs to the
memory cache during which we could "visit" the drive followed by periods
of flushing where a simple attempt to change to another dir took a while
(sometimes ~1 min).

Now, I can always navigate inside the drive without any delay when cp
-al is in course! It seems like there is no memory cache although the
memory cache still grows and shrinks.

BTW, my mount command is
mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd

There is an encryption layer below the fs.

Thanks for any comments.
Paulo

Re: btrfs seems extremely slow on kernel 5.15

<jja9r1Fb709U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2303&group=alt.os.linux.ubuntu#2303

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: user@example.net (J.O. Aho)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 12:35:13 +0200
Lines: 43
Message-ID: <jja9r1Fb709U1@mid.individual.net>
References: <tanu95$1b5v$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net PycgehxKi2pN98YS9QCehQNBM3oIBtYIBEaMxumAKpZFdnCdMI
Cancel-Lock: sha1:nr/p+lmXTMbuJ4IUAkogXheWH9A=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Content-Language: en-US-large
In-Reply-To: <tanu95$1b5v$1@gioia.aioe.org>
 by: J.O. Aho - Thu, 14 Jul 2022 10:35 UTC

On 14/07/2022 04.16, Paulo da Silva wrote:
> Hi!
>
> I have a USB external backup volume with btrfs.
> The backup script is a simple cp -al <prev> <next> followed by a rsync
> to update <next>.

I prefer to use snapshots and then send/receive, this tend to take a lot
shorter time than cp or rsync as you will only send the changes and
nothing more.

> The cp -al took 10-20 mins. in kernel 5.13 and before that.
> Now, with 5.15, without any changes, it is taking a few hours!!

I don't remember which kernel 5 version had a change in local cache,
which could in some cases cause things to work differently.

Have you tested with other file system on a similar usb device? This to
figure out if it's related to btrfs or usb.

There are speed optimization in 5.16 regarding btrfs, so an upgrade
could be good.

> Now, I can always navigate inside the drive without any delay when cp
> -al is in course! It seems like there is no memory cache although the
> memory cache still grows and shrinks.
>
> BTW, my mount command is
> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd > There is an encryption layer below the fs.

Could be this that causing the problem and not btrfs itself.

I would recommend you check up changes in the crypto layer too.

Also it could be a combination of crypto + btrfs, but should in such
case been resolved in later kernel versions.

--

//Aho

Re: btrfs seems extremely slow on kernel 5.15

<taot18$2mn2a$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2304&group=alt.os.linux.ubuntu#2304

  copy link   Newsgroups: alt.os.linux alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.os.linux,alt.os.linux.ubuntu
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 07:00:54 -0400
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <taot18$2mn2a$1@dont-email.me>
References: <tanu95$1b5v$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Jul 2022 11:00:56 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="25cdd1c342aa79127ab185fbe8783054";
logging-data="2841674"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/y7RjXfP+uD7KjfoxU3Di+vnE+kec5sf8="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:J9OzKJ0LLkp0EFDzRnatBI+Ai7I=
Content-Language: en-US
In-Reply-To: <tanu95$1b5v$1@gioia.aioe.org>
 by: Paul - Thu, 14 Jul 2022 11:00 UTC

On 7/13/2022 10:16 PM, Paulo da Silva wrote:
> Hi!
>
> I have a USB external backup volume with btrfs.
> The backup script is a simple cp -al <prev> <next> followed by a rsync to update <next>.
>
> The cp -al took 10-20 mins. in kernel 5.13 and before that.
> Now, with 5.15, without any changes, it is taking a few hours!!
>
> NOTES:
> I have noticed that before, during the cp -al there were outputs to the memory cache during which we could "visit" the drive followed by periods of flushing where a simple attempt to change to another dir took a while (sometimes ~1 min).
>
> Now, I can always navigate inside the drive without any delay when cp -al is in course! It seems like there is no memory cache although the memory cache still grows and shrinks.
>
> BTW, my mount command is
> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd
>
> There is an encryption layer below the fs.
>
> Thanks for any comments.
> Paulo
>

What happens if you turn off the encryption ?

I would want to study the component parts of
the stack, to see if they behave decently by
themselves.

Even if you temporarily had two disk drives,
one set up with the full stack of stuff,
the second drive with the encryption layer
nullified, that may allow you to bench the
two and see how much worse one is than the other.

Paul

Re: btrfs seems extremely slow on kernel 5.15

<tapac7$qen$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2305&group=alt.os.linux.ubuntu#2305

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!tTvpBDluw2WdfXtdHT5Hcg.user.46.165.242.75.POSTED!not-for-mail
From: no-email@invalid.invalid (Andrei Z.)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 17:48:38 +0300
Organization: Aioe.org NNTP Server
Message-ID: <tapac7$qen$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="27095"; posting-host="tTvpBDluw2WdfXtdHT5Hcg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andrei Z. - Thu, 14 Jul 2022 14:48 UTC

J.O. Aho wrote:
>
> On 14/07/2022 04.16, Paulo da Silva wrote:
>> Hi!
>>
>> I have a USB external backup volume with btrfs.
>> The backup script is a simple cp -al <prev> <next> followed by a rsync
>> to update <next>.
>
> I prefer to use snapshots and then send/receive, this tend to take a lot
> shorter time than cp or rsync as you will only send the changes and
> nothing more.
>
>
>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>> Now, with 5.15, without any changes, it is taking a few hours!!
>
> I don't remember which kernel 5 version had a change in local cache,
> which could in some cases cause things to work differently.
>
> Have you tested with other file system on a similar usb device? This to
> figure out if it's related to btrfs or usb.
>
> There are speed optimization in 5.16 regarding btrfs, so an upgrade
> could be good.
>
>
>> Now, I can always navigate inside the drive without any delay when cp
>> -al is in course! It seems like there is no memory cache although the
>> memory cache still grows and shrinks.
>>
>> BTW, my mount command is
>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd > There is
>> an encryption layer below the fs.
>
> Could be this that causing the problem and not btrfs itself.
>
> I would recommend you check up changes in the crypto layer too.
>
> Also it could be a combination of crypto + btrfs, but should in such
> case been resolved in later kernel versions.
>
Latency issue with encrypted and compressed BTRFS filesystem - Stack
Overflow
https://stackoverflow.com/questions/69962997/latency-issue-with-encrypted-and-compressed-btrfs-filesystem/72566823

"I have switched to Fedora 36 without modifying the default hard disk
auto configuration and BTRFS is working like a charm. Very very fast. So
I might have missed something on my configuration" – Jun 11

Fedora 36 - Kernel 5.17

Re: btrfs seems extremely slow on kernel 5.15

<tapghs$1li1$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2306&group=alt.os.linux.ubuntu#2306

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 17:34:04 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tapghs$1li1$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="54849"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Paulo da Silva - Thu, 14 Jul 2022 16:34 UTC

Às 11:35 de 14/07/22, J.O. Aho escreveu:
>
> On 14/07/2022 04.16, Paulo da Silva wrote:
>> Hi!
>>
>> I have a USB external backup volume with btrfs.
>> The backup script is a simple cp -al <prev> <next> followed by a rsync
>> to update <next>.
>
> I prefer to use snapshots and then send/receive, this tend to take a lot
> shorter time than cp or rsync as you will only send the changes and
> nothing more.
The script I wrote also allow for snapshots.
But I tend to have a lot of them for copies I need to last for a year,
for ex.
And for a big number of snapshots the fs tend to get problems, at least
for kernels until 5.13.
In my work disk I had "btrfs check" issues which disappeared after
deleting all snapshots.

>
>
>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>> Now, with 5.15, without any changes, it is taking a few hours!!
>
> I don't remember which kernel 5 version had a change in local cache,
> which could in some cases cause things to work differently.
>
> Have you tested with other file system on a similar usb device? This to
> figure out if it's related to btrfs or usb.
I don't have a spare USB to test. These are 4TB disks and are all being
used!
....

> I would recommend you check up changes in the crypto layer too.
>
> Also it could be a combination of crypto + btrfs, but should in such
> case been resolved in later kernel versions.
Are there any parameters I can play with in the crypto layer?

Re: btrfs seems extremely slow on kernel 5.15

<taphgo$2sm$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2307&group=alt.os.linux.ubuntu#2307

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 17:50:31 +0100
Organization: Aioe.org NNTP Server
Message-ID: <taphgo$2sm$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="2966"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Paulo da Silva - Thu, 14 Jul 2022 16:50 UTC

Às 15:48 de 14/07/22, Andrei Z. escreveu:
> J.O. Aho wrote:
>>
>> On 14/07/2022 04.16, Paulo da Silva wrote:
>>> Hi!
>>>
>>> I have a USB external backup volume with btrfs.
>>> The backup script is a simple cp -al <prev> <next> followed by a
>>> rsync to update <next>.
>>
>> I prefer to use snapshots and then send/receive, this tend to take a
>> lot shorter time than cp or rsync as you will only send the changes
>> and nothing more.
>>
>>
>>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>>> Now, with 5.15, without any changes, it is taking a few hours!!
>>
>> I don't remember which kernel 5 version had a change in local cache,
>> which could in some cases cause things to work differently.
>>
>> Have you tested with other file system on a similar usb device? This
>> to figure out if it's related to btrfs or usb.
>>
>> There are speed optimization in 5.16 regarding btrfs, so an upgrade
>> could be good.
>>
>>
>>> Now, I can always navigate inside the drive without any delay when cp
>>> -al is in course! It seems like there is no memory cache although the
>>> memory cache still grows and shrinks.
>>>
>>> BTW, my mount command is
>>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd > There is
>>> an encryption layer below the fs.
>>
>> Could be this that causing the problem and not btrfs itself.
>>
>> I would recommend you check up changes in the crypto layer too.
>>
>> Also it could be a combination of crypto + btrfs, but should in such
>> case been resolved in later kernel versions.
>>
> Latency issue with encrypted and compressed BTRFS filesystem - Stack
> Overflow
> https://stackoverflow.com/questions/69962997/latency-issue-with-encrypted-and-compressed-btrfs-filesystem/72566823
This not a CPU overhead. I have a very powerfull CPU (5GHz) 8 core.

Currently cp -al copies a little bit more than 1000 files per minute.
This is too low.
As much as I know, it only have to make an enter in the tree of file
names and increment a counter per file. Caching, this should take very
short times.
As I said, now the drive is always ready for navigation inside it!
Before, sometimes I needed to wait a minute or perhaps more when it is
in the flushing process (I have 32GB RAM). So, there was a change in the
way memory cache is handled by btrfs now.

Re: btrfs seems extremely slow on kernel 5.15

<taphmg$53s$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2308&group=alt.os.linux.ubuntu#2308

  copy link   Newsgroups: alt.os.linux alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux,alt.os.linux.ubuntu
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 17:53:36 +0100
Organization: Aioe.org NNTP Server
Message-ID: <taphmg$53s$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <taot18$2mn2a$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="5244"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Paulo da Silva - Thu, 14 Jul 2022 16:53 UTC

Às 12:00 de 14/07/22, Paul escreveu:
> On 7/13/2022 10:16 PM, Paulo da Silva wrote:
>> Hi!
>>
>> I have a USB external backup volume with btrfs.
>> The backup script is a simple cp -al <prev> <next> followed by a rsync
>> to update <next>.
>>
>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>> Now, with 5.15, without any changes, it is taking a few hours!!
>>
>> NOTES:
>> I have noticed that before, during the cp -al there were outputs to
>> the memory cache during which we could "visit" the drive followed by
>> periods of flushing where a simple attempt to change to another dir
>> took a while (sometimes ~1 min).
>>
>> Now, I can always navigate inside the drive without any delay when cp
>> -al is in course! It seems like there is no memory cache although the
>> memory cache still grows and shrinks.
>>
>> BTW, my mount command is
>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd
>>
>> There is an encryption layer below the fs.
>>
>> Thanks for any comments.
>> Paulo
>>
>
> What happens if you turn off the encryption ?
>
> I would want to study the component parts of
> the stack, to see if they behave decently by
> themselves.
>
> Even if you temporarily had two disk drives,
> one set up with the full stack of stuff,
> the second drive with the encryption layer
> nullified, that may allow you to bench the
> two and see how much worse one is than the other.
Unfortunately I cannot test this. I needed a spare similar drive which I
don't have now.

Re: btrfs seems extremely slow on kernel 5.15

<jjb12rFerirU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2309&group=alt.os.linux.ubuntu#2309

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: user@example.net (J.O. Aho)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 19:11:54 +0200
Lines: 20
Message-ID: <jjb12rFerirU1@mid.individual.net>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapghs$1li1$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net WbjtnaGCa6trPsuhNd4IBAKDWepTd4imeARjlKm+OgrSq9rxyY
Cancel-Lock: sha1:pygb0aXJtdXV0BUAcJ9sX+n2U5Q=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Content-Language: en-US-large
In-Reply-To: <tapghs$1li1$1@gioia.aioe.org>
 by: J.O. Aho - Thu, 14 Jul 2022 17:11 UTC

On 14/07/2022 18.34, Paulo da Silva wrote:

>> I would recommend you check up changes in the crypto layer too.
>>
>> Also it could be a combination of crypto + btrfs, but should in such
>> case been resolved in later kernel versions.
> Are there any parameters I can play with in the crypto layer?

Much depends on the crypto layer you are using, there was some years ago
some changes in luksfs that made some performance difference depending
if you had older/newer type of "crypto-key".

I tend to be quite conservative when I use encryption to change on the
settings, so that I don't break it, so I usually use defaults.

Not sure how it's with other cryptos like VeraCrypt/TrueCrypt and so on...

--

//Aho

Re: btrfs seems extremely slow on kernel 5.15

<tapou4$17jt$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2310&group=alt.os.linux.ubuntu#2310

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Thu, 14 Jul 2022 19:57:08 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tapou4$17jt$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="40573"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Paulo da Silva - Thu, 14 Jul 2022 18:57 UTC

Às 03:16 de 14/07/22, Paulo da Silva escreveu:
> Hi!
>
> I have a USB external backup volume with btrfs.
> The backup script is a simple cp -al <prev> <next> followed by a rsync
> to update <next>.
>
> The cp -al took 10-20 mins. in kernel 5.13 and before that.
> Now, with 5.15, without any changes, it is taking a few hours!!
>
> NOTES:
> I have noticed that before, during the cp -al there were outputs to the
> memory cache during which we could "visit" the drive followed by periods
> of flushing where a simple attempt to change to another dir took a while
> (sometimes ~1 min).
>
> Now, I can always navigate inside the drive without any delay when cp
> -al is in course! It seems like there is no memory cache although the
> memory cache still grows and shrinks.
>
> BTW, my mount command is
> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd
>
> There is an encryption layer below the fs.
>
There must be something very wrong with this 5.15 btrfs in kubuntu 20.04!
cp -al is more than 16 times faster in 5.13 (btrfs+luks+usb)!!

Re: btrfs seems extremely slow on kernel 5.15

<taqnds$102b$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2311&group=alt.os.linux.ubuntu#2311

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!tTvpBDluw2WdfXtdHT5Hcg.user.46.165.242.75.POSTED!not-for-mail
From: no-email@invalid.invalid (Andrei Z.)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 06:37:32 +0300
Organization: Aioe.org NNTP Server
Message-ID: <taqnds$102b$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="32843"; posting-host="tTvpBDluw2WdfXtdHT5Hcg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Andrei Z. - Fri, 15 Jul 2022 03:37 UTC

Paulo da Silva wrote:
> Às 15:48 de 14/07/22, Andrei Z. escreveu:
>> J.O. Aho wrote:
>>>
>>> On 14/07/2022 04.16, Paulo da Silva wrote:
>>>> Hi!
>>>>
>>>> I have a USB external backup volume with btrfs.
>>>> The backup script is a simple cp -al <prev> <next> followed by a
>>>> rsync to update <next>.
>>>
>>> I prefer to use snapshots and then send/receive, this tend to take a
>>> lot shorter time than cp or rsync as you will only send the changes
>>> and nothing more.
>>>
>>>
>>>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>>>> Now, with 5.15, without any changes, it is taking a few hours!!
>>>
>>> I don't remember which kernel 5 version had a change in local cache,
>>> which could in some cases cause things to work differently.
>>>
>>> Have you tested with other file system on a similar usb device? This
>>> to figure out if it's related to btrfs or usb.
>>>
>>> There are speed optimization in 5.16 regarding btrfs, so an upgrade
>>> could be good.
>>>
>>>
>>>> Now, I can always navigate inside the drive without any delay when
>>>> cp -al is in course! It seems like there is no memory cache although
>>>> the memory cache still grows and shrinks.
>>>>
>>>> BTW, my mount command is
>>>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd > There
>>>> is an encryption layer below the fs.
>>>
>>> Could be this that causing the problem and not btrfs itself.
>>>
>>> I would recommend you check up changes in the crypto layer too.
>>>
>>> Also it could be a combination of crypto + btrfs, but should in such
>>> case been resolved in later kernel versions.
>>>
>> Latency issue with encrypted and compressed BTRFS filesystem - Stack
>> Overflow
>> https://stackoverflow.com/questions/69962997/latency-issue-with-encrypted-and-compressed-btrfs-filesystem/72566823
>
> This not a CPU overhead. I have a very powerfull CPU (5GHz) 8 core.
>
> Currently cp -al copies a little bit more than 1000 files per minute.
> This is too low.
> As much as I know, it only have to make an enter in the tree of file
> names and increment a counter per file. Caching, this should take very
> short times.
> As I said, now the drive is always ready for navigation inside it!
> Before, sometimes I needed to wait a minute or perhaps more when it is
> in the flushing process (I have 32GB RAM). So, there was a change in the
> way memory cache is handled by btrfs now.

In both cases they don't mention CPU overhead - only "latency", "long
time" and here
https://www.reddit.com/r/pop_os/comments/ry72tb/really_poor_btrfs_performance_on_clean_install/
"5.15.12 and btrfs v5.15.1"

Re: btrfs seems extremely slow on kernel 5.15

<taqnhn$102b$2@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2312&group=alt.os.linux.ubuntu#2312

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!tTvpBDluw2WdfXtdHT5Hcg.user.46.165.242.75.POSTED!not-for-mail
From: no-email@invalid.invalid (Andrei Z.)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 06:39:35 +0300
Organization: Aioe.org NNTP Server
Message-ID: <taqnhn$102b$2@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <tapou4$17jt$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="32843"; posting-host="tTvpBDluw2WdfXtdHT5Hcg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andrei Z. - Fri, 15 Jul 2022 03:39 UTC

Paulo da Silva wrote:
> Às 03:16 de 14/07/22, Paulo da Silva escreveu:
>> Hi!
>>
>> I have a USB external backup volume with btrfs.
>> The backup script is a simple cp -al <prev> <next> followed by a rsync
>> to update <next>.
>>
>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>> Now, with 5.15, without any changes, it is taking a few hours!!
>>
>> NOTES:
>> I have noticed that before, during the cp -al there were outputs to
>> the memory cache during which we could "visit" the drive followed by
>> periods of flushing where a simple attempt to change to another dir
>> took a while (sometimes ~1 min).
>>
>> Now, I can always navigate inside the drive without any delay when cp
>> -al is in course! It seems like there is no memory cache although the
>> memory cache still grows and shrinks.
>>
>> BTW, my mount command is
>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd
>>
>> There is an encryption layer below the fs.
>>
> There must be something very wrong with this 5.15 btrfs in kubuntu 20.04!
> cp -al is more than 16 times faster in 5.13 (btrfs+luks+usb)!!

btrfs is under active development
https://btrfs.wiki.kernel.org/index.php/Changelog

Re: btrfs seems extremely slow on kernel 5.15

<taqttf$n6d$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2313&group=alt.os.linux.ubuntu#2313

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 06:28:09 +0100
Organization: Aioe.org NNTP Server
Message-ID: <taqttf$n6d$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
<taqnds$102b$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="23757"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Paulo da Silva - Fri, 15 Jul 2022 05:28 UTC

Às 04:37 de 15/07/22, Andrei Z. escreveu:
> Paulo da Silva wrote:
>> Às 15:48 de 14/07/22, Andrei Z. escreveu:
>>> J.O. Aho wrote:
>>>>
>>>> On 14/07/2022 04.16, Paulo da Silva wrote:
>>>>> Hi!
>>>>>
>>>>> I have a USB external backup volume with btrfs.
>>>>> The backup script is a simple cp -al <prev> <next> followed by a
>>>>> rsync to update <next>.
>>>>
>>>> I prefer to use snapshots and then send/receive, this tend to take a
>>>> lot shorter time than cp or rsync as you will only send the changes
>>>> and nothing more.
>>>>
>>>>
>>>>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>>>>> Now, with 5.15, without any changes, it is taking a few hours!!
>>>>
>>>> I don't remember which kernel 5 version had a change in local cache,
>>>> which could in some cases cause things to work differently.
>>>>
>>>> Have you tested with other file system on a similar usb device? This
>>>> to figure out if it's related to btrfs or usb.
>>>>
>>>> There are speed optimization in 5.16 regarding btrfs, so an upgrade
>>>> could be good.
>>>>
>>>>
>>>>> Now, I can always navigate inside the drive without any delay when
>>>>> cp -al is in course! It seems like there is no memory cache
>>>>> although the memory cache still grows and shrinks.
>>>>>
>>>>> BTW, my mount command is
>>>>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd > There
>>>>> is an encryption layer below the fs.
>>>>
>>>> Could be this that causing the problem and not btrfs itself.
>>>>
>>>> I would recommend you check up changes in the crypto layer too.
>>>>
>>>> Also it could be a combination of crypto + btrfs, but should in such
>>>> case been resolved in later kernel versions.
>>>>
>>> Latency issue with encrypted and compressed BTRFS filesystem - Stack
>>> Overflow
>>> https://stackoverflow.com/questions/69962997/latency-issue-with-encrypted-and-compressed-btrfs-filesystem/72566823
>>
>>
>> This not a CPU overhead. I have a very powerfull CPU (5GHz) 8 core.
>>
>> Currently cp -al copies a little bit more than 1000 files per minute.
>> This is too low.
>> As much as I know, it only have to make an enter in the tree of file
>> names and increment a counter per file. Caching, this should take very
>> short times.
>> As I said, now the drive is always ready for navigation inside it!
>> Before, sometimes I needed to wait a minute or perhaps more when it is
>> in the flushing process (I have 32GB RAM). So, there was a change in
>> the way memory cache is handled by btrfs now.
>
> In both cases they don't mention CPU overhead - only "latency", "long
> time" and here
> https://www.reddit.com/r/pop_os/comments/ry72tb/really_poor_btrfs_performance_on_clean_install/
>
> "5.15.12 and btrfs v5.15.1"
>
From the first link response:
"The luks encryption is probably the biggest latency hog. Than you can
try to switch off zstd compression. Both take severely cpu cycles and
cause your latency issues!"

It's very unlikely this thing has something to do with cpu cycles.

As I said, it is very strange that while cp -al is running, in 5.15 I
can always access the drive without any delay!
In 5.13 and before, there were periods (~1 min, sometimes more), when
flushing, that access to the drive completely blocks. Out of those
periods I can access it normally.
Notice that I have 32GB RAM. So the long flushing periods.

In 5.15 cp -al copies a little more than 1000 files per minute while in
5.13 it copies more than 16000! This is a huge difference and a no go.

Regards.
Paulo

Re: btrfs seems extremely slow on kernel 5.15

<taqu5c$pfh$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2314&group=alt.os.linux.ubuntu#2314

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 06:32:27 +0100
Organization: Aioe.org NNTP Server
Message-ID: <taqu5c$pfh$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <tapou4$17jt$1@gioia.aioe.org>
<taqnhn$102b$2@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="26097"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Paulo da Silva - Fri, 15 Jul 2022 05:32 UTC

Às 04:39 de 15/07/22, Andrei Z. escreveu:
> Paulo da Silva wrote:
>> Às 03:16 de 14/07/22, Paulo da Silva escreveu:
>>> Hi!
>>>
>>> I have a USB external backup volume with btrfs.
>>> The backup script is a simple cp -al <prev> <next> followed by a
>>> rsync to update <next>.
>>>
>>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>>> Now, with 5.15, without any changes, it is taking a few hours!!
>>>
>>> NOTES:
>>> I have noticed that before, during the cp -al there were outputs to
>>> the memory cache during which we could "visit" the drive followed by
>>> periods of flushing where a simple attempt to change to another dir
>>> took a while (sometimes ~1 min).
>>>
>>> Now, I can always navigate inside the drive without any delay when cp
>>> -al is in course! It seems like there is no memory cache although the
>>> memory cache still grows and shrinks.
>>>
>>> BTW, my mount command is
>>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd
>>>
>>> There is an encryption layer below the fs.
>>>
>> There must be something very wrong with this 5.15 btrfs in kubuntu 20.04!
>> cp -al is more than 16 times faster in 5.13 (btrfs+luks+usb)!!
>
> btrfs is under active development
> https://btrfs.wiki.kernel.org/index.php/Changelog
>
Because of its features I am using it since the I was unable to
jeopardize the fs. Never had such issue.

Re: btrfs seems extremely slow on kernel 5.15

<tar4i9$30bao$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2315&group=alt.os.linux.ubuntu#2315

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 03:21:44 -0400
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <tar4i9$30bao$1@dont-email.me>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
<taqnds$102b$1@gioia.aioe.org> <taqttf$n6d$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Jul 2022 07:21:45 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="53b5c27b657d2e98640d0e7bcd6dbaf0";
logging-data="3157336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lxBeunvdNN7A6r5iYGzU9cWA0v4Yrv+8="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:MvbuhmyK7EWKRaFBxSvc2ZgHf20=
Content-Language: en-US
In-Reply-To: <taqttf$n6d$1@gioia.aioe.org>
 by: Paul - Fri, 15 Jul 2022 07:21 UTC

On 7/15/2022 1:28 AM, Paulo da Silva wrote:
> Às 04:37 de 15/07/22, Andrei Z. escreveu:
>> Paulo da Silva wrote:
>>> Às 15:48 de 14/07/22, Andrei Z. escreveu:
>>>> J.O. Aho wrote:
>>>>>
>>>>> On 14/07/2022 04.16, Paulo da Silva wrote:
>>>>>> Hi!
>>>>>>
>>>>>> I have a USB external backup volume with btrfs.
>>>>>> The backup script is a simple cp -al <prev> <next> followed by a rsync to update <next>.
>>>>>
>>>>> I prefer to use snapshots and then send/receive, this tend to take a lot shorter time than cp or rsync as you will only send the changes and nothing more.
>>>>>
>>>>>
>>>>>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>>>>>> Now, with 5.15, without any changes, it is taking a few hours!!
>>>>>
>>>>> I don't remember which kernel 5 version had a change in local cache, which could in some cases cause things to work differently.
>>>>>
>>>>> Have you tested with other file system on a similar usb device? This to figure out if it's related to btrfs or usb.
>>>>>
>>>>> There are speed optimization in 5.16 regarding btrfs, so an upgrade could be good.
>>>>>
>>>>>
>>>>>> Now, I can always navigate inside the drive without any delay when cp -al is in course! It seems like there is no memory cache although the memory cache still grows and shrinks.
>>>>>>
>>>>>> BTW, my mount command is
>>>>>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd > There is an encryption layer below the fs.
>>>>>
>>>>> Could be this that causing the problem and not btrfs itself.
>>>>>
>>>>> I would recommend you check up changes in the crypto layer too.
>>>>>
>>>>> Also it could be a combination of crypto + btrfs, but should in such case been resolved in later kernel versions.
>>>>>
>>>> Latency issue with encrypted and compressed BTRFS filesystem - Stack Overflow
>>>> https://stackoverflow.com/questions/69962997/latency-issue-with-encrypted-and-compressed-btrfs-filesystem/72566823
>>>
>>>
>>> This not a CPU overhead. I have a very powerfull CPU (5GHz) 8 core.
>>>
>>> Currently cp -al copies a little bit more than 1000 files per minute. This is too low.
>>> As much as I know, it only have to make an enter in the tree of file names and increment a counter per file. Caching, this should take very short times.
>>> As I said, now the drive is always ready for navigation inside it!
>>> Before, sometimes I needed to wait a minute or perhaps more when it is in the flushing process (I have 32GB RAM). So, there was a change in the way memory cache is handled by btrfs now.
>>
>> In both cases they don't mention CPU overhead - only "latency", "long time" and here
>> https://www.reddit.com/r/pop_os/comments/ry72tb/really_poor_btrfs_performance_on_clean_install/
>> "5.15.12 and btrfs v5.15.1"
>>
> From the first link response:
> "The luks encryption is probably the biggest latency hog. Than you can try to switch off zstd compression. Both take severely cpu cycles and cause your latency issues!"
>
> It's very unlikely this thing has something to do with cpu cycles.
>
> As I said, it is very strange that while cp -al is running, in 5.15 I can always access the drive without any delay!
> In 5.13 and before, there were periods (~1 min, sometimes more), when flushing, that access to the drive completely blocks. Out of those periods I can access it normally.
> Notice that I have 32GB RAM. So the long flushing periods.
>
> In 5.15 cp -al copies a little more than 1000 files per minute while in 5.13 it copies more than 16000! This is a huge difference and a no go.
>
> Regards.
> Paulo

Do you use "slabtop" to examine cache memory usage ?

https://wiki.gentoo.org/wiki/Btrfs/en

root # slabtop

Active / Total Objects (% used) : 5011373 / 5052626 (99.2%)
Active / Total Slabs (% used) : 1158843 / 1158843 (100.0%)
Active / Total Caches (% used) : 103 / 220 (46.8%)
Active / Total Size (% used) : 3874182.66K / 3881148.34K (99.8%)
Minimum / Average / Maximum Object : 0.02K / 0.77K / 4096.00K

OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
2974761 2974485 99% 1.10K 991587 3 3966348K btrfs_inode
1501479 1496052 99% 0.19K 71499 21 285996K dentry

Paul

Re: btrfs seems extremely slow on kernel 5.15

<jjcls5Fmo75U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2316&group=alt.os.linux.ubuntu#2316

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: user@example.net (J.O. Aho)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 10:12:53 +0200
Lines: 26
Message-ID: <jjcls5Fmo75U1@mid.individual.net>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
<taqnds$102b$1@gioia.aioe.org> <taqttf$n6d$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net tjlZ/VnOzjRG5+CoNyULeAUnjceFF2x+BOlv8bZCM0RT6kp3Lh
Cancel-Lock: sha1:0S5WktMjy4iat/7k8iwRi+VTQm4=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-US-large
In-Reply-To: <taqttf$n6d$1@gioia.aioe.org>
 by: J.O. Aho - Fri, 15 Jul 2022 08:12 UTC

On 15/07/2022 07.28, Paulo da Silva wrote:

> It's very unlikely this thing has something to do with cpu cycles.
>
> As I said, it is very strange that while cp -al is running, in 5.15 I
> can always access the drive without any delay!
> In 5.13 and before, there were periods (~1 min, sometimes more), when
> flushing, that access to the drive completely blocks. Out of those
> periods I can access it normally.
> Notice that I have 32GB RAM. So the long flushing periods.
>
> In 5.15 cp -al copies a little more than 1000 files per minute while in
> 5.13 it copies more than 16000! This is a huge difference and a no go.

What do you get when you hook up the usb drive in dmesg?

something like
[ 1367542] sd 0:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA

In such cases it could be related to this bug:
https://bugzilla.kernel.org/show_bug.cgi?id=215137

--
//Aho

Re: btrfs seems extremely slow on kernel 5.15

<tardhf$1123$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2318&group=alt.os.linux.ubuntu#2318

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!tTvpBDluw2WdfXtdHT5Hcg.user.46.165.242.75.POSTED!not-for-mail
From: no-email@invalid.invalid (Andrei Z.)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 12:54:54 +0300
Organization: Aioe.org NNTP Server
Message-ID: <tardhf$1123$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <tapou4$17jt$1@gioia.aioe.org>
<taqnhn$102b$2@gioia.aioe.org> <taqu5c$pfh$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="33859"; posting-host="tTvpBDluw2WdfXtdHT5Hcg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andrei Z. - Fri, 15 Jul 2022 09:54 UTC

Paulo da Silva wrote:
> Às 04:39 de 15/07/22, Andrei Z. escreveu:
>> Paulo da Silva wrote:
>>> There must be something very wrong with this 5.15 btrfs in kubuntu
>>> 20.04!
>>> cp -al is more than 16 times faster in 5.13 (btrfs+luks+usb)!!
>>
>> btrfs is under active development
>> https://btrfs.wiki.kernel.org/index.php/Changelog
>>
> Because of its features I am using it since the I was unable to
> jeopardize the fs. Never had such issue.

Linux 5.15.54
https://lwn.net/Articles/900911/

"All users of the 5.15 kernel series must upgrade." :)

Re: btrfs seems extremely slow on kernel 5.15

<tas41u$1n0d$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2320&group=alt.os.linux.ubuntu#2320

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 17:19:09 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tas41u$1n0d$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
<taqnds$102b$1@gioia.aioe.org> <taqttf$n6d$1@gioia.aioe.org>
<tar4i9$30bao$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="56333"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Paulo da Silva - Fri, 15 Jul 2022 16:19 UTC

Às 08:21 de 15/07/22, Paul escreveu:
> On 7/15/2022 1:28 AM, Paulo da Silva wrote:
>> Às 04:37 de 15/07/22, Andrei Z. escreveu:
>>> Paulo da Silva wrote:
>>>> Às 15:48 de 14/07/22, Andrei Z. escreveu:
>>>>> J.O. Aho wrote:
>>>>>>
>>>>>> On 14/07/2022 04.16, Paulo da Silva wrote:
>>>>>>> Hi!
>>>>>>>
>>>>>>> I have a USB external backup volume with btrfs.
>>>>>>> The backup script is a simple cp -al <prev> <next> followed by a
>>>>>>> rsync to update <next>.
>>>>>>
>>>>>> I prefer to use snapshots and then send/receive, this tend to take
>>>>>> a lot shorter time than cp or rsync as you will only send the
>>>>>> changes and nothing more.
>>>>>>
>>>>>>
>>>>>>> The cp -al took 10-20 mins. in kernel 5.13 and before that.
>>>>>>> Now, with 5.15, without any changes, it is taking a few hours!!
>>>>>>
>>>>>> I don't remember which kernel 5 version had a change in local
>>>>>> cache, which could in some cases cause things to work differently.
>>>>>>
>>>>>> Have you tested with other file system on a similar usb device?
>>>>>> This to figure out if it's related to btrfs or usb.
>>>>>>
>>>>>> There are speed optimization in 5.16 regarding btrfs, so an
>>>>>> upgrade could be good.
>>>>>>
>>>>>>
>>>>>>> Now, I can always navigate inside the drive without any delay
>>>>>>> when cp -al is in course! It seems like there is no memory cache
>>>>>>> although the memory cache still grows and shrinks.
>>>>>>>
>>>>>>> BTW, my mount command is
>>>>>>> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd >
>>>>>>> There is an encryption layer below the fs.
>>>>>>
>>>>>> Could be this that causing the problem and not btrfs itself.
>>>>>>
>>>>>> I would recommend you check up changes in the crypto layer too.
>>>>>>
>>>>>> Also it could be a combination of crypto + btrfs, but should in
>>>>>> such case been resolved in later kernel versions.
>>>>>>
>>>>> Latency issue with encrypted and compressed BTRFS filesystem -
>>>>> Stack Overflow
>>>>> https://stackoverflow.com/questions/69962997/latency-issue-with-encrypted-and-compressed-btrfs-filesystem/72566823
>>>>
>>>>
>>>>
>>>> This not a CPU overhead. I have a very powerfull CPU (5GHz) 8 core.
>>>>
>>>> Currently cp -al copies a little bit more than 1000 files per
>>>> minute. This is too low.
>>>> As much as I know, it only have to make an enter in the tree of file
>>>> names and increment a counter per file. Caching, this should take
>>>> very short times.
>>>> As I said, now the drive is always ready for navigation inside it!
>>>> Before, sometimes I needed to wait a minute or perhaps more when it
>>>> is in the flushing process (I have 32GB RAM). So, there was a change
>>>> in the way memory cache is handled by btrfs now.
>>>
>>> In both cases they don't mention CPU overhead - only "latency", "long
>>> time" and here
>>> https://www.reddit.com/r/pop_os/comments/ry72tb/really_poor_btrfs_performance_on_clean_install/
>>>
>>> "5.15.12 and btrfs v5.15.1"
>>>
>>  From the first link response:
>> "The luks encryption is probably the biggest latency hog. Than you can
>> try to switch off zstd compression. Both take severely cpu cycles and
>> cause your latency issues!"
>>
>> It's very unlikely this thing has something to do with cpu cycles.
>>
>> As I said, it is very strange that while cp -al is running, in 5.15 I
>> can always access the drive without any delay!
>> In 5.13 and before, there were periods (~1 min, sometimes more), when
>> flushing, that access to the drive completely blocks. Out of those
>> periods I can access it normally.
>> Notice that I have 32GB RAM. So the long flushing periods.
>>
>> In 5.15 cp -al copies a little more than 1000 files per minute while
>> in 5.13 it copies more than 16000! This is a huge difference and a no go.
>>
>> Regards.
>> Paulo
>
> Do you use "slabtop" to examine cache memory usage ?
No, I just hava a small applet where I can find that the whole cache
mamory grows up to the almost limit of physical memory and then shrinks
to almost nothing. This is, as much as I can see, the same for 5.13 and
5.15. Neverthless the behaviour of the drive is completely different.

Thanks Paul for the suggestion. I'll take a look at that.

Paulo

Re: btrfs seems extremely slow on kernel 5.15

<tas4uh$220$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2321&group=alt.os.linux.ubuntu#2321

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 17:34:24 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tas4uh$220$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <tapou4$17jt$1@gioia.aioe.org>
<taqnhn$102b$2@gioia.aioe.org> <taqu5c$pfh$1@gioia.aioe.org>
<tardhf$1123$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="2112"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Paulo da Silva - Fri, 15 Jul 2022 16:34 UTC

Às 10:54 de 15/07/22, Andrei Z. escreveu:
> Paulo da Silva wrote:
>> Às 04:39 de 15/07/22, Andrei Z. escreveu:
>>> Paulo da Silva wrote:
>>>> There must be something very wrong with this 5.15 btrfs in kubuntu
>>>> 20.04!
>>>> cp -al is more than 16 times faster in 5.13 (btrfs+luks+usb)!!
>>>
>>> btrfs is under active development
>>> https://btrfs.wiki.kernel.org/index.php/Changelog
>>>
>> Because of its features I am using it since the I was unable to
>> jeopardize the fs. Never had such issue.
>
> Linux 5.15.54
> https://lwn.net/Articles/900911/
>
> "All users of the 5.15 kernel series must upgrade." :)
>

I am using the last version available in *ubuntu, i.e. 5.15.0 :-(
Thanks
Paulo

Re: btrfs seems extremely slow on kernel 5.15

<336505e5-4a6b-060e-dd61-e3b5f177a7c5@nonetnoaddress.pt>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2322&group=alt.os.linux.ubuntu#2322

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 20:10:43 +0100
Organization: Aioe.org NNTP Server
Message-ID: <336505e5-4a6b-060e-dd61-e3b5f177a7c5@nonetnoaddress.pt>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
<taqnds$102b$1@gioia.aioe.org> <taqttf$n6d$1@gioia.aioe.org>
<jjcls5Fmo75U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="5051"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Paulo da Silva - Fri, 15 Jul 2022 19:10 UTC

Às 09:12 de 15/07/22, J.O. Aho escreveu:
> On 15/07/2022 07.28, Paulo da Silva wrote:
>
>> It's very unlikely this thing has something to do with cpu cycles.
>>
>> As I said, it is very strange that while cp -al is running, in 5.15 I
>> can always access the drive without any delay!
>> In 5.13 and before, there were periods (~1 min, sometimes more), when
>> flushing, that access to the drive completely blocks. Out of those
>> periods I can access it normally.
>> Notice that I have 32GB RAM. So the long flushing periods.
>>
>> In 5.15 cp -al copies a little more than 1000 files per minute while
>> in 5.13 it copies more than 16000! This is a huge difference and a no go.
>
> What do you get when you hook up the usb drive in dmesg?
>
> something like
> [     1367542] sd 0:0:0:0: [sdb] Write cache: enabled, read cache:
> enabled, doesn't support DPO or FUA
>
Can't find anything like this! Thanks anyway.

> In such cases it could be related to this bug:
> https://bugzilla.kernel.org/show_bug.cgi?id=215137
>

Re: btrfs seems extremely slow on kernel 5.15

<tase6f$4tr$2@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2323&group=alt.os.linux.ubuntu#2323

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Fri, 15 Jul 2022 20:12:15 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tase6f$4tr$2@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="5051"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Paulo da Silva - Fri, 15 Jul 2022 19:12 UTC

Às 03:16 de 14/07/22, Paulo da Silva escreveu:
> Hi!
>
> I have a USB external backup volume with btrfs.
> The backup script is a simple cp -al <prev> <next> followed by a rsync
> to update <next>.
>
> The cp -al took 10-20 mins. in kernel 5.13 and before that.
> Now, with 5.15, without any changes, it is taking a few hours!!
>
> NOTES:
> I have noticed that before, during the cp -al there were outputs to the
> memory cache during which we could "visit" the drive followed by periods
> of flushing where a simple attempt to change to another dir took a while
> (sometimes ~1 min).
>
> Now, I can always navigate inside the drive without any delay when cp
> -al is in course! It seems like there is no memory cache although the
> memory cache still grows and shrinks.
>
> BTW, my mount command is
> mount /dev/mapper/TEMP /mnt1 -onoatime,compress-force=zstd
>
> There is an encryption layer below the fs.
>
Testing with hdparm -tTv, the drive has the same values for both kernels!

Paulo

Re: btrfs seems extremely slow on kernel 5.15

<tau6ka$uav$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2325&group=alt.os.linux.ubuntu#2325

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!nxMrPcC6Qv71O9ijrC4qgA.user.46.165.242.75.POSTED!not-for-mail
From: nntp.mbourne@spamgourmet.com (Mark Bourne)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Sat, 16 Jul 2022 12:15:21 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tau6ka$uav$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
<taqnds$102b$1@gioia.aioe.org> <taqttf$n6d$1@gioia.aioe.org>
<jjcls5Fmo75U1@mid.individual.net>
<336505e5-4a6b-060e-dd61-e3b5f177a7c5@nonetnoaddress.pt>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="31071"; posting-host="nxMrPcC6Qv71O9ijrC4qgA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
SeaMonkey/2.53.13
X-Notice: Filtered by postfilter v. 0.9.2
 by: Mark Bourne - Sat, 16 Jul 2022 11:15 UTC

Paulo da Silva wrote:
> Às 09:12 de 15/07/22, J.O. Aho escreveu:
>> On 15/07/2022 07.28, Paulo da Silva wrote:
>>
>>> It's very unlikely this thing has something to do with cpu cycles.
>>>
>>> As I said, it is very strange that while cp -al is running, in 5.15 I
>>> can always access the drive without any delay!
>>> In 5.13 and before, there were periods (~1 min, sometimes more), when
>>> flushing, that access to the drive completely blocks. Out of those
>>> periods I can access it normally.
>>> Notice that I have 32GB RAM. So the long flushing periods.
>>>
>>> In 5.15 cp -al copies a little more than 1000 files per minute while
>>> in 5.13 it copies more than 16000! This is a huge difference and a no
>>> go.
>>
>> What do you get when you hook up the usb drive in dmesg?
>>
>> something like
>> [     1367542] sd 0:0:0:0: [sdb] Write cache: enabled, read cache:
>> enabled, doesn't support DPO or FUA
>>
> Can't find anything like this! Thanks anyway.
>
>> In such cases it could be related to this bug:
>> https://bugzilla.kernel.org/show_bug.cgi?id=215137
>>
>

If I've understood the bug report correctly, the line Aho posted is what
would be expected in the working 5.15.4 kernel, while the problematic
one instead has:
[ 2.607070] sd 0:0:0:0: [sda] Asking for cache data failed
[ 2.607109] sd 0:0:0:0: [sda] Assuming drive cache: write through

So if you have those lines, and not the one Aho mentioned, it might be
that bug. Looks like it's fixed in 5.15.6. I think Ubuntu cherry-pick
certain fixes/changes from newer kernels, so it may be that they pulled
the problematic change into 5.15.0-something and hopefully will pull the
fix into 5.15.0-something_newer.

--
Mark.

Re: btrfs seems extremely slow on kernel 5.15

<tauul8$6m0$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2327&group=alt.os.linux.ubuntu#2327

  copy link   Newsgroups: alt.os.linux.ubuntu alt.os.linux
Path: i2pn2.org!i2pn.org!aioe.org!r2jfXpftVyFE0Vzaeaalag.user.46.165.242.75.POSTED!not-for-mail
From: p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt (Paulo da Silva)
Newsgroups: alt.os.linux.ubuntu,alt.os.linux
Subject: Re: btrfs seems extremely slow on kernel 5.15
Date: Sat, 16 Jul 2022 19:05:28 +0100
Organization: Aioe.org NNTP Server
Message-ID: <tauul8$6m0$1@gioia.aioe.org>
References: <tanu95$1b5v$1@gioia.aioe.org> <jja9r1Fb709U1@mid.individual.net>
<tapac7$qen$1@gioia.aioe.org> <taphgo$2sm$1@gioia.aioe.org>
<taqnds$102b$1@gioia.aioe.org> <taqttf$n6d$1@gioia.aioe.org>
<jjcls5Fmo75U1@mid.individual.net>
<336505e5-4a6b-060e-dd61-e3b5f177a7c5@nonetnoaddress.pt>
<tau6ka$uav$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="6848"; posting-host="r2jfXpftVyFE0Vzaeaalag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: pt-PT
 by: Paulo da Silva - Sat, 16 Jul 2022 18:05 UTC

Às 12:15 de 16/07/22, Mark Bourne escreveu:
> Paulo da Silva wrote:
>> Às 09:12 de 15/07/22, J.O. Aho escreveu:
>>> On 15/07/2022 07.28, Paulo da Silva wrote:
>>>
>>>> It's very unlikely this thing has something to do with cpu cycles.
>>>>
>>>> As I said, it is very strange that while cp -al is running, in 5.15
>>>> I can always access the drive without any delay!
>>>> In 5.13 and before, there were periods (~1 min, sometimes more),
>>>> when flushing, that access to the drive completely blocks. Out of
>>>> those periods I can access it normally.
>>>> Notice that I have 32GB RAM. So the long flushing periods.
>>>>
>>>> In 5.15 cp -al copies a little more than 1000 files per minute while
>>>> in 5.13 it copies more than 16000! This is a huge difference and a
>>>> no go.
>>>
>>> What do you get when you hook up the usb drive in dmesg?
>>>
>>> something like
>>> [     1367542] sd 0:0:0:0: [sdb] Write cache: enabled, read cache:
>>> enabled, doesn't support DPO or FUA
>>>
>> Can't find anything like this! Thanks anyway.
>>
>>> In such cases it could be related to this bug:
>>> https://bugzilla.kernel.org/show_bug.cgi?id=215137
>>>
>>
>
> If I've understood the bug report correctly, the line Aho posted is what
> would be expected in the working 5.15.4 kernel, while the problematic
> one instead has:
> [    2.607070] sd 0:0:0:0: [sda] Asking for cache data failed
> [    2.607109] sd 0:0:0:0: [sda] Assuming drive cache: write through
>
No, I don't see any of these messages.
Thank you.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor