<html xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta content="Microsoft Word 15 (filtered medium)" name="Generator"/>
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Austin,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for your reply.<o:p></o:p></p>
<p class="MsoNormal">I was able to configure CPU Manager and test it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<br/>
Sriram<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Sun, Austin <austin.sun@intel.com> <br/>
<b>Sent:</b> Wednesday, October 14, 2020 6:52 AM<br/>
<b>To:</b> Dharwadkar, Sriram <Sriram.Dharwadkar@commscope.com>; starlingx-discuss@lists.starlingx.io<br/>
<b>Subject:</b> RE: Enabling CPU Manager<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-line-height-alt:.75pt;background:white"><!--removed inky banner--></p></div><p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Hi Sriram:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:10.2pt">You can check [1] and [2] . I think current implement is using host label (kube-cpu-mgr-policy) to enable this feature gate
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1] <a href="https://secure-web.cisco.com/15sefPQPEcJzD0iXIlEyNZT2eBPhTkwAAA0dSCVeFt5mGYF4f0OKyVyl9SYOQ219RxU8RL1hka04KQm3T6ZosbbRRX8OTFL3D_2f3o5ifidJLdL6eALY0d6h-c9GE4WqOgxm6GNAAzxjxThP0Zwc7bmTCKNJr_MFGLkzyVniJWoHt3H70PjQwbBIJCHWUt81LosvV_HXYn5VUgd66t56vGaSqsSoUfBKQ6E6kOaNUMkeH3lhJTwDEmbM4CE8aXU-I0JwVvWIzGj0LZ80ZQaFlVnsyjemRD_J00nvvYTnFFxQrYqPuAG_FwiOTTjhXa9jN/https%3A%2F%2Fstoryboard.openstack.org%2F%23%21%2Fstory%2F2006565">
https://storyboard.openstack.org/#!/story/2006565</a><o:p></o:p></p>
<p class="MsoNormal">[2] <a href="https://secure-web.cisco.com/1lg6bRclhOnIuCTNXqNNzu5HP7NvWj2JZPINvpVVylnyzyNA-CbH6KjbZvUprRemh2059BfLmav4DEsLWrhX1xkLPib6yuJMy5pQVaTwcVOmaB574W6rx9e37k3PjnkUWUmS1C9CC5qhVFXwvnd6fUj-h5CuKDS4m4--h9bgBavxdJIoSc4YNIdUcErJ8sVhbkTPyfx9hHab7AibQDGuGz6Wzr0gmb1HbyKG2GuEKnB7YJMGymnQiFck4g2c7ffpQeRQCxd2UILUn9husb4t8FVR4agZ1rKP9Zurf-l0LZi1L_ebRWrHel66slqlTq8m1/https%3A%2F%2Freview.opendev.org%2F%23%2Fc%2F689609%2F">
https://review.opendev.org/#/c/689609/</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
<p class="MsoNormal">BR<br/>
Austin Sun. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Dharwadkar, Sriram <<a href="mailto:Sriram.Dharwadkar@commscope.com">Sriram.Dharwadkar@commscope.com</a>>
<br/>
<b>Sent:</b> Wednesday, October 14, 2020 2:26 AM<br/>
<b>To:</b> <a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br/>
<b>Subject:</b> [Starlingx-discuss] Enabling CPU Manager<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have installed StarlingX edge cloud with version 4.0 with one controller + 2 worker nodes.
<o:p></o:p></p>
<p class="MsoNormal">In this setup, how to enable CPU Manager, so that dedicated cpu’s can be assigned to containers.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I modified the file /var/lib/kubelet/config.yaml, to have below contents and rebooted the worker node<o:p></o:p></p>
<p class="MsoNormal"><i>featureGates:<o:p></o:p></i></p>
<p class="MsoNormal"><i> CPUManager: true<o:p></o:p></i></p>
<p class="MsoNormal"><i>cpuManagerPolicy: static<o:p></o:p></i></p>
<p class="MsoNormal"><i>cpuManagerReconcilePeriod: 5s<o:p></o:p></i></p>
<p class="MsoNormal"><i>systemReserved:<o:p></o:p></i></p>
<p class="MsoNormal"><i> cpu: 2000m<o:p></o:p></i></p>
<p class="MsoNormal"><i>kubeReserved:<o:p></o:p></i></p>
<p class="MsoNormal"><i> cpu: 2000m<o:p></o:p></i></p>
<p class="MsoNormal"><i><o:p> </o:p></i></p>
<p class="MsoNormal">It has not taken effect. Any suggestions to enable CPU Manage ? Looks like documentation for this is not ready.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Sriram<o:p></o:p></p>
</div>
</body>
</html>