LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 07-11-2009, 06:55 PM   #1
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota
Distribution: Slackware 12.2
Posts: 78
Thanked: 2
slocate suggestion, using ionice to change priority


[Log in to get rid of this advertisement]
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.
Andy Alkaline is offline  
Tag This Post , , , ,
Reply With Quote
Thanked by:
Old 07-11-2009, 07:17 PM   #2
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,908
Thanked: 165
I'm not a Slackuser, but I'm surprised Pat hasn't included mlocate - much kinder on the entire filesystem.
syg00 is offline     Reply With Quote
Old 07-18-2009, 04:33 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Dali, China
Distribution: Slackware
Posts: 6,620
Thanked: 50
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.
Bruce Hill is offline     Reply With Quote
Old 07-18-2009, 09:55 AM   #4
niels.horn
Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 774
Thanked: 60
Thanks Andy!

I sometimes am still working in the middle of the night when udatedb kicks in and it has bothered and worried me.
niels.horn is offline     Reply With Quote
Old 07-19-2009, 12:42 AM   #5
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota
Distribution: Slackware 12.2
Posts: 78
Thanked: 2

Original Poster
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.
Andy Alkaline is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 02:53 AM
how to create automatically the /var/lib/slocate/slocate.db irhernan Linux - Newbie 3 09-12-2006 03:29 PM
Change process priority Azriel_2501 Linux - General 4 01-18-2006 08:00 PM
updatedb and slocate runs at 5am, how can I change this? Archeantus Linux - Software 4 02-12-2005 06:06 PM
How do I change a process's priority? TheOneAndOnlySM Linux - General 2 03-12-2004 11:17 PM


All times are GMT -5. The time now is 08:11 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration