Replace incrond #15

Closed
opened 2020-08-03 22:48:08 +00:00 by kemonine · 0 comments
Owner

incrond can cause a systemd storm that can cause some terrible performance/behaviors related to restarting the slideshow. Specifically it causes a storm of restarts for the slideshow during heavy disk create/delete events in the pictures folder used for the slideshow.

This daemon needs to be replaced by a custom python3 script using intify that buffers the events so only after n seconds will the restart event(s) occur.

This will likely need a watchdog timer that's started/reset on filesystem events and destroyed when it times out.

Inspiration

incrond can cause a systemd storm that can cause some terrible performance/behaviors related to restarting the slideshow. Specifically it causes a storm of restarts for the slideshow during heavy disk create/delete events in the pictures folder used for the slideshow. This daemon needs to be replaced by a custom python3 script using intify that buffers the events so only after n seconds will the restart event(s) occur. This will likely need a watchdog timer that's started/reset on filesystem events and destroyed when it times out. Inspiration - https://www.linode.com/docs/development/monitor-filesystem-events-with-pyinotify/ - https://github.com/chrisjbillington/inotify_simple - https://github.com/gorakhargosh/watchdog - https://stackoverflow.com/questions/16148735/how-to-implement-a-watchdog-timer-in-python
kemonine added this to the Initial Stable Deployment milestone 2020-08-03 22:48:08 +00:00
kemonine added the
bug
help wanted
enhancement
labels 2020-08-03 22:48:08 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PiFrame/piframe#15
No description provided.