<div dir="ltr"><div><div><div>Thanks Lukas.<br><br></div>So this is not the reason why proc_inode_cache consume high memory ?<br><br></div>Thanks,<br></div>Linbo<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-15 18:06 GMT+08:00 Lukas Larsson <span dir="ltr"><<a href="mailto:lukas@erlang.org" target="_blank">lukas@erlang.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Dec 15, 2015 at 9:51 AM, linbo liao <span dir="ltr"><<a href="mailto:llbgurs@gmail.com" target="_blank">llbgurs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><br></div></div><div><div><div>If application operate a socket, will it be opened in every Erlang VM thread?<br><br></div></div></div></div></blockquote><div><br></div></span><div>Reading about task in the manual page for proc(5) <a href="http://man7.org/linux/man-pages/man5/proc.5.html" target="_blank">http://man7.org/linux/man-pages/man5/proc.5.html</a></div><div><br></div><div><div>    For attributes that are shared by all threads, the con‐</div><div>    tents  for each of the files under the task/[tid] subdirectories</div><div>    will be the same as in the  corresponding  file  in  the  parent</div><div>    /proc/[pid]  directory (e.g., in a multithreaded process, all of</div><div>    the task/[tid]/cwd  files  will  have  the  same  value  as  the</div><div>    /proc/[pid]/cwd  file  in the parent directory, since all of the</div><div>    threads in a process share a working directory).</div></div><div><br></div><div>The fds is another example of a resource that is shared across tasks so all of them will be duplicated in procfs. The reason you are seeing different values for different tasks is most likely because your application is opening new sockets while you are running the commands.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Lukas</div></font></span></div></div></div>
</blockquote></div><br></div>