Package: man-db
Version: 2.5.0-3
Severity: wishlist
The attached patch suggests how to introduce I/O idle scheduling, by
tuning the CFQ scheduler (available since kernel 2.6.13) through the
ionice utility provided by the util-linux package (schedutils in
Ubuntu).
Thanks!
--
a.m.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.23.1
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 man-db depends on:
ii bsdmainutils 6.1.7 collection of more utilities from
ii debconf [debconf-2.0] 1.5.16 Debian configuration management sy
ii dpkg 1.14.7 package maintenance system for Deb
ii groff-base 1.18.1.1-13 GNU troff text-formatting system (
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime
ii zlib1g 1:1.2.3.3.dfsg-6 compression library - runtime
man-db recommends no packages.
-- debconf information:
man-db/build-database: true
man-db/rebuild-database: true
man-db/install-setuid: false
--- debian/cron.daily.orig 2007-10-28 21:04:50.000000000 +0100
+++ /etc/cron.daily/man-db 2007-10-28 21:04:30.000000000 +0100
@@ -4,6 +4,17 @@
set -e
+#
+# Set the task to run with "idle" I/O priority if possible
+# Linux supports io scheduling priorities and classes since
+# kernel 2.6.13, with the CFQ io scheduler
+#
+
+if [ -f /usr/bin/ionice ]; then
+ ionice -c3 -p $$
+fi
+
+
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
mkdir -p /var/cache/man
--- debian/cron.weekly.orig 2007-10-28 21:05:45.000000000 +0100
+++ /etc/cron.weekly/man-db 2007-10-28 21:05:29.000000000 +0100
@@ -4,6 +4,17 @@
set -e
+#
+# Set the task to run with "idle" I/O priority if possible
+# Linux supports io scheduling priorities and classes since
+# kernel 2.6.13, with the CFQ io scheduler
+#
+
+if [ -f /usr/bin/ionice ]; then
+ ionice -c3 -p $$
+ fi
+
+
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
mkdir -p /var/cache/man