Your message dated Sat, 29 Mar 2008 19:12:03 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#473270: findutils: Use ionice in cron job to keep 
machine responsive
has caused the Debian Bug report #473270,
regarding findutils: Use ionice in cron job to keep machine responsive
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
473270: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473270
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: findutils
Version: 4.2.28-1etch1
Tags: patch

When the findutils cron job runs updatedb, my machine become almost
unresponsive.  One way to avoid this is by using the ionice tool
available from the util-linux package (at least in version 2.13.1-3).
It will make sure the IO bandwidth is not completely consumed by
updatedb.

Here is a patch to the cron job.  I assume it is a good idea to depend
on a new enough util-linux version as well.  With this patch in place,
the machine is usable and no slowdown is experienced while updatedb is
running.

I select nice mode 'idle', to make sure it only run when there is no
other IO, and this do not block "real" work.

--- /tmp/find.orig      2008-03-29 18:40:25.000000000 +0100
+++ /etc/cron.daily/find        2008-03-29 18:38:54.000000000 +0100
@@ -12,7 +12,7 @@
 fi

 if getent passwd $LOCALUSER > /dev/null ; then
-  cd / && nice -n ${NICE:-10} updatedb 2>/dev/null
+  cd / && nice -n ${NICE:-10} ionice -c3 updatedb 2>/dev/null
 else
   echo "User $LOCALUSER does not exist."
   exit 1

Happy hacking,
-- 
Petter Reinholdtsen



--- End Message ---
--- Begin Message ---
Version: 4.2.31-2

On 2008-03-29 Petter Reinholdtsen <[EMAIL PROTECTED]> wrote:
> Package: findutils
> Version: 4.2.28-1etch1
> Tags: patch

> When the findutils cron job runs updatedb, my machine become almost
> unresponsive.  One way to avoid this is by using the ionice tool
> available from the util-linux package (at least in version 2.13.1-3).
[...]

findutils in lenny and sid uses ionice if it is installed.

findutils (4.2.31-2) unstable; urgency=low
    + Set cronjob IO scheduling to idle. (Thanks, Alberto Marmodoro)
      (Closes: #448398)

closing.

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


--- End Message ---

Reply via email to