I added the following patch to my slocate on my edgy system. I also used class 2 and priority 7.
It has made my system much better behaved, so much so that I no longer notice what slocate is started 15mins or so after I boot up (it doesn't run 24/7)
diff -u -r1.1 slocate --- slocate 2007/08/02 18:12:30 1.1 +++ slocate 2007/08/02 18:35:08 @@ -1,4 +1,5 @@ #! /bin/sh +ionice -c2 -n7 -p$$
if [ -x /usr/bin/slocate ] then
I added the following patch to my slocate on my edgy system.
I also used class 2 and priority 7.
It has made my system much better behaved, so much so
that I no longer notice what slocate is started 15mins or so after I
boot up (it doesn't run 24/7)
diff -u -r1.1 slocate
--- slocate 2007/08/02 18:12:30 1.1
+++ slocate 2007/08/02 18:35:08
@@ -1,4 +1,5 @@
#! /bin/sh
+ionice -c2 -n7 -p$$
if [ -x /usr/bin/slocate ]
then