Package: mlocate
Version: 0.21.1-1
Severity: normal

Hello

I noticed that my system stalls when cron jobs are run.

My suspicion is that updatedb causes swapping and effectively stops any
running applications.

Setting nice as well as ionice seems to alleviate the issue.

I suggest adding the nice setting to the script as it should not harm
anything and makes my system usable while updatedb is running.


-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing'), (300, 'unstable'), (295, 
'experimental'), (290, 'stable-i386'), (280, 'testing-i386'), (270, 
'unstable-i386'), (150, 'experimental-i386')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36-rc4-r600fence-netpollirq-smbinit-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mlocate depends on:
ii  adduser                       3.110      add and remove users and groups
ii  libc6                         2.11.2-6   Embedded GNU C Library: Shared lib

mlocate recommends no packages.

mlocate suggests no packages.

-- Configuration Files:
/etc/cron.daily/mlocate changed:
set -e
[ -x /usr/bin/updatedb.mlocate ] || exit 0
LOCKFILE="/var/lib/mlocate/daily.lock"
trap "rm -f $LOCKFILE" EXIT
if [ -e "$LOCKFILE" ]; then
    echo >&2 "Warning: $LOCKFILE present, not running today."
    exit 1
else
    touch "$LOCKFILE"
fi
if [ -x /usr/bin/ionice ] &&
    /usr/bin/ionice -c3 true 2>/dev/null; then
    IONICE="/usr/bin/ionice -c3"
fi
nice -n 20 $IONICE /usr/bin/updatedb.mlocate


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to