Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289322 - sys-devel/prelink: please ionice cronjob
Summary: sys-devel/prelink: please ionice cronjob
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 14:19 UTC by Johannes Buchner
Modified: 2009-10-22 00:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Buchner 2009-10-16 14:19:10 UTC
Hi. 

It would be nice to have the line
"ionice -c3 >/dev/null 2>&1"
before (or after)
"renice +19 -p $$ >/dev/null 2>&1"
in /etc/cron.daily/prelink (line, 11)

This assures the user isn't bothered with the io requests of the prelink process (class 3 = idle). If the kernel doesn't support ionice, the command will fail silently.

Busy disk-io can render a (desktop) machine unusable, regardless of niceness level of the process. Thankfully CFQ can schedule IO.

Reproducible: Always

Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2009-10-22 00:16:17 UTC
`ionice -c3` doesnt actually do anything.  you need to specify the pid with -p.

http://sources.gentoo.org/sys-devel/prelink/files/prelink.cron?r1=1.6&r2=1.7
Comment 2 Johannes Buchner 2009-10-22 00:25:54 UTC
thank you