<div dir="ltr">In "/opt/kata/bin/kata-runime update --help", it has the "--cpuset-mems value" option. I think this works if there is already a kata container running. Is there a way to set the cpuset-mems to 0 in the configurations.toml file (for example) so that all the kata containers uses the NUMA node 0 on memory usage?<div><br></div><div>In my environment, the kata containers are started through CRI API. If not possible to preset cpuset-mems for all kata containers, I have to find a programmatic way to set the cpuset-mems.<br><div><br></div><div>Thanks,</div><div>Al</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2019 at 9:56 AM Montes, Julio <<a href="mailto:julio.montes@intel.com">julio.montes@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="text-align:left;direction:ltr">
<div>they are used to specify in which nodes you allow the execution of the containers, these nodes contains information such as what CPUs are local to the node,</div>
<div>I'm not an expert on this, but I guess they can be used to reduce latency or improve something</div>
<div><br>
</div>
<div>On Mon, 2019-11-11 at 09:45 -0800, Al Lau wrote:</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div dir="ltr">The nodes in /sys/devices/system/node are memory nodes and they are used for execution of the containers. Is this the purpose of the nodes?
<div><br>
</div>
<div>Thanks,</div>
<div>Al</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2019 at 8:42 AM Montes, Julio <<a href="mailto:julio.montes@intel.com" target="_blank">julio.montes@intel.com</a>> wrote:<br>
</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div style="text-align:left;direction:ltr">
<div>Thanks,</div>
<div><br>
</div>
<div>seems like by default the container engine that you're using tries to assign both nodes (0,1) to the container, unfortunately inside the VM (where the container is created)</div>
<div>there is only one node (0), as a temporal workaround, can you change this behavior? (i.e docker run --cpuset-mems="0" ....)</div>
<div><br>
</div>
<div><br>
</div>
<div>On Mon, 2019-11-11 at 08:36 -0800, Al Lau wrote:</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div dir="ltr"><font face="monospace">$ ls -l /sys/devices/system/node<br>
total 0<br>
-r--r--r-- 1 root root 4096 Nov 11 08:32 has_cpu<br>
-r--r--r-- 1 root root 4096 Nov 11 08:32 has_memory<br>
-r--r--r-- 1 root root 4096 Nov 11 08:32 has_normal_memory<br>
drwxr-xr-x 4 root root 0 Nov 8 01:45 node0<br>
drwxr-xr-x 4 root root 0 Nov 8 01:45 node1<br>
-r--r--r-- 1 root root 4096 Nov 11 08:32 online<br>
-r--r--r-- 1 root root 4096 Nov 11 08:32 possible<br>
drwxr-xr-x 2 root root 0 Nov 11 08:32 power<br>
-rw-r--r-- 1 root root 4096 Nov 8 01:45 uevent<br>
$ ls -l /sys/devices/system/node | grep node | wc -l <br>
2</font><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2019 at 6:28 AM Montes, Julio <<a href="mailto:julio.montes@intel.com" target="_blank">julio.montes@intel.com</a>> wrote:<br>
</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div style="text-align:left;direction:ltr">
<div>On Mon, 2019-11-11 at 08:23 -0600, Julio Montes wrote:</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div>Hi Al</div>
<div><br>
</div>
<div>how many memory nodes have your system? ( ls /sys/devices/system/ | grep node | wc -l )</div>
</blockquote>
<div><br>
</div>
<div>* ls /sys/devices/system/node | grep node | wc -l </div>
<div><br>
</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div><br>
</div>
<div>can you change the number of cpuset-mems to 0? for example in docker: docker run --cpuset-mems="0" ....</div>
<div><br>
</div>
<div>-</div>
<div>Julio</div>
<div><br>
</div>
<div>On Fri, 2019-11-08 at 14:56 -0800, Al Lau wrote: </div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div dir="ltr">Hi Julio,
<div>Attached is the configuration.toml file. I hope this is what you are looking. for.</div>
<div>Thanks,</div>
<div>Al</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Nov 8, 2019 at 2:11 PM Montes, Julio <<a href="mailto:julio.montes@intel.com" target="_blank">julio.montes@intel.com</a>> wrote:<br>
</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div style="text-align:left;direction:ltr">
<div>I'd like to see the kata configuration and pod configuration (yaml)</div>
<div><br>
</div>
<div>running custom kernel?</div>
<div><br>
</div>
<div>On Fri, 2019-11-08 at 14:05 -0800, Al Lau wrote:</div>
<blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex">
<div dir="ltr">My environment configured containerd with kata-runtime. I followed the setup instructions on <a href="https://github.com/kata-containers/documentation/blob/master/how-to/containerd-kata.md#configuration" target="_blank">https://github.com/kata-containers/documentation/blob/master/how-to/containerd-kata.md#configuration</a>
<div><br>
</div>
<div>When I attempt to create a kata container, I got this error message. Anyone know how I can resolve this?<br>
</div>
<div>
<div><br>
</div>
<div><font face="monospace">rpc error: code = Unknown desc = failed to create containerd task: Could not run process: container_linux.go:346: starting container process caused "process_linux.go:297: applying cgroup configuration for process caused \"failed
to write 0,1 to cpuset.mems: write /sys/fs/cgroup/cpuset/<a href="http://k8s.io/f1fdd8d5be9030388e4e04dd7d42df9e77a3d46ecb4922ecb2936bf92f74595d/cpuset.mems" target="_blank">k8s.io/f1fdd8d5be9030388e4e04dd7d42df9e77a3d46ecb4922ecb2936bf92f74595d/cpuset.mems</a>:
numerical result out of range\"": unknown </font><br>
</div>
<div><br>
</div>
<div><font face="monospace">kata-runtime : 1.8.2<br>
commit : cdc30296c370414d8ef445abd06378199775d076<br>
OCI specs: 1.0.1-dev<br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">containerd <a href="http://github.com/containerd/containerd" target="_blank">
github.com/containerd/containerd</a> 1.2.4 e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e<br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">$ cat /etc/containerd/config.toml</font></div>
<div><font face="monospace">. . .</font></div>
<div><font face="monospace"> [plugins.cri.containerd.runtimes.kata]<br>
runtime_type = "io.containerd.kata.v2"<br>
[plugins.cri.containerd.runtimes.kata.options]<br>
ConfigPath = "/etc/kata-containers/configuration.toml"<br>
</font></div>
<div><font face="monospace"> [plugins.cri.cni]<br>
bin_dir = "/opt/cni/bin"<br>
conf_dir = "/etc/cni/net.d"<br>
conf_template = ""</font><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Al</div>
<div><br>
</div>
</div>
</div>
<pre>_______________________________________________</pre>
<pre>kata-dev mailing list</pre>
<a href="mailto:kata-dev@lists.katacontainers.io" target="_blank">
<pre>kata-dev@lists.katacontainers.io</pre>
</a><br>
<a href="http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev" target="_blank">
<pre>http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev</pre>
</a><br>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote></div>