I changed the 
/etc/cron.daily/slocate like follows:

#! /bin/sh
IONICE_CLASS=3 #2=  Best effort 1 = Idle , 3 = idle
IONICE_PRIORITY=7       #0 (high)-7 (low)
NICE_PRIORITY=19        #10 (default) - 19 (low)
        
if [ -x /usr/bin/slocate ]
then
        if [ -f /etc/updatedb.conf ]
        then
                ionice -c $IONICE_CLASS nice -n $NICE_PRIORITY  
/usr/bin/updatedb
        else
                ionice -c $IONICE_CLASS nice -n $NICE_PRIORITY 
/usr/bin/updatedb -f proc
        fi
        chown root.slocate /var/lib/slocate/slocate.db
fi


Tomorrow I can report whether this helps or not...

-- 
updatedb cron job should make use of ionice
https://bugs.launchpad.net/bugs/134692
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to