GNOME Bugzilla – Bug 722278
Implement some throttling
Last modified: 2014-01-23 12:02:37 UTC
We need to atleast implement some kind of CPU and I/O throttling, otherwise it gets pretty dire when a user has lots of data on the server. See: https://bugzilla.gnome.org/show_bug.cgi?id=721402 We can take some ideas from Tracker's builtin miners.
Created attachment 266434 [details] [review] miner-main: Lower the CPU and disk I/O scheduling and priority
This is still very basic. There is room for improvement: - We should throttle the network I/O if we are on some expensive network connection. - Look at the battery status and throttle accordingly.
Review of attachment 266434 [details] [review]: This looks good to me - it would be nice to share this - and maybe even other parts - infrastructure with Tracker, maybe by moving it to TrackerMiner, but let's not block on that.
(In reply to comment #3) > Review of attachment 266434 [details] [review]: Thanks for the review. > and maybe even other > parts - infrastructure with Tracker, maybe by moving it to TrackerMiner, but > let's not block on that. There is the TrackerMiner base class for implementing miners which would be the way to share other parts of the infrastructure.
Keeping the bug open till we ascertain that the user-facing problem in bug 721402 has been addressed.
After a bit of testing I can say that this does help a lot. Ofcourse this is still Linux-only, and we can still improve (comment 2), but for the moment this is good enough.