Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 578035 Details for
Bug 813228
Add workaround for kernel breaking cpuset cgroup on hibernate/suspend
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
simplified script
cpusets.sh (text/plain), 1.42 KB, created by
Michal Schmidt
on 2012-04-17 13:36:36 UTC
(
hide
)
Description:
simplified script
Filename:
MIME Type:
Creator:
Michal Schmidt
Created:
2012-04-17 13:36:36 UTC
Size:
1.42 KB
patch
obsolete
>#!/bin/bash ># Script to save and restore the cpusets' cpu configuration after a ># suspend/resume cycle. ># This is a workaround for a Linux kernel bug which results in cpusets ># being reduced to a single cpu (boot cpu) after a suspend/resume ># cycle: ># https://bugzilla.redhat.com/show_bug.cgi?id=714271 ># Workaround requested in: ># https://bugzilla.redhat.com/show_bug.cgi?id=813228 ># ># Author: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> ># 16 March 2012 ># Simplified by Michal Schmidt > >SAVEFILE=/run/ugly-hack-for-bz813228-saved_cpusets.txt > >save_cpusets() >{ > # Omit the root cpuset (using mindepth parameter) since it is read-only > # (and will be restored properly after resume by the kernel itself). > > # Parent directories must be processed before children otherwise the > # hierarchy is not preserved and restore_cpusets() will have trouble > # restoring the cpusets. > # This is because of the rule that a child cpuset cannot have a cpu that > # is not present in its parent cpuset. > > find -L /sys/fs/cgroup/cpuset -mindepth 2 -type d | while read cspath; do > cspath=$cspath/cpuset.cpus > read cpus < $cspath > echo "$cspath $cpus" > done > $SAVEFILE >} > >restore_cpusets() >{ > while read cspath cpus; do > echo "$cpus" > $cspath > done < $SAVEFILE > > rm -f $SAVEFILE >} > >case "$1" in > suspend|hibernate) > save_cpusets > ;; > resume|thaw) > restore_cpusets > ;; >esac > >exit $? >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 813228
:
577965
| 578035