<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#1F497D">This may be related to the CentOS CPU issue; perhaps it&#8217;s a problem in CFS itself, or Ubuntu has different policies so it&#8217;s not always triggered?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#1F497D">-Michael<o:p></o:p></span></p>
<p class="MsoNormal"><br>
** Changed in: linux (Ubuntu)<br>
&nbsp; &nbsp; &nbsp; &nbsp;Status: New =&gt; Confirmed<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
--<br>
You received this bug notification because you are subscribed to the bug<br>
report.<br>
<a href="https://bugs.launchpad.net/bugs/1058854" target="_blank">https://bugs.launchpad.net/bugs/1058854</a><br>
<br>
Title:<br>
&nbsp; High CPU usage of CFS<br>
<br>
Status in &#8220;linux&#8221; package in Ubuntu:<o:p></o:p></p>
</div>
<p class="MsoNormal">&nbsp; Confirmed<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
Bug description:<br>
&nbsp; It appears that there is an issue with the Completely Fair Scheduler (CFS) not intereacting well with sleep commands. I have written up a test program to help demonstrate the issue and it can be found at:<br>
&nbsp; <a href="http://www.github.com/daveisfera/test_sleep/" target="_blank">www.github.com/daveisfera/test_sleep/</a><br>
&nbsp; The test outputs wall time (CPU clock), user time, and system time, but usually only the wall time and user time outputs are meaningful because the system time is so small and usually within the standard deviation for all tests.<br>
<br>
&nbsp; I have also attached the results from running this test on an HP<br>
&nbsp; Pavilion dm4 and I believe that the gap at the low number of threads<br>
&nbsp; is caused by either the processor going into a power saving state<br>
&nbsp; because of &nbsp;the sleeping and/or a poor interaction with HyperThreading<br>
&nbsp; (scheduling the 2 threads on logical cores rather than separate<br>
&nbsp; physical cores).<br>
<br>
&nbsp; Because of this, I then ran 4 instances of:<br>
&nbsp; schedtool -a &lt;CPU#&gt; -e nice -19 yes &gt; /dev/null<br>
&nbsp; so that all of the cores would be kept busy during the sleeping and this had an unexpected effect of causing the wall time to increase significantly. I am not sure what the cause of the wall time increase is, but it does help the user time plot display the
 gap between the sleep methods and the none sleep methods that I believe is a symptom/display of the unexpectedly high CPU usage when the process should be sleeping.<br>
<br>
&nbsp; ProblemType: Bug<br>
&nbsp; DistroRelease: Ubuntu 12.04<br>
&nbsp; Package: linux-image-3.2.0-31-generic 3.2.0-31.50<br>
&nbsp; ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28<br>
&nbsp; Uname: Linux 3.2.0-31-generic x86_64<br>
&nbsp; AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.<br>
&nbsp; ApportVersion: 2.0.1-0ubuntu13<br>
&nbsp; Architecture: amd64<br>
&nbsp; ArecordDevices:<br>
&nbsp; &nbsp;**** List of CAPTURE Hardware Devices ****<br>
&nbsp; &nbsp;card 0: PCH [HDA Intel PCH], device 0: STAC92xx Analog [STAC92xx Analog]<br>
&nbsp; &nbsp; &nbsp;Subdevices: 1/1<br>
&nbsp; &nbsp; &nbsp;Subdevice #0: subdevice #0<br>
&nbsp; AudioDevicesInUse:<br>
&nbsp; &nbsp;USER &nbsp; &nbsp; &nbsp; &nbsp;PID ACCESS COMMAND<br>
&nbsp; &nbsp;/dev/snd/controlC0: &nbsp;dlj &nbsp; &nbsp; &nbsp; &nbsp;1778 F.... pulseaudio<br>
&nbsp; <a href="http://Card0.Amixer.info" target="_blank">Card0.Amixer.info</a>:<br>
&nbsp; &nbsp;Card hw:0 'PCH'/'HDA Intel PCH at 0xc0800000 irq 50'<br>
&nbsp; &nbsp; &nbsp;Mixer name : 'Intel CougarPoint HDMI'<br>
&nbsp; &nbsp; &nbsp;Components : 'HDA:111d76e0,103c1793,00100102 HDA:80862805,103c1793,00100000'<br>
&nbsp; &nbsp; &nbsp;Controls &nbsp; &nbsp; &nbsp;: 22<br>
&nbsp; &nbsp; &nbsp;Simple ctrls &nbsp;: 10<br>
&nbsp; Date: Fri Sep 28 20:57:35 2012<br>
&nbsp; InstallationMedia: Ubuntu 12.04.1 LTS &quot;Precise Pangolin&quot; - Release amd64 (20120823.1)<br>
&nbsp; MachineType: Hewlett-Packard HP Pavilion dm4 Notebook PC<br>
&nbsp; ProcEnviron:<br>
&nbsp; &nbsp;TERM=xterm<br>
&nbsp; &nbsp;PATH=(custom, no user)<br>
&nbsp; &nbsp;LANG=en_US.UTF-8<br>
&nbsp; &nbsp;SHELL=/bin/bash<br>
&nbsp; ProcFB: 0 inteldrmfb<br>
&nbsp; ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-31-generic root=UUID=162256F02256D479 loop=/hostname/disks/root.disk ro quiet splash vt.handoff=7<br>
&nbsp; RelatedPackageVersions:<br>
&nbsp; &nbsp;linux-restricted-modules-3.2.0-31-generic N/A<br>
&nbsp; &nbsp;linux-backports-modules-3.2.0-31-generic &nbsp;N/A<br>
&nbsp; &nbsp;linux-firmware &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.79.1<br>
&nbsp; SourcePackage: linux<br>
&nbsp; StagingDrivers: rts_pstor mei<br>
&nbsp; UpgradeStatus: No upgrade log present (probably fresh install)<br>
&nbsp; dmi.bios.date: 01/17/2012<br>
&nbsp; dmi.bios.vendor: Hewlett-Packard<br>
&nbsp; dmi.bios.version: F.08<br>
&nbsp; dmi.board.asset.tag: Base Board Asset Tag<br>
&nbsp; <a href="http://dmi.board.name" target="_blank">dmi.board.name</a>: 1793<br>
&nbsp; dmi.board.vendor: Hewlett-Packard<br>
&nbsp; dmi.board.version: 41.1C<br>
&nbsp; dmi.chassis.asset.tag: Chassis Asset Tag<br>
&nbsp; dmi.chassis.type: 10<br>
&nbsp; dmi.chassis.vendor: Hewlett-Packard<br>
&nbsp; dmi.chassis.version: Chassis Version<br>
&nbsp; dmi.modalias: dmi:bvnHewlett-Packard:bvrF.08:bd01/17/2012:svnHewlett-Packard:pnHPPaviliondm4NotebookPC:pvr068E100002204710000622100:rvnHewlett-Packard:rn1793:rvr41.1C:cvnHewlett-Packard:ct10:cvrChassisVersion:<br>
&nbsp; <a href="http://dmi.product.name" target="_blank">dmi.product.name</a>: HP Pavilion dm4 Notebook PC<br>
&nbsp; dmi.product.version: 068E100002204710000622100<br>
&nbsp; dmi.sys.vendor: Hewlett-Packard<br>
<br>
To manage notifications about this bug go to:<br>
<a href="https://bugs.launchpad.net/ubuntu/&#43;source/linux/&#43;bug/1058854/&#43;subscriptions" target="_blank">https://bugs.launchpad.net/ubuntu/&#43;source/linux/&#43;bug/1058854/&#43;subscriptions</a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>