Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian11 slowness when write-caching is enabled

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
Malathi
Posts: 6
Joined: 2021-12-15 11:14

Debian11 slowness when write-caching is enabled

#1 Post by Malathi »

Hi,
We are testing debian in our environment and observed that there is a significant slowness on overall system performance.
We cross-checked and confirmed that there is no issues with system hardware components. Then we noticed that disk write speed is reduced when write-caching is enabled whereas disk write speed is optimal when write-caching is disabled. Please refer the attached screenshot for details.
HDD_Write_Cahe.png
HDD_Write_Cahe.png (177.99 KiB) Viewed 5765 times
My questions are,
1) May i know the reason for system slowness when write-caching is enabled ?
2) Is the kernel version which we're using can cause this issue ?

OS version: Debian 11.0 Bullseye
Kernel version: 5.10.0-8-amd64

Thanks in advance.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian11 slowness when write-caching is enabled

#2 Post by bw123 »

...We cross-checked and confirmed that there is no issues with system hardware components.
...
How did you eliminate possible issue with hardware components? The second question is easy to answer, if you think current kernel at fault, try another kernel. I am using slightly newer 5.10.0-9-amd64 on bullseye.
I can't confirm your results using SATA SSD:

Code: Select all

# hdparm -W 0 /dev/sda

/dev/sda:
 setting drive write-caching to 0 (off)
 write-caching =  0 (off)
# dd if=/dev/zero of=/tmp/foo1.img bs=512 count=1000 oflag=dsync
1000+0 records in
1000+0 records out
512000 bytes (512 kB, 500 KiB) copied, 2.24656 s, 228 kB/s
# hdparm -W 1 /dev/sda

/dev/sda:
 setting drive write-caching to 1 (on)
 write-caching =  1 (on)
# dd if=/dev/zero of=/tmp/foo2.img bs=512 count=1000 oflag=dsync
1000+0 records in
1000+0 records out
512000 bytes (512 kB, 500 KiB) copied, 1.40418 s, 365 kB/s
# rm /tmp/foo*
# uname -r
5.10.0-9-amd64
# fdisk -l | grep model
Disk model: SanDisk SDSSDA12
FUD
resigned by AI ChatGPT

Malathi
Posts: 6
Joined: 2021-12-15 11:14

Re: Debian11 slowness when write-caching is enabled

#3 Post by Malathi »

Thanks for the quick response,

We are having the reported issue only with SATA HDD, no performance issues found with SATA SSD so far..
How did you eliminate possible issue with hardware components?
We have our own monitoring tools to detect any hardware issue on servers

Any other suggestions other than kernel upgrade ?
Last edited by Malathi on 2021-12-15 17:49, edited 1 time in total.

Post Reply