LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-11-2009, 05:55 PM   #1
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian-wheezy-amd64, LFS 7.1
Posts: 352

Rep: Reputation: 33
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.
 
Old 07-11-2009, 06:17 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,355

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
I'm not a Slackuser, but I'm surprised Pat hasn't included mlocate - much kinder on the entire filesystem.
 
Old 07-18-2009, 03:33 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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.
 
Old 07-18-2009, 08:55 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Thanks Andy!

I sometimes am still working in the middle of the night when udatedb kicks in and it has bothered and worried me.
 
Old 07-18-2009, 11:42 PM   #5
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian-wheezy-amd64, LFS 7.1
Posts: 352

Original Poster
Rep: Reputation: 33
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.
 
  


Reply

Tags
priority, updatedb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proposed change to slocate package cor67393 Slackware 3 07-01-2009 01:53 AM
how to create automatically the /var/lib/slocate/slocate.db irhernan Linux - Newbie 3 09-12-2006 02:29 PM
Change process priority Azriel_2501 Linux - General 4 01-18-2006 07:00 PM
updatedb and slocate runs at 5am, how can I change this? Archeantus Linux - Software 4 02-12-2005 05:06 PM
How do I change a process's priority? TheOneAndOnlySM Linux - General 2 03-12-2004 10:17 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration