Bug 475205

Summary: cron should be power aware; not run intensive jobs on battery
Product: [Fedora] Fedora Reporter: Saikat Guha <sg266>
Component: crontabsAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: mmaslano, tmraz
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-06 14:59:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.