Re: [ovs-dev] [PATCH] ovs-thread: count the number of cpu cores.

2014-03-11 Thread YAMAMOTO Takashi
>> does this need to be wrapped by ovsthread_once? > > I think so, looking at all the places count_cpu_cores() is called > from. I am probably missing what you are pointing at. it seems that i misremembered what GetSystemInfo was. sorry for noise. YAMAMOTO Takashi > >> >> YAMAMOTO Takashi >> >

Re: [ovs-dev] [PATCH] ovs-thread: count the number of cpu cores.

2014-03-11 Thread Gurucharan Shetty
> > does this need to be wrapped by ovsthread_once? I think so, looking at all the places count_cpu_cores() is called from. I am probably missing what you are pointing at. > > YAMAMOTO Takashi > >> +#endif >> ovsthread_once_done(&once); >> } >> >> -- >> 1.7.9.5 >> >> ___

Re: [ovs-dev] [PATCH] ovs-thread: count the number of cpu cores.

2014-03-11 Thread YAMAMOTO Takashi
> We use the number of cpu cores to determine the number > of threads that we spawn. We are not yet sure what is > the ideal number of OVS userspace threads that can run > on Hyper-V. Till we figure that out, use the same logic > of counting CPU cores in Windows too. > > Signed-off-by: Gurucharan

Re: [ovs-dev] [PATCH] ovs-thread: count the number of cpu cores.

2014-03-11 Thread Ben Pfaff
On Mon, Mar 10, 2014 at 10:56:41AM -0700, Gurucharan Shetty wrote: > We use the number of cpu cores to determine the number > of threads that we spawn. We are not yet sure what is > the ideal number of OVS userspace threads that can run > on Hyper-V. Till we figure that out, use the same logic > of

[ovs-dev] [PATCH] ovs-thread: count the number of cpu cores.

2014-03-10 Thread Gurucharan Shetty
We use the number of cpu cores to determine the number of threads that we spawn. We are not yet sure what is the ideal number of OVS userspace threads that can run on Hyper-V. Till we figure that out, use the same logic of counting CPU cores in Windows too. Signed-off-by: Gurucharan Shetty --- l