Package: prelink
Version: 0.0.20071009-1
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 prelink depends on:
ii  libc6                        2.6.1-6     GNU C Library: Shared libraries
ii  libelfg0                     0.8.6-4     an ELF object file access library
ii  libselinux1                  2.0.15-2+b1 SELinux shared libraries

prelink recommends no packages.

-- no debconf information
--- debian/prelink.cron.daily   2007-10-28 20:51:12.000000000 +0100
+++ /etc/cron.daily/prelink     2007-10-28 20:53:42.000000000 +0100
@@ -1,7 +1,21 @@
 #!/bin/bash
 
+# Read default configuration
 . /etc/default/prelink
 
+#
+# Set the task to run with "idle" I/O priority if possible
+# Linux supports io scheduling priorities and classes since
+#  2.6.13 with the CFQ io scheduler
+#
+
+if [ -f /usr/bin/ionice ]; then
+       ionice -c3 -p $$
+fi
+
+#
+# Further lower the load in a more traditional way
+#
 renice +19 -p $$ >/dev/null 2>&1
 
 # Default action. Won't do anything. Bug#231007.

Reply via email to