Limiting Yocto Memory Usage
Luis Merayo <[email protected]> Fri, 10 Jul 2026 15:26:55 -0600
| Newsgroups | org.yoctoproject.lists.yocto |
|---|---|
| Message-ID | <CAPGGCfrQqFjk68=6_JXCrj3XyxK1inZUNzjx4JZikm0MfhfQFg@mail.gmail.com> |
--00000000000013ab5a065648676c 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 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 -- <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. --00000000000013ab5a065648676c 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= " style=3D"box-sizing:border-box;font-size:16px">Hi,<br style=3D"box-sizing= :border-box"><br style=3D"box-sizing:border-box">I would like to know if th= ere is a way to limit Bitbake's Memory usage to a specific percentage o= f the available RAM. For example, can the Yocto build be limited to use a m= aximum of 70% of RAM?<br style=3D"box-sizing:border-box"><br style=3D"box-s= izing:border-box">Could these three variables achieve this?<br style=3D"box= -sizing:border-box"><br style=3D"box-sizing:border-box"></font><span style= =3D"box-sizing:border-box;color:rgb(51,51,51);font-size:16px;font-family:Ve= rdana,sans-serif;background-color:rgb(252,252,252)">=C2=A0</span><a class= =3D"gmail-reference gmail-internal" href=3D"https://docs.yoctoproject.org/d= ev/ref-manual/variables.html#term-BB_PRESSURE_MAX_CPU" rel=3D"nofollow noop= ener" target=3D"_blank" style=3D"box-sizing:border-box;color:rgb(68,68,68);= text-decoration:none;font-size:16px;font-family:Verdana,sans-serif"><span c= lass=3D"gmail-xref gmail-std gmail-std-term" style=3D"box-sizing:border-box= ">BB_PRESSURE_MAX_CPU</span></a><span style=3D"color:rgb(51,51,51);font-fam= ily:system-ui,"Segoe UI",Roboto,"Helvetica Neue","= Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Co= lor Emoji","Segoe UI Emoji","Segoe UI Symbol",&quo= t;Noto Color Emoji";font-size:16px">,=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_IO" rel=3D"nofollow noopener" target= =3D"_blank" style=3D"box-sizing:border-box;color:rgb(68,68,68);text-decorat= ion:none;font-size:16px;font-family:Verdana,sans-serif"><span class=3D"gmai= l-xref gmail-std gmail-std-term" style=3D"box-sizing:border-box">BB_PRESSUR= E_MAX_IO</span></a><span style=3D"color:rgb(51,51,51);font-family:system-ui= ,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans&quo= t;,"Liberation Sans",Arial,sans-serif,"Apple Color Emoji&quo= t;,"Segoe UI Emoji","Segoe UI Symbol","Noto Color = Emoji";font-size:16px">=C2=A0,=C2=A0</span><a class=3D"gmail-reference= gmail-internal" href=3D"https://docs.yoctoproject.org/dev/ref-manual/varia= bles.html#term-BB_PRESSURE_MAX_MEMORY" rel=3D"nofollow noopener" target=3D"= _blank" style=3D"box-sizing:border-box;color:rgb(68,68,68);text-decoration:= none;font-size:16px;font-family:Verdana,sans-serif"><span class=3D"gmail-xr= ef gmail-std gmail-std-term" style=3D"box-sizing:border-box">BB_PRESSURE_MA= X_MEMORY</span></a><font color=3D"#232e3c" face=3D"Work Sans, sans-serif" s= tyle=3D"box-sizing:border-box;font-size:16px"><br style=3D"box-sizing:borde= r-box"><br style=3D"box-sizing:border-box">I see the range for these variab= les is from 1 to=C2=A0</font><span style=3D"box-sizing:border-box;color:rgb= (51,51,51);font-size:16px;font-family:Verdana,sans-serif;background-color:r= gb(252,252,252)">1000000, so I would like to understand if there is a way t= o specify their values as a function of the available=C2=A0RAM.</span><font= color=3D"#232e3c" face=3D"Work Sans, sans-serif" style=3D"box-sizing:borde= r-box;font-size:16px"><br style=3D"box-sizing:border-box"><br style=3D"box-= sizing:border-box">Regards,</font></div><div><font color=3D"#232e3c" face= =3D"Work Sans, sans-serif" style=3D"box-sizing:border-box;font-size:16px"><= br></font></div><div><font color=3D"#232e3c" face=3D"Work Sans, sans-serif"= style=3D"box-sizing:border-box;font-size:16px">Luis</font></div><div><div = dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><d= iv dir=3D"ltr"><span><div dir=3D"ltr" style=3D"margin-left:0pt" align=3D"le= ft"><span><br><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= > --00000000000013ab5a065648676c--