Bug 475205 - cron should be power aware; not run intensive jobs on battery
Summary: cron should be power aware; not run intensive jobs on battery
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: crontabs
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-08 14:50 UTC by Saikat Guha
Modified: 2009-02-06 14:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-06 14:59:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Saikat Guha 2008-12-08 14:50:09 UTC
cron insists on running makewhatis and prelink, two processes that cause intensive disk activity, regardless of whether the laptop is connected to AC or not. While I like prelink, I don't like it nearly as much as having a low power drain.

IMO cron should check the AC state before starting jobs tagged as power hogs. It should defer them when on battery power. And run then once AC is reconnected.

Comment 1 Marcela Mašláňová 2009-02-06 14:59:16 UTC
This is now checked between anacron started running jobs. If laptop is on battery, then the job won't be started and anacron will try next hour.


Note You need to log in before you can comment on or make changes to this bug.