Opinions on disabling drive write cache?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
spamhog
Level 3
Level 3
Posts: 146
Joined: Thu Dec 17, 2009 6:21 pm
Contact:

Opinions on disabling drive write cache?

Post by spamhog »

I just discovered I lived very well for years with only synchronous storage writes.

Now, Mint 20.1 the GUI file copy dialogs "falsely" report write done,
but drive can stay busy for a long time afterwards.

This even fools FreeFileSync, which happily rings its bell announcing the end of a still unfinished directory synchronization write. E.g. 1GB to a USB 2.0 in a few seconds. :lol: :lol: :lol:

This happens on both a new SSD with its own onboard hardware cache (brief and painless wait), and old USB thumb drives that don't have one and on an older OS didn't show this unrealistic early completion.

So there has to be a software buffer.

I see no use in pretending a write is over when it's not.
- you can't umount
- you can't shutdown
- you risk damaging a drive by unplugging too early :shock:

Questions:
- what are the advantages of nonsynchronous writes?
- does anyone here disable it?
- and how?
:?:

Touched upon here:
viewtopic.php?&t=251723

This reminds me of some old incidents in which clients thought they had sent me files, but had only managed to email me some nice Windows links to files still sitting out of reach on their own computers.
Image
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
manyroads
Level 5
Level 5
Posts: 586
Joined: Wed Mar 30, 2011 11:14 am
Location: just around the corner
Contact:

Re: Opinions on disabling drive write cache?

Post by manyroads »

Pax vobiscum,
...mark
SwayWM, i3wm, bspwm, hlwm, dwm
Professional Genealogist & Technologist
(http://eirenicon.org & http://many-roads.com)
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Opinions on disabling drive write cache?

Post by AZgl1800 »

Personally,
I would turn it off for good.

it is a super PITA.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Opinions on disabling drive write cache?

Post by absque fenestris »

spamhog wrote: Wed May 26, 2021 9:04 am ...
This even fools FreeFileSync, which happily rings its bell announcing the end of a still unfinished directory synchronization write. E.g. 1GB to a USB 2.0 in a few seconds. :lol: :lol: :lol:
...
You've really put your finger deep into the wound there.

We users might think that there is a conspiracy of the USB stick manufacturers behind this strange caching, to hide how bad the things actually are.
Specifications are patient: 48MB/sec was promised us with USB-2 - High Speed...
Well yes, with USB-3 we get a bit closer to the USB-2 specification ...
User avatar
spamhog
Level 3
Level 3
Posts: 146
Joined: Thu Dec 17, 2009 6:21 pm
Contact:

Re: Opinions on disabling drive write cache?

Post by spamhog »

I decided to leave async write on for the moment. One has to be careful with the optimistic write-completed reports. But it's not that different from e.g. Thunar moving files to trash or deleting them without asking for confirmation. Or carrying a gun with a round in the chamber. Or nuclear power. Or pitbulls. There are pros and cons. :shock: / :lol:
Locked

Return to “Storage”