Giter Site home page Giter Site logo

slow shutdown about precached HOT 11 CLOSED

x3n0m0rph59 avatar x3n0m0rph59 commented on June 8, 2024
slow shutdown

from precached.

Comments (11)

idnovic avatar idnovic commented on June 8, 2024 1

precached just seems to be the last process before the 1.30 minutes timeout.
But they seem unrelated atm.

At least I can not reproduce it.

from precached.

idnovic avatar idnovic commented on June 8, 2024 1

https://unix.stackexchange.com/questions/273876/a-stop-job-is-running-for-session-c2-of-user/297318#297318

Still need to verify the suggested methods tomorrow.

from precached.

idnovic avatar idnovic commented on June 8, 2024 1

Well the newest version did fix my slow shutdown. It now takes just 1 second. To be honest after I had to wait now I am thinking maybe something is wrong this is damn fast :)

from precached.

idnovic avatar idnovic commented on June 8, 2024

"Linux precess monitor and pre-caching daemon"
A stop job is running for Session 3 of user idnovic (x / 1min 30s)

from precached.

X3n0m0rph59 avatar X3n0m0rph59 commented on June 8, 2024

There is a known thread-deadlock problem on exit of the daemon, that is triggered sometimes during system shutdown. Precached currently will be killed by systemd after 15 seconds have elapsed, when the system is shutting down.

I wrote at/after because the service "precached monitor" exits quickly but the process after that "user shell 3" needs the whole 1.30 minutes to exit.

I too have seen this happen on my Fedora box, with and without precached running. I suspect that this will be hard to reproduce...

from precached.

idnovic avatar idnovic commented on June 8, 2024

I think it has to do the the 3rd part of precached. The user service.
Because when I boot to gdm and shutdown instead of login everything is perfect.

systemctl --user enable --now precached-trigger.service

from precached.

idnovic avatar idnovic commented on June 8, 2024

I can live with it. Just 1.30 minutes seem long...

from precached.

X3n0m0rph59 avatar X3n0m0rph59 commented on June 8, 2024

I think it has to do the the 3rd part of precached. The user service.
Because when I boot to gdm and shutdown instead of login everything is perfect.

$ systemctl --user enable --now precached-trigger.service

I can live with it. Just 1.30 minutes seem long...

This clearly should not happen!

I will prepare a new build tomorrow, could you please try to disable the user service and the prime-caches-timer then (after you have installed the new build)?

$ systemctl --user disable --now precached-trigger.service
$ sudo systemctl disable --now precached-prime-caches.timer

Profile transition will then be done using a .desktop file that can be added to Gnome 3 autostart. The other two possibilities of profile transition (.timer and user service) will be kept for non-Gnome users.

Background on precached modes-of-operation (profiles)

Currently precached discriminates between two distinct runtime profiles:

  • BootUp
  • UpAndRunning

During BootUp, no offline-prefetching will be done. When transitioning to UpAndRunning, offline-prefetching will be enabled.

from precached.

idnovic avatar idnovic commented on June 8, 2024

Okay I can try that out. But honestly I am just pointing fingers :) not sure whatever the the precached trigger is the culprit.

from precached.

idnovic avatar idnovic commented on June 8, 2024

I need to debug this. I deactivated all 3 precached services and I still have the timeout.

from precached.

idnovic avatar idnovic commented on June 8, 2024

In case you missed it on the other issue report, the slow shutdown happens even with precached disabled. So let it be as it is. No need to rewrite that part.

from precached.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.