LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slocate suggestion, using ionice to change priority (https://www.linuxquestions.org/questions/slackware-14/slocate-suggestion-using-ionice-to-change-priority-739461/)

Andy Alt 07-11-2009 05:55 PM

slocate suggestion, using ionice to change priority
 
I've modified my cron slocate (updatedb) script

ionice -c3 nice -n 19 /usr/bin/updatedb -c /etc/updatedb.conf

Because of the heavy drive activity, ionice works much better than nice in this situation.

Using 'nice' here doesn't do nearly as much for me as 'ionice' when using updatedb.

syg00 07-11-2009 06:17 PM

I'm not a Slackuser, but I'm surprised Pat hasn't included mlocate - much kinder on the entire filesystem.

Bruce Hill 07-18-2009 03:33 AM

Seems that Pat agreed with you:
Code:

Fri Jul 17 21:05:16 CDT 2009
<snip>
a/slocate-3.1-x86_64-3.txz:  Rebuilt.  Changed the daily updatedb cron job
  to use "ionice -c3 nice -n 19".  Thanks to Andy Alt.

Thanks, Andy ... good suggestion.

niels.horn 07-18-2009 08:55 AM

Thanks Andy!

I sometimes am still working in the middle of the night when udatedb kicks in and it has bothered and worried me.

Andy Alt 07-18-2009 11:42 PM

Wow. I've never been immortalized in a ChangeLog before, unless it was one I wrote myself.

But I'm glad to have been able to contribute.


All times are GMT -5. The time now is 11:05 PM.