<div class="__aliyun_email_body_block"><div  style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div  style="clear:both;">I think the extra money is spent in go  runtime, probably.</div><div  style="clear:both;"><br ></div><blockquote  style="margin-right:.0px;margin-top:.0px;margin-bottom:.0px;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div  style="clear:both;">------------------------------------------------------------------</div><div  style="clear:both;">发件人:Dr. David Alan Gilbert <dgilbert@redhat.com></div><div  style="clear:both;">发送时间:2019年9月19日(星期四) 16:28</div><div  style="clear:both;">收件人:杨波(兵卫) <yb203166@antfin.com></div><div  style="clear:both;">抄 送:"Boeuf, Sebastien" <sebastien.boeuf@intel.com>; Samuel Ortiz <sameo@linux.intel.com>; kata-dev <kata-dev@lists.katacontainers.io></div><div  style="clear:both;">主 题:Re: [kata-dev] 回复: 回复: rust kata-agent status update</div><div  style="clear:both;"><br ></div>* 杨波 via kata-dev (kata-dev@lists.katacontainers.io) wrote:<br >> go-agent: about 11M <br >> rust-agent: about 1.1M<br ><br >Do you understand why? That's a big difference - I wonder where the<br >extra memory goes?<br ><br >Dave<br ><br >> It is also in README.md at here: <a  href="https://github.com/alipay/kata-rust-agent/blob/master/README.md" target="_blank">https://github.com/alipay/kata-rust-agent/blob/master/README.md</a><br >> <br >> <br >> <br >> <br >> <br >> ------------------------------------------------------------------<br >> 发件人:Boeuf, Sebastien <sebastien.boeuf@intel.com><br >> 发送时间:2019年9月19日(星期四) 05:28<br >> 收件人:杨波(兵卫) <yb203166@antfin.com>; Samuel Ortiz <sameo@linux.intel.com><br >> 抄 送:kata-dev <kata-dev@lists.katacontainers.io><br >> 主 题:RE: [kata-dev] 回复: rust kata-agent status update<br >> <br >> Hi,<br >> <br >> I love the footprint drop due to using Rust :)<br >> Instead of giving only the numbers from the Rust agent, could you show the difference between the Golang agent and Rust agent?<br >> <br >> Thanks,<br >> Sebastien<br >> <br >> From: 杨波 via kata-dev [kata-dev@lists.katacontainers.io]<br >> Sent: Sunday, September 15, 2019 6:52 PM<br >> To: Samuel Ortiz<br >> Cc: kata-dev<br >> Subject: [kata-dev] 回复: rust kata-agent status update<br >> <br >> footprint:<br >> RssAnon: 1700 kB<br >> RssFile: 1632 kB<br >> <br >> We choose grpc-rs because it is verified in product environment, grpcio is not.<br >> <br >> <br >> <br >> ------------------------------------------------------------------<br >> 发件人:Samuel Ortiz <sameo@linux.intel.com><br >> 发送时间:2019年9月12日(星期四) 20:44<br >> 收件人:杨波(兵卫) <yb203166@antfin.com><br >> 抄 送:kata-dev <kata-dev@lists.katacontainers.io>; 王旭(循环) <gnawux@alibaba-inc.com><br >> 主 题:Re: [kata-dev] rust kata-agent status update<br >> <br >>  Hi,<br >> <br >>  A couple of questions:<br >> <br >>  1) Do we know what the grps-rs memory footprint is?<br >>  2) What was the rationale behind picking grps-rs over e.g. grpcio?<br >> <br >>  Cheers,<br >>  Samuel.<br >> <br >>  On Thu, Sep 12, 2019 at 04:53:29PM +0800, 杨波 via kata-dev wrote:<br >>  > Hi, folks:<br >>  > Let me update some progress of the rust agent.<br >>  > First of all, thanks for James' kindly help on the project.<br >>  > The functions of rust agent are almost finished. we have fixed several bugs to stablize it. Ci and osbuilder are still missing. We have to run end-to-end tests manually right now.<br >>  > <br >>  > - Refactor rust agent API. Remove overused matches, clean up code<br >>  > - Refactor communication between parent/child/grandchild, use raw bytes instead of serde_json to simplify communication<br >>  > - Refactor Process struct, remove duplicate/unused fields<br >>  > - Add Makefile to simplify building --- by jodh-intel<br >>  > - Fix up unit test for netlink<br >>  > - Fix up test run against musl and release<br >>  > - Implement debug console support<br >>  > - Implement command line parse partly<br >>  > - Implement Spec valaidator<br >>  > - Implement Hook infrastructure<br >>  > <br >>  > We are targeting to land the rust agent to Kata org by October, and you may check out the current WIP repo here: <a  href="https://github.com/alipay/kata-rust-agent" target="_blank">https://github.com/alipay/kata-rust-agent</a><br >>  > <br >>  > Cheers!<br >>  > <br >> <br >>  > _______________________________________________<br >>  > kata-dev mailing list<br >>  > kata-dev@lists.katacontainers.io<br >>  > <a  href="http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev" target="_blank">http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev</a><br >> <br >> <br ><br >> _______________________________________________<br >> kata-dev mailing list<br >> kata-dev@lists.katacontainers.io<br >> <a  href="http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev" target="_blank">http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev</a><br ><br >--<br >Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK</blockquote></div></div>