<p dir="ltr">The patches as sent don&#39;t create any threads. That&#39;s future work, for as-yet unposted patches.</p>
<div class="gmail_quote">On Jun 26, 2013 7:24 PM, &quot;jerry&quot; &lt;<a href="mailto:jerry.lilijun@huawei.com">jerry.lilijun@huawei.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for your quickly reply.<br>
<br>
I have downloaded the codes of ovs-reviews-thread in your &quot;reviews&quot; repository and doing some test on new patches.<br>
<br>
In my test, the multithreaded feature doesn&#39;t work and there is no change on ovs-vswitchd threads. Some results of executing &quot;ps -ef | grep ovs&quot; as follows:<br>
<br>
linux-kKoZfU:/mnt/sdb/ovs-reviews-threads # ps -ef |grep ovs<br>
root     24039     1  0 09:27 ?        00:00:00 ovsdb-server /usr/local/etc/ovs-vswitchd.conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,manager_options --pidfile --detach --log-file<br>

root     24042     1  0 09:27 ?        00:00:00 ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock --pidfile --detach --log-file<br>
root     24043 24042  0 09:27 ?        00:00:00 ovs-vswitchd: worker process for pid 24042<br>
<br>
Then I tried to found threads in procfs info of ovs-vswitchd process with pid 24042. The result of executing &quot;ls /proc/24042/task/&quot; as follows:<br>
<br>
linux-kKoZfU:/mnt/sdb/llj/ovs-reviews-threads # ls -l /proc/24042/task/<br>
total 0<br>
dr-xr-xr-x 6 root root 0 Jun 27 09:30 24042<br>
<br>
I can&#39;t find any place in code where the added function xpthread_create() is called. To make ovs multithreaded, So I expect data structures added in new patches to be used by existing code in the repository.<br>
<br>
Would you like to share some thoughts on that test results?<br>
<br>
Regards,<br>
Jerry<br>
<br>
On 2013/6/26 23:32, Ben Pfaff wrote:<br>
&gt; On Wed, Jun 26, 2013 at 04:46:38PM +0800, jerry wrote:<br>
&gt;&gt; I noticed that you have sent out 01~09 of 11 patches on files named<br>
&gt;&gt; ovs-thread.c and ovs-thread.h.<br>
&gt;<br>
&gt; I sent all of them.<br>
&gt;<br>
&gt;&gt; But I can&#39;t find the last two patch of them.<br>
&gt;<br>
&gt; Look in patchwork or in my &quot;reviews&quot; repository:<br>
&gt;         <a href="https://github.com/blp/ovs-reviews/branches" target="_blank">https://github.com/blp/ovs-reviews/branches</a><br>
&gt;<br>
&gt;&gt; Also the defined functions and data structures are not used in latest<br>
&gt;&gt; open vswitch codes from git repository.<br>
&gt;<br>
&gt; Why would you expect data structures added in new patches to be used by<br>
&gt; existing code in the repository?<br>
&gt;<br>
&gt;&gt; Is your work to make ovs multi-threaded? What&#39;s the train of thought<br>
&gt;&gt; on the work?  In my guess, maybe you separate the work of ofproto run<br>
&gt;&gt; or run_fast from ovs-vswitchd process and run the work as a single<br>
&gt;&gt; thread. Is that right?<br>
&gt;<br>
&gt; That&#39;s roughly the idea.<br>
&gt;<br>
&gt;<br>
<br>
<br>
</blockquote></div>