<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="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;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.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" style="word-wrap:break-word" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Thanks Tao.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Yes tried it and set the memory to 8000 MiB. With the increased memory, alarm is not raised in the system.<o:p></o:p></p>
<p class="MsoNormal">With 6400 MiB it raise a Major alarm.<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">Ankush<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> Liu, Tao <Tao.Liu@windriver.com> <br/>
<b>Sent:</b> Thursday, February 18, 2021 8:23 PM<br/>
<b>To:</b> open infra <openinfradn@gmail.com>; Ildiko Vancsa <ildiko.vancsa@gmail.com><br/>
<b>Cc:</b> Rai, Ankush <Ankush.Rai@commscope.com>; starlingx-discuss@lists.starlingx.io<br/>
<b>Subject:</b> RE: [Starlingx-discuss] Alarm "Memory threshold"<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">Yes, you can modify the host memory reservation via system command.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"># system host-memory-modify -m <Platform Reserved MiB> <hostname or id> <processor><o:p></o:p></p>
<p class="MsoNormal">system host-memory-modify -m 6400 1 0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"># show current memory configuration<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:8.0pt;line-height:106%">system host-memory-show <hostname or id> <processor><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:8.0pt;line-height:106%">system host-memory-list <hostname or id><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Tao<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> open infra <<a href="mailto:openinfradn@gmail.com">openinfradn@gmail.com</a>>
<br/>
<b>Sent:</b> Wednesday, February 17, 2021 9:55 PM<br/>
<b>To:</b> Ildiko Vancsa <<a href="mailto:ildiko.vancsa@gmail.com">ildiko.vancsa@gmail.com</a>><br/>
<b>Cc:</b> Rai, Ankush <<a href="mailto:Ankush.Rai@commscope.com">Ankush.Rai@commscope.com</a>>;
<a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br/>
<b>Subject:</b> Re: [Starlingx-discuss] Alarm "Memory threshold"<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:12.0pt;background:#FFEB9C">
<span style="font-size:10.0pt;color:red">[Please note: This e-mail is from an EXTERNAL e-mail address]</span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Is there a way we can adjust memory and CPU of controller-0 before we deploy starlingx?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">In my case without having a single VM under OpenStack has following memory usage though host machine (I use AIO simplex on the virtualized environment) has enough memory.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">controller-0:~$ free -m<br/>
              total        used        free      shared  buff/cache   available<br/>
Mem:          17894       11131         406          65        6356        5967<br/>
Swap:             0           0           0<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Sun, Feb 14, 2021 at 7:55 PM Ildiko Vancsa <<a href="mailto:ildiko.vancsa@gmail.com">ildiko.vancsa@gmail.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal">Hi,<br/>
<br/>
I saw that you have a ‘reserved for platform’ memory entry with the value of 4600 MiB.<br/>
<br/>
I’ve found entries below that report platform memory usage having an over 100% value:<br/>
<br/>
daemon.log:2021-02-14T07:14:55.000 controller-0 collectd[130887]: info platform memory usage: Usage: 114.7%; Reserved: 4600.0 MiB, Platform: 5274.3 MiB (Base: 4684.1, k8s-system: 590.2), k8s-addon: 0.0<br/>
<br/>
So while the overall memory usage in the system isn’t over the threshold I assume the usage of that reserved amount of memory still exceeds it. Have you seen any configuration option to increase the amount of platform memory?<br/>
<br/>
You can also look into collectd if that leads you closer to what it is reading to get those values.<br/>
<br/>
I don’t have access to a StarlingX install to look into this, so I cannot tell where to look for that.<br/>
<br/>
I found some documentation for Kubernetes to set memory limits, but I’m not sure that applies here. (<a href="https://secure-web.cisco.com/19X78_iEHTgU4Svrx4A22-30zis4qBzzl2fQbAvx4_PaCikwL7jPMexe0GD4Y1wEDr7oMQgMKmLPRBN3rbXJLzPjnBg4veQrNGB_Ug6OV4vw6imfQcNl91uo96DZx28PFUY1_-_n7mdpzpFN7hTNGqxe55W1o2hFAmvGFiQGtNW4ChxdIQ8ShjqNE6jYNrBSlBzuQ-rTRSwYVnRxo0HvwhnUl2NgBE0YsFVWHyzu89GsnBk4-YFPhmcp3rHA0TxeXbppb1_VuWgePIG5bqZuojZOx-lYP_zPKYWYEuXZ-2aGOSKOVtkGtQoL-n9ydRqQk/https%3A%2F%2Fkubernetes.io%2Fdocs%2Ftasks%2Fadminister-cluster%2Fmanage-resources%2Fmemory-default-namespace%2F">https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/</a>)<br/>
<br/>
Have you looked into the above already?<br/>
<br/>
Thanks,<br/>
Ildikó<br/>
<br/>
<br/>
> On Feb 14, 2021, at 10:51, Rai, Ankush <<a href="mailto:Ankush.Rai@commscope.com">Ankush.Rai@commscope.com</a>> wrote:<br/>
> <br/>
> Not sure exactly which log file to check. Captured some data here, please check if this can help. 
<br/>
>  <br/>
> Software Version: 20.06<br/>
> Memory:<br/>
> Reserved for Platform: 4600 MiB<br/>
> Usable Total: 13293 MiB<br/>
> Available: 13293 MiB<br/>
>  <br/>
> The fm has logged these events.<br/>
>  <br/>
> fm-event.log:2021-02-10T08:57:25.000 controller-0 fmManager: info { "event_log_id" : "100.103", "reason_text" : "Platform Memory threshold exceeded ; threshold 80.00%, actual 88.83%", "entity_instance_id" : "region=RegionOne.system=6e232236-df0a-4bc5-9006-76f782b5493f.host=controller-0",
 "severity" : "major", "state" : "set", "timestamp" : "2021-02-10 08:57:25.484131" }<br/>
> fm-event.log:2021-02-10T09:17:55.000 controller-0 fmManager: info { "event_log_id" : "100.103", "reason_text" : "Platform Memory threshold exceeded ; threshold 90.00%, actual 95.19%", "entity_instance_id" : "region=RegionOne.system=6e232236-df0a-4bc5-9006-76f782b5493f.host=controller-0",
 "severity" : "critical", "state" : "set", "timestamp" : "2021-02-10 09:17:55.482154" }<br/>
> <br/>
<br/>
[snip]<br/>
<br/>
>  <br/>
> From: Ildiko Vancsa <<a href="mailto:ildiko.vancsa@gmail.com">ildiko.vancsa@gmail.com</a>>
<br/>
> Sent: Sunday, February 14, 2021 2:42 PM<br/>
> To: Rai, Ankush <<a href="mailto:Ankush.Rai@commscope.com">Ankush.Rai@commscope.com</a>><br/>
> Cc: <a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br/>
> Subject: Re: [Starlingx-discuss] Alarm "Memory threshold"<br/>
>  <br/>
>  <br/>
> Hi Ankush,<br/>
>  <br/>
> Do you have any log entries on the system you could share here that show the memory readings the alarm might be triggered by?<br/>
>  <br/>
> Thanks,<br/>
> Ildikó<br/>
>  <br/>
>  <br/>
> > On Feb 14, 2021, at 09:26, Rai, Ankush <<a href="mailto:Ankush.Rai@commscope.com">Ankush.Rai@commscope.com</a>> wrote:<br/>
> > <br/>
> > Hi, <br/>
> >  <br/>
> > Below alarm is getting raised for every node of the central and edge cloud.<br/>
> >  <br/>
> > “Platform Memory threshold exceeded ; threshold 90.00%, actual 95.19%”<br/>
> >  <br/>
> > It looks to be the false alarm as nodes are having enough available memory. Please config the root cause of this alarm.<br/>
> >  <br/>
> > Thanks,<br/>
> > Ankush<br/>
> >  <br/>
> >  <br/>
> > _______________________________________________<br/>
> > Starlingx-discuss mailing list<br/>
> > <a href="mailto:Starlingx-discuss@lists.starlingx.io">Starlingx-discuss@lists.starlingx.io</a><br/>
> > <a href="http://secure-web.cisco.com/1PV8HDMvVRW0RqVu-SKTRWk6WWzv0LMknZ5lZPnq_3AC44IJMRoTkCmBzbDzfSRKy1sR51Ro2VO06UwWt-4FdJVml-0HlHOjpHq9J5nmMvsPseu4RcqzNaQvw5haLJsQqt0HLmSNJtbid7y2kxIipLb1hZwBP5gx-ZIdH71ha2sHnU9iy8kbtB51Y5tHpLdGIcUYnJfot6KLcOe6xS2sPGBEOGVhleDZ83q7d7l9kxhO6HkHdmUPURKbTELhCqw8pf-r7fiE8usjs79rMvOl3im3n1pT0kPRXHzHN_DY7SMgFhzOa2MXDTiDCKn-33Ump/http%3A%2F%2Flists.starlingx.io%2Fcgi-bin%2Fmailman%2Flistinfo%2Fstarlingx-discuss">
http://secure-web.cisco.com/1PV8HDMvVRW0RqVu-SKTRWk6WWzv0LMknZ5lZPnq_3AC44IJMRoTkCmBzbDzfSRKy1sR51Ro2VO06UwWt-4FdJVml-0HlHOjpHq9J5nmMvsPseu4RcqzNaQvw5haLJsQqt0HLmSNJtbid7y2kxIipLb1hZwBP5gx-ZIdH71ha2sHnU9iy8kbtB51Y5tHpLdGIcUYnJfot6KLcOe6xS2sPGBEOGVhleDZ83q7d7l9kxhO6HkHdmUPURKbTELhCqw8pf-r7fiE8usjs79rMvOl3im3n1pT0kPRXHzHN_DY7SMgFhzOa2MXDTiDCKn-33Ump/http%3A%2F%2Flists.starlingx.io%2Fcgi-bin%2Fmailman%2Flistinfo%2Fstarlingx-discuss</a><br/>
>  <br/>
>  <br/>
<br/>
<br/>
_______________________________________________<br/>
Starlingx-discuss mailing list<br/>
<a href="mailto:Starlingx-discuss@lists.starlingx.io">Starlingx-discuss@lists.starlingx.io</a><br/>
<a href="http://secure-web.cisco.com/1qxK_Hzlr3LuQ5ToGjFQfFcJRc4LxcM_E1_u9RaTM6FRXOAhrR_r9OazzSSZ85hQoRG69vUY-MARMoSFbBMvtth9WbfCGpwWGko939bVPej5XkV2807I-RoaZvQMNiOp0qSgozAKVz3jEbtHHLhvhkoxoVtIR2yWFwn9cN9dW1ARQCCjrLa8Jms4lL1RX725wYhDZohZLfjzJs-aSAAv5mEkwgpxF_GsIeiSWykUsZITB5hzHgGNRQ4uvZiVdtbiIzG0NsJeLzM6v4Cn0izdNwWH3QyOVUrPcUVTr1TXnqdAPkuy1aFCzbKUL3zdr2FVs/http%3A%2F%2Flists.starlingx.io%2Fcgi-bin%2Fmailman%2Flistinfo%2Fstarlingx-discuss">http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>