<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"> <span><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);"><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; clear: both;">Hi All,</div><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; clear: both;">I am using systemd-nspawn(systemd version 237) to create a container in Yocto's embedded Linux environment on Cortex-A53<br></div><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; clear: both;">Content of the file</p><blockquote style="margin: 0px 0px 10px; padding: 10px; border-width: 0px 0px 0px 2px; border-left-style: solid; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(255, 235, 142); font-stretch: inherit; line-height: inherit; vertical-align: baseline; background-color: rgb(255, 248, 220);"><p style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; clear: both;">/etc/systemd/system/systemd-nspawn\@.service.d/override.conf</p></blockquote><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; clear: both;">is</div><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; vertical-align: baseline; clear: both;"><div>[Service]</div><div>ExecStart=</div><div>ExecStart=/usr/bin/systemd-nspawn --quiet --boot --link-journal=try-guest --machine=%i -n --property=CPUQuota=10%</div></div></div><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);">I am trying to load the CPU with </div><blockquote style="margin: 0px 0px 10px; padding: 10px; border-width: 0px 0px 0px 2px; border-left-style: solid; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(255, 235, 142); font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; background-color: rgb(255, 248, 220); color: rgb(36, 39, 41);"><p style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; clear: both;">sha1sum /dev/zero &</p></blockquote><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);">or </p><blockquote style="margin: 0px 0px 10px; padding: 10px; border-width: 0px 0px 0px 2px; border-left-style: solid; border-top-color: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: rgb(255, 235, 142); font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; background-color: rgb(255, 248, 220); color: rgb(36, 39, 41);"><p style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; clear: both;">for i in 1 2 3 4; do while : ; do : ; done & done</p></blockquote><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);"> inside the container but the top command on host shows that always they are at 50% CPU usage altogether(4 sh processes and one sha1sum process, if only sha1sum process is started, it alone uses 50% if not 10% each)</p><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);">I am unable to understand if there is any other setting where this 50% limitation is coming from? And why CPU quota passed to systemd-nspawn is not effective?</div><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);">I also tried with /etc/systemd/system/systemd-nspawn@.service.d/cpu.conf, still the same result but if I pass MemoryMax=50M, process gets killed if i try to use more than 50M in total inside the container.</div><div style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15px; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);">If anyone knows please help. Thank You.</div></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"><br></div><div class="ydp93686c86yiv7159065108ydp7025ebf2signature" style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;">Regards<br>Mahipal</div></span><br></div></div></div></body></html>