Hi,

Thanks for your reply.
I can easily pin JVM to certain cores by setting its affinity if the JVM is 
created by me (or modify it during it’s running is also easy). I’m just asking 
whether storm has exposed such API  that allows users to pin workers to certain 
CPU cores? or otherwise, which part of the storm I should modify in order to 
achieve that? I’m suspecting it’s the part that  supervisor launch workers.

From: Martin Burian [mailto:[email protected]]
Sent: Tuesday, September 8, 2015 2:34 PM
To: [email protected]
Subject: Re: Pin workers to cores


You should look to the kernel of your OS. Storm only runs 4 JVMs, it's up to 
the host OS to schedule the JVMs to processors/cores.
Martin

On Tue, Sep 8, 2015, 06:40 #ZHANG SHUHAO# 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

Is there a way to let storm pin workers to cores when creating workers. For 
instance, I claim 4 workers in one machine (multi-socket). I want to pin each 
created worker to certain CPU cores.

How to achieve that? Which part of code should I look at? Any pointers would be 
appreciate.

Thanks.

Reply via email to