|
|
Log in / Subscribe / Register

Changing Fedora's shutdown timeouts

Changing Fedora's shutdown timeouts

Posted Jan 24, 2023 16:44 UTC (Tue) by madscientist (subscriber, #16861)
In reply to: Changing Fedora's shutdown timeouts by andresfreund
Parent article: Changing Fedora's shutdown timeouts

As I said, there are many many ways that a process can go down without having a chance to die "cleanly". I have no particular opinion on what the timeout for shutdown before kill should be, but saying that reducing it is unacceptable because something that could happen at almost any time, could now happen at some other time too isn't a compelling argument in any way.

If you care about your data and your system's integrity then you'll use software that makes the effort to care as well and you'll be sure to not subvert that software by disabling those features. If you don't care, then no complaints.


to post comments

Changing Fedora's shutdown timeouts

Posted Jan 24, 2023 18:02 UTC (Tue) by Wol (subscriber, #4433) [Link]

Well, take my system. I've got ext4 over lvm over raid over dm-integrity over hardware.

Dunno how long it takes for in-flight to get to disk, but probably noticeably more than many other systems.

This is where just cutting time before a force-shutdown could be a disaster. Okay, with gentoo and all that, it won't affect me, but if they're cutting timeouts to keep devs happy, that's exactly what'll cause production systems, that might need extra time, to get burnt...

Cheers,
Wol

Changing Fedora's shutdown timeouts

Posted Jan 24, 2023 19:26 UTC (Tue) by andresfreund (subscriber, #69562) [Link] (2 responses)

I am not saying that it's unacceptable to reduce shutdown times. In fact, I agree that the default should be decreased. We might differ on what a good value for services that need a longer shutdown is, but that's details.

My point was just that I don't think it's as binary as >>Any "database" which is corrupted by a hard stop cannot be called a "database"<< because people intentionally use settings like fsync=off, to reduce overhead on systems when durability is not paramount, and still would like data to not be corrupted outside of genuine crashes.

Changing Fedora's shutdown timeouts

Posted Jan 24, 2023 21:25 UTC (Tue) by Wol (subscriber, #4433) [Link]

> My point was just that I don't think it's as binary as >>Any "database" which is corrupted by a hard stop cannot be called a "database"<< because people intentionally use settings like fsync=off, to reduce overhead on systems when durability is not paramount, and still would like data to not be corrupted outside of genuine crashes.

c/database/filesystem/

You have the ext4 debacle where the DEFAULT would lose data in the event of a system crash, resulting in a corrupt filesystem and necessitating a "restore from backup". And it was all totally unnecessary.

The point is not to avoid all corruption (that's not possible), but don't ask for trouble. The best user-space in the world won't save you if the infrastructure underneath drops you in it without due cause ...

Cheers,
Wol

Changing Fedora's shutdown timeouts

Posted Jan 25, 2023 1:18 UTC (Wed) by madscientist (subscriber, #16861) [Link]

What I'm trying to say is that the definition of "genuine crashes" is so wide and variable that expanding it to include "can't shut down in 30s" (or whatever amount of time) is not worth worrying about.

If people disable safety features then they are at the mercy of any sort of problem that happens. If they don't care enough about their data to preserve it in the face of any other problem they might face then I don't see why "slow shutdown" being added to that list should impact the rest of us.

Of course others may have other opinions, but I'll simply have to agree to disagree with those people: I don't see any grey area between "your data is reliably durable" and "your data is not reliably durable" that's worth arguing about.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds