Limiting Yocto Memory Usage
Luis Merayo <[email protected]> Fri, 10 Jul 2026 14:56:29 -0600
| Newsgroups | org.yoctoproject.lists.yocto |
|---|---|
| Message-ID | <CAPGGCfqfv_HHdHZQzyVtV3_GJwxWH80FoQa3tJhOe+mfFoqgjw@mail.gmail.com> |
--000000000000319e76065647fae9 Content-Type: text/plain; charset="UTF-8" Hi, I would like to know if there is a way to limit Bitbake's Memory usage to a specific percentage of the available RAM. For example, can the Yocto build be limited to use a maximum of 70% of RAM? Could these three variables be used to achieve this? BB_PRESSURE_MAX_CPU <https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-BB_PRESSURE_MAX_CPU> , BB_PRESSURE_MAX_IO <https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-BB_PRESSURE_MAX_IO> , BB_PRESSURE_MAX_MEMORY <https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-BB_PRESSURE_MAX_MEMORY> I see the range for these variables is from 1 to 1000000, so I would like to understand if there is a way to specify their values as a function of the available RAM. Regards, Luis Orlando Merayo Gatica Embedded Software Engineer www.ridgerun.com <http://ridgerun.com> LinkedIn <https://www.linkedin.com/company/ridgerun/> | X <https://x.com/RidgeRunX> | YouTube <https://www.youtube.com/@ridgerunengineering6760> | Products Catalog <https://hubs.ly/Q02wR_H00> -- <https://ridgerun.ai/> This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged, or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments, delete this email message and any attachments immediately. --000000000000319e76065647fae9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><font color=3D"#232e3c" face=3D"Work Sans, sans-serif= " size=3D"4">Hi,<br><br>I would like to know if there is a way to limit Bit= bake's Memory usage to a specific percentage of the available RAM. For = example, can the Yocto build be limited to use a maximum of 70% of RAM?<br>= <br>Could these three variables be used to achieve this?<br><br></font><spa= n style=3D"color:rgb(51,51,51);font-family:Verdana,Sans,sans-serif;font-siz= e:16px;background-color:rgb(252,252,252)">=C2=A0</span><a class=3D"gmail-re= ference gmail-internal" href=3D"https://docs.yoctoproject.org/dev/ref-manua= l/variables.html#term-BB_PRESSURE_MAX_CPU" style=3D"box-sizing:border-box;c= olor:rgb(68,68,68);outline:0px;background:rgb(222,222,222);font-family:Verd= ana,Sans,sans-serif;font-size:16px"><span class=3D"gmail-xref gmail-std gma= il-std-term" style=3D"box-sizing:border-box">BB_PRESSURE_MAX_CPU</span></a>= ,=C2=A0<a class=3D"gmail-reference gmail-internal" href=3D"https://docs.yoc= toproject.org/dev/ref-manual/variables.html#term-BB_PRESSURE_MAX_IO" style= =3D"box-sizing:border-box;color:rgb(68,68,68);background:rgb(252,252,252);f= ont-family:Verdana,Sans,sans-serif;font-size:16px"><span class=3D"gmail-xre= f gmail-std gmail-std-term" style=3D"box-sizing:border-box">BB_PRESSURE_MAX= _IO</span></a>=C2=A0,=C2=A0<a class=3D"gmail-reference gmail-internal" href= =3D"https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-BB_PRE= SSURE_MAX_MEMORY" style=3D"box-sizing:border-box;color:rgb(68,68,68);backgr= ound:rgb(252,252,252);font-family:Verdana,Sans,sans-serif;font-size:16px"><= span class=3D"gmail-xref gmail-std gmail-std-term" style=3D"box-sizing:bord= er-box">BB_PRESSURE_MAX_MEMORY</span></a><font color=3D"#232e3c" face=3D"Wo= rk Sans, sans-serif" size=3D"4"><br><br>I see the range for these variables= is from 1 to=C2=A0</font><span style=3D"color:rgb(51,51,51);font-family:Ve= rdana,Sans,sans-serif;font-size:16px;background-color:rgb(252,252,252)">100= 0000, so I would like to understand if there is a way to specify their valu= es as a function of the available=C2=A0RAM.</span><font color=3D"#232e3c" f= ace=3D"Work Sans, sans-serif" size=3D"4"><br><br>Regards,</font></div><div>= <div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signatur= e"><div dir=3D"ltr"><span><div dir=3D"ltr" style=3D"margin-left:0pt" align= =3D"left"><span><div dir=3D"ltr" style=3D"margin-left:0pt" align=3D"left"><= table style=3D"border:none;border-collapse:collapse"><colgroup><col width= =3D"175"><col width=3D"9"><col width=3D"301"></colgroup><tbody><tr style=3D= "height:105.98699999999998pt"><td colspan=3D"2" style=3D"border-left:solid = #ffffff 1pt;border-right:solid #ffffff 1pt;border-bottom:solid #ffffff 1pt;= border-top:solid #ffffff 1pt;vertical-align:middle;padding:5pt 5pt 5pt 5pt;= overflow:hidden"><p dir=3D"ltr" style=3D"line-height:1.2;margin-right:1.5pt= ;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-famil= y:"Work Sans",sans-serif;color:rgb(35,46,60);background-color:tra= nsparent;vertical-align:baseline"><span style=3D"border:none;display:inline= -block;overflow:hidden;width:170px;height:61px"><img src=3D"https://lh7-rt.= googleusercontent.com/docsz/AD_4nXdzRZwvuOFNi4jqDxGRVtBXtVItS4luQA3YqtI4MM4= Nsadw5eIboI8Wxnn2TfhQmpiFcgQMMV4snk3zpI-c13p4lCUPFY9OaamBsMzPZ6b5XK-iTlohUD= lGvDFSLr7HrwnDoewd260B_Gso98LJRCV-9ym6?key=3D-o2I1kBHE-f0uDWN-tHGwQ" width= =3D"170" height=3D"61" style=3D"margin-left:0px;margin-top:0px"></span></sp= an></p></td><td style=3D"border-left:solid #ffffff 1pt;border-right:solid #= ffffff 1pt;border-bottom:solid #ffffff 1pt;border-top:solid #ffffff 1pt;ver= tical-align:middle;padding:5pt 5pt 5pt 5pt;overflow:hidden"><p dir=3D"ltr" = style=3D"line-height:1.2;margin-right:3.75pt;margin-top:0pt;margin-bottom:0= pt"><font color=3D"#232e3c" face=3D"Work Sans, sans-serif"><span style=3D"f= ont-size:12px">Luis Orlando Merayo Gatica</span></font></p><p dir=3D"ltr" s= tyle=3D"line-height:1.2;margin-right:3.75pt;margin-top:0pt;margin-bottom:0p= t">Embedded Software Engineer<br></p><br><p dir=3D"ltr" style=3D"line-heigh= t:1.7999999999999998;margin-right:3.75pt;margin-top:0pt;margin-bottom:0pt">= <a href=3D"http://ridgerun.com" target=3D"_blank"><span style=3D"font-size:= 8pt;font-family:"Work Sans",sans-serif;color:rgb(35,46,60);vertic= al-align:baseline">www.ridgerun.com</span></a></p><p dir=3D"ltr" style=3D"l= ine-height:1.7999999999999998;margin-right:3.75pt;margin-top:0pt;margin-bot= tom:0pt"><a href=3D"https://www.linkedin.com/company/ridgerun/" target=3D"_= blank"><span style=3D"font-size:8pt;font-family:"Work Sans",sans-= serif;color:rgb(7,55,99);vertical-align:baseline">LinkedIn</span></a><span = style=3D"font-size:8pt;font-family:"Work Sans",sans-serif;color:r= gb(7,55,99);vertical-align:baseline"> | </span><a href=3D"https://x.com/Rid= geRunX" target=3D"_blank"><span style=3D"font-size:8pt;font-family:"Wo= rk Sans",sans-serif;color:rgb(7,55,99);vertical-align:baseline">X</spa= n></a><span style=3D"font-size:8pt;font-family:"Work Sans",sans-s= erif;color:rgb(7,55,99);vertical-align:baseline"> | </span><a href=3D"https= ://www.youtube.com/@ridgerunengineering6760" target=3D"_blank"><span style= =3D"font-size:8pt;font-family:"Work Sans",sans-serif;color:rgb(7,= 55,99);vertical-align:baseline">YouTube</span></a><span style=3D"font-size:= 8pt;font-family:"Work Sans",sans-serif;color:rgb(7,55,99);vertica= l-align:baseline"> | </span><a href=3D"https://hubs.ly/Q02wR_H00" target=3D= "_blank"><span style=3D"font-size:8pt;font-family:"Work Sans",san= s-serif;color:rgb(7,55,99);vertical-align:baseline">Products Catalog</span>= </a><span style=3D"font-size:8pt;font-family:"Work Sans",sans-ser= if;color:rgb(7,55,99);vertical-align:baseline">=C2=A0</span></p></td></tr><= /tbody></table></div><br></span></div></span></div></div></div></div> <br> <div><a href=3D"https://ridgerun.ai/" target=3D"_blank"><img src=3D"https:/= /developer.ridgerun.com/wiki/images/thumb/5/57/RidgeRun.ai_banner.png/800px= -RidgeRun.ai_banner.png?20260326200537" alt=3D"File:RidgeRun.ai banner.png"= ></a><span style=3D"color:rgb(0,0,0);font-family:"Work Sans",sans= -serif;font-size:9.33333px;text-align:justify"></span></div><font size=3D"1= ">This email and any attachments are intended for the sole use of the named= recipient(s) and contain(s) confidential information that may be proprieta= ry, privileged, or copyrighted under applicable law. If you are not the int= ended recipient, do not read, copy, or forward this email message or any at= tachments, delete this email message and any attachments immediately.</font= > --000000000000319e76065647fae9--