[Bug 134692] Re: updatedb cron job should make use of ionice

2008-02-07 Thread Milan
Please have a look at the mailing list threads shown in bug 140493 to
read the whole discussion about keeping or removing updatedb.

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2008-02-07 Thread Gustavo Carneiro
On a related note, nowadays we have tracker enabled by default in
ubuntu-desktop; why do we need to have two file indexers running at the
same time?

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2008-02-06 Thread Tim
Sorry, people for disturbing again.

But everyday findutils or better put updatedb blocks my harddrive for
5min.

Why can I set ionice options for my rsnapshot scripts and wit works well
while this issue hasen't been fixed, yet?

Anything that we can do to prevent this in the coming release?
Is there already a check for battery state included?

Kind regards!

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-12-08 Thread Neal McBurnett
The findutils package in gutsy, and the debdiff from 2007-10-01, was
faulty - instead of changing ionice on the updatedb process, it changes
it for process id 7 (and generates cron mail if there is no process 7).

See see
https://bugs.edge.launchpad.net/ubuntu/+source/findutils/+bug/159472

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-11-26 Thread Tim
Hello,
is this problem solved on your Gutsy machines?

I still have the problem that updatedb blocks the machine totally for
some minutes.

Thanks for your efforts!

-- 
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


Re: [Bug 134692] Re: updatedb cron job should make use of ionice

2007-11-13 Thread yop
ah ok thanks.

On Nov 13, 2007 1:01 AM, dAniel hAhler [EMAIL PROTECTED] wrote:

 yop, please note that {$NICE:-10} (which I've used in most places in my
 patches) is actually a typo/wrong!
 ${NICE:-10} is correct (and Kees has fixed it already).

 echo ${FOO:-10} results in 10, if $FOO is not set, if you want to get
 -10 as default, you would actually have to use ${FOO:--10}. The :-
 appears to be the syntax for default.

 So, this seems to be fine - except for the typo.. ;)

 --
 updatedb cron job should make use of ionice
 https://bugs.launchpad.net/bugs/134692
 You received this bug notification because you are a direct subscriber
 of the bug.


-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-11-12 Thread yop
@dAniel hAhler
Question: If running at nice -10 it will have a high priority yes? and running 
at nice 10 will make it have a low prio 

And in your diff you have
nice -n {$NICE:-10}

Is it not better to set it to 
nice -n {$NICE:+10}
to make it run as low prio?

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-11-12 Thread dAniel hAhler
yop, please note that {$NICE:-10} (which I've used in most places in my 
patches) is actually a typo/wrong!
${NICE:-10} is correct (and Kees has fixed it already).

echo ${FOO:-10} results in 10, if $FOO is not set, if you want to get
-10 as default, you would actually have to use ${FOO:--10}. The :-
appears to be the syntax for default.

So, this seems to be fine - except for the typo.. ;)

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-10-03 Thread Tim
Thank you dAniel hAhler  for putting so much effort into this!

Just recently that my notbook got literally blocked by this deamon. It has to 
stop!
Imagine you working on something critical and the system all by a sdden get 
irrespnsive because of this!

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-10-02 Thread dAniel hAhler
slocate (3.1-1ubuntu2) gutsy; urgency=low

  * debian/cron.daily: Use ionice. It looks for settings from
/etc/updatedb.conf and uses best effort class by default.
Quite the same for nice, defaulting to 10.
(LP: #134692)

 -- dAniel hAhler [EMAIL PROTECTED]   Wed, 26 Sep 2007 02:31:46 +0200

** Changed in: slocate (Ubuntu)
   Status: Triaged = Fix Released

** Changed in: findutils (Ubuntu)
   Status: Triaged = Fix Released

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-10-02 Thread dAniel hAhler
findutils (4.2.31-1ubuntu1) gutsy; urgency=low

  * Make use of ionice in cron.daily, if available (LP: #134692)
  * debian/updatedb.conf: added IONICE_CLASS/IONICE_PRIORITY,
defaulting to IONICE_CLASS=2, IONICE_PRIORITY=7 (best effort)
  * debian/find-crond.daily: use ionice
  * debian/control: DebianMaintainerField

 -- dAniel hAhler [EMAIL PROTECTED]   Tue, 02 Oct 2007 01:52:46 +0200

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-10-01 Thread dAniel hAhler
Thanks for your comments, Kees.

Now while updating the patches, I wonder if we should support IONICE_CLASS=0 to 
disable usage of ionice?
Or should it get used always?

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-10-01 Thread Kees Cook
Is there any harm in using ionice?  (Or rather, is there a good reason
to ever disable it?)

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-10-01 Thread dAniel hAhler

** Attachment added: Debdiff for findutils (Gutsy)
   http://launchpadlibrarian.net/9631547/findutils_4.2.31-1ubuntu1.dsc.diff

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-10-01 Thread dAniel hAhler

** Attachment added: Debdiff for slocate (Gutsy)
   http://launchpadlibrarian.net/9631597/slocate_3.1-1ubuntu2.dsc.diff

** Attachment removed: Debdiff for findutils in Gutsy

http://launchpadlibrarian.net/9510101/findutils_4.2.31-1ubuntu1.dsc.diff

** Attachment removed: Debdiff for slocate in Gutsy

   http://launchpadlibrarian.net/9510122/slocate_3.1-1ubuntu2.dsc.diff

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-26 Thread Peter Cherriman
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

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-26 Thread Kees Cook
Thanks, I will get this taken care of after beta unfreezes.

** Changed in: slocate (Ubuntu)
   Status: Incomplete = Triaged

** Changed in: findutils (Ubuntu)
   Importance: Undecided = Low
 Assignee: (unassigned) = Kees Cook (keescook)
   Status: Incomplete = Triaged

** Changed in: slocate (Ubuntu)
   Importance: Undecided = Low

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-26 Thread Kees Cook
I think the patches can be cleaned up a bit for fewer changes:

- ionice is in util-linux (so no need for schedutils)
- util-linux is Essential (no need to test for ionice existing)

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-25 Thread dAniel hAhler
I've updated the patch for findutils, making IONICE_CLASS=2 (and
IONICE_PRIORITY=7) the default - because 3 is only allowed by root (and
for a reason).

** Attachment added: Debdiff for findutils in Gutsy
   http://launchpadlibrarian.net/9510101/findutils_4.2.31-1ubuntu1.dsc.diff

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-25 Thread dAniel hAhler
Updated debdiff for slocate.

** Attachment added: Debdiff for slocate in Gutsy
   http://launchpadlibrarian.net/9510122/slocate_3.1-1ubuntu2.dsc.diff

** Attachment removed: debdiff for slocate (Gutsy)

   http://launchpadlibrarian.net/9248879/slocate_3.1-1ubuntu2.dsc.diff

** Attachment removed: debdiff for findutils (Gutsy)

http://launchpadlibrarian.net/9109237/findutils_4.2.31-1ubuntu1.dsc.diff

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-25 Thread Daniel Holbach
Unsubscribing Ubuntu Sponsors for main from this bug until questions are
answered.

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-24 Thread Daniel Holbach
Marking as 'incomplete' until question is answered.

** Changed in: findutils (Ubuntu)
   Status: Confirmed = Incomplete

** Changed in: slocate (Ubuntu)
   Status: New = Incomplete

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-15 Thread Anders Morken
This is a dupe of bug #13671 (although it seems that someone has marked
that bug as a dupe of this one, although this bug is the newer one. =)

Anyway, we tried this approach there, and the consensus seemed to be
that there was little or no measurable effect of using ionice with
updatedb... Does anyone have any numbers that indicate that this has
changed?

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-12 Thread Daniel Holbach
Kees: can you take a look at the patches?

Daniel and Tim: it'd be nice to feed those patches back to Debian, so we
can have the packages in sync soon again.

** Changed in: slocate (Ubuntu)
 Assignee: (unassigned) = Kees Cook

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-11 Thread dAniel hAhler

** Attachment added: debdiff for slocate (Gutsy)
   http://launchpadlibrarian.net/9248879/slocate_3.1-1ubuntu2.dsc.diff

** Changed in: slocate (Ubuntu)
 Assignee: dAniel hAhler = (unassigned)

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-03 Thread Tim
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-03 Thread dAniel hAhler
Based on your patch I've written a proper debdiff.

** Attachment added: debdiff for Gutsy
   http://launchpadlibrarian.net/9109237/findutils_4.2.31-1ubuntu1.dsc.diff

** Also affects: slocate (Ubuntu)
   Importance: Undecided
   Status: New

-- 
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


[Bug 134692] Re: updatedb cron job should make use of ionice

2007-09-03 Thread dAniel hAhler
The same method should get applied to slocate, which e.g. gets installed by 
kubuntu-desktop (and which replaces the find cronjob of findutils).
I will provide a debdiff for it, when the one for findutils gets accepted.

** Changed in: slocate (Ubuntu)
 Assignee: (unassigned) = dAniel hAhler

-- 
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