You are not logged in.

#1 2021-11-26 17:32:26

GeorgeJP
Member
From: Czech Republic
Registered: 2020-01-28
Posts: 186

[SOLVED] SSD drive cache - new err msg in 5.15.5

Hi, I have new error messages during boot.
In previous kernel versions there was only message in journal.
Are they harmless?

Kernel <= 5.15.4

lnb kernel: scsi 0:0:0:0: Direct-Access     ATA      Samsung SSD 840  5B0Q PQ: 0 ANSI: 5
lnb kernel: sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
lnb kernel: sd 0:0:0:0: [sda] Write Protect is off
lnb kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
lnb kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

Kernel = 5.15.5

lnb kernel: scsi 0:0:0:0: Direct-Access     ATA      Samsung SSD 840  5B0Q PQ: 0 ANSI: 5
lnb kernel: sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
lnb kernel: sd 0:0:0:0: [sda] Write Protect is off
lnb kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
lnb kernel: sd 0:0:0:0: [sda] Asking for cache data failed
lnb kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through

Edit: resolved in kernel 5.15.6

Last edited by GeorgeJP (2021-12-03 22:40:10)

Offline

#2 2021-11-26 17:58:11

blablo
Member
Registered: 2011-06-02
Posts: 38

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

Offline

#3 2021-11-26 18:31:34

GeorgeJP
Member
From: Czech Republic
Registered: 2020-01-28
Posts: 186

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

Thanks, caused most probably by:

https://git.kernel.org/pub/scm/linux/ke … 43dc1b5851

Last edited by GeorgeJP (2021-11-26 18:37:51)

Offline

#4 2021-11-26 22:20:16

merlock
Member
Registered: 2018-10-30
Posts: 235

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

Yeah, I noticed the same thing...2 SSD's, and one spinner.


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#5 2021-11-29 06:31:29

Vizitor
Member
Registered: 2015-01-05
Posts: 81

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

GeorgeJP wrote:

Are they harmless?

I have those messages on sda, sdb, sdc, sdd;
So, are they harmless?

--Edit--
I found this

What do the Asking for cache data failed and Assuming Drive Cache: write-through messages mean?
Hard disks have a small amount of RAM cache to speed up write operations. The system can write a chunk of data to the disk cache without actually waiting for it to be written to the disk. This is sometimes called "write-back" mode.

If there is no cache on the disk, data is directly written to it in "write-through" mode.
The Asking for cache data failed warning usually occurs with devices such as USB flash drives, USB card readers, etc. which present themselves as SCSI devices to the system (sdX), but have no cache.

The system asks the device: "Do you have a cache?" and gets no response. So it assumes there is no cache and puts it in "write-through" mode.

So, as I understand, it is a performance issue, but data is safe?

Last edited by Vizitor (2021-11-29 10:29:30)

Offline

#6 2021-11-29 10:45:34

mokkurkalve
Member
From: Bergen, Norway
Registered: 2009-08-29
Posts: 60

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

I certainly hope this would cause more stir if there were danger of data corruption. Anyway, I did compile my kernel with c749301ebee82eb5e97dec14b6ab31a4aabe37a6.patch to fix this. Let's hope the fix goes into 5.15.6.


"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts

Offline

#7 2021-11-29 11:32:22

Vizitor
Member
Registered: 2015-01-05
Posts: 81

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

mokkurkalve wrote:

I did compile my kernel with c749301ebee82eb5e97dec14b6ab31a4aabe37a6.patch

I installed linux-lts on nvidia based computer, so

Failed to unmount /oldroot: Device or resource busy

and

Asking for cache data failed

are "killed with one stone" smile

But, on computer with 'AMD RX 6700XT VGA' linux-lts I can't get screen to work, because kernel 5.10 is too old, so I leave it on default arch 'linux' kernel, hoping there will be fix in the next kernel update(s).

Offline

#8 2021-11-29 11:51:20

mokkurkalve
Member
From: Bergen, Norway
Registered: 2009-08-29
Posts: 60

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

Vizitor wrote:
Failed to unmount /oldroot: Device or resource busy

I don't know what this problem is. I don't seem to have it.


"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts

Offline

#9 2021-11-29 11:56:03

BachoSeven
Member
Registered: 2020-04-16
Posts: 9

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

@mokkurkalve I can confirm to also see the `Failed to unmount /oldroot: Device or resource busy` since the latest (or `5.15.4`) zen kernel update (might also be due to another package upgrade, though.)

Last edited by BachoSeven (2021-11-29 11:56:26)

Offline

#10 2021-11-29 12:19:22

Vizitor
Member
Registered: 2015-01-05
Posts: 81

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

mokkurkalve wrote:

I don't know what this problem is. I don't seem to have it.

Ah, nevermind that, it is an error that I have from previous kernel version(s)

Offline

#11 2021-11-29 16:52:25

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] SSD drive cache - new err msg in 5.15.5

Offline

Board footer

Powered by FluxBB