On Tue, Jan 10, 2023 at 06:16:07PM -0800, Kevin Fenzi wrote:
> On Tue, Jan 10, 2023 at 06:00:59PM -0600, Michael Catanzaro wrote:
> > On Tue, Jan 10 2023 at 03:19:10 PM -0800, Kevin Fenzi <ke...@scrye.com>
> > wrote:
> > > Is there something wrong with that approach that I am not understanding?
> > 
> > No, I don't think you're missing anything. That should work fine for
> > PackageKit. But of course it won't do a thing to help with for other
> > services that are misbehaving! The goal here is to make the operating system
> > generally more robust.
> 
> Ok, but it seems safer to just add timeouts to things that take too long
> and can safely be killed off rather than lowering the timeout for
> everything and potentially kill things that cannot safely be killed. 
> 
> I realize it's a lot more work to try and fix particular slow things.
> 
> It's hard to know what really needs more time and what just should be
> killed off sooner. :(

We have thousands of systemd services in Fedora. To "just add timeouts
to things that take too long" would mean updating them individually.
(Or maybe only some, but we don't really know which ones.)
This is never going to happen, it's just too much work, and there is
no clear clear understanding if it is "safe" for any specific service.

Instead, the idea is to attack the problem from the other end: reduce
the timeout for everyone. Once this happens, we should start getting
feedback about what services where this doesn't work. Some services
legitimately need a long timeout (databases, etc), and for those the
maintainers would usually have a good idea and can extend the timeout
easily. Some services are just buggy, and with the additional visibility
and tracebacks, it should be much easier to diagnose why they are slow.

Approaching the problem from this side is much more feasible. We'll
probably have to touch a dozen files instead of thousands.

Zbyszek
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to