friedow / centerpiece

Your trusty omnibox search.
MIT License
192 stars 6 forks source link

Load burst due to index-git-repositories service #189

Closed mweinelt closed 1 month ago

mweinelt commented 1 month ago

This service is super I/O heavy and drives the load up to the point where using it isn't fun anymore.

I'd recommend updating the systemd unit to make the service less bursty.

        Nice = 19;
        IOSchedulingClass = "best-effort";
        IOSchedulingPriority = 7;
a-kenji commented 1 month ago

Thank you for the report! I think that is a very reasonable suggestion.

I myself also adjust the time the service itself gets triggered:

services.index-git-repositories = {
  enable = true;
  interval = "1h";
};

For me personally once an hour is usually enough.