[akka-user] Binding Actors to CPU or to a core

2016-08-22 Thread Mahesh Govind
Dear Experts,

Is it possible to bind a group of akka actors to a specific core or to a 
processor  .

I have a situation where the machine is having 2 processors with 6 
cores/processor , but I dont have any clue about the distribution of 
 actors .

Is there a java API equivalent of "taskset"  or similiar functionality ?

Regards
mahesh

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Binding Actors to CPU or to a core

2016-08-23 Thread Endre Varga
Hi Mahesh,

Unfortunately there is no way to set CPU affinity for a Java thread from
the JVM. You can probably build a native library that you can call into via
JNA.

-Endre

On Tue, Aug 23, 2016 at 5:13 AM, Mahesh Govind  wrote:

> Dear Experts,
>
> Is it possible to bind a group of akka actors to a specific core or to a
> processor  .
>
> I have a situation where the machine is having 2 processors with 6
> cores/processor , but I dont have any clue about the distribution of
>  actors .
>
> Is there a java API equivalent of "taskset"  or similiar functionality ?
>
> Regards
> mahesh
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Binding Actors to CPU or to a core

2016-08-23 Thread Patrik Nordwall
There is a library that you might be able to use:
https://github.com/OpenHFT/Java-Thread-Affinity
It's using native code.

/Patrik

On Tue, Aug 23, 2016 at 9:15 AM, Endre Varga 
wrote:

> Hi Mahesh,
>
> Unfortunately there is no way to set CPU affinity for a Java thread from
> the JVM. You can probably build a native library that you can call into via
> JNA.
>
> -Endre
>
> On Tue, Aug 23, 2016 at 5:13 AM, Mahesh Govind  wrote:
>
>> Dear Experts,
>>
>> Is it possible to bind a group of akka actors to a specific core or to a
>> processor  .
>>
>> I have a situation where the machine is having 2 processors with 6
>> cores/processor , but I dont have any clue about the distribution of
>>  actors .
>>
>> Is there a java API equivalent of "taskset"  or similiar functionality ?
>>
>> Regards
>> mahesh
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Binding Actors to CPU or to a core

2016-08-23 Thread Endre Varga
Oh, I see. Is that cross platform? If not we might want to build one with
fallback to NOP.

On Tue, Aug 23, 2016 at 9:19 AM, Patrik Nordwall 
wrote:

> There is a library that you might be able to use: https://github.com/
> OpenHFT/Java-Thread-Affinity
> It's using native code.
>
> /Patrik
>
> On Tue, Aug 23, 2016 at 9:15 AM, Endre Varga 
> wrote:
>
>> Hi Mahesh,
>>
>> Unfortunately there is no way to set CPU affinity for a Java thread from
>> the JVM. You can probably build a native library that you can call into via
>> JNA.
>>
>> -Endre
>>
>> On Tue, Aug 23, 2016 at 5:13 AM, Mahesh Govind  wrote:
>>
>>> Dear Experts,
>>>
>>> Is it possible to bind a group of akka actors to a specific core or to a
>>> processor  .
>>>
>>> I have a situation where the machine is having 2 processors with 6
>>> cores/processor , but I dont have any clue about the distribution of
>>>  actors .
>>>
>>> Is there a java API equivalent of "taskset"  or similiar functionality ?
>>>
>>> Regards
>>> mahesh
>>>
>>> --
>>> >> Read the docs: http://akka.io/docs/
>>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>>> urrent/additional/faq.html
>>> >> Search the archives: https://groups.google.com/grou
>>> p/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to akka-user+unsubscr...@googlegroups.com.
>>> To post to this group, send email to akka-user@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Patrik Nordwall
> Akka Tech Lead
> Lightbend  -  Reactive apps on the JVM
> Twitter: @patriknw
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Binding Actors to CPU or to a core

2016-08-23 Thread Mahesh Govind
Thank you Endre and Patrik.

On Tuesday, August 23, 2016 at 12:51:22 PM UTC+5:30, drewhk wrote:
>
> Oh, I see. Is that cross platform? If not we might want to build one with 
> fallback to NOP.
>
> On Tue, Aug 23, 2016 at 9:19 AM, Patrik Nordwall  > wrote:
>
>> There is a library that you might be able to use: 
>> https://github.com/OpenHFT/Java-Thread-Affinity
>> It's using native code.
>>
>> /Patrik
>>
>> On Tue, Aug 23, 2016 at 9:15 AM, Endre Varga > > wrote:
>>
>>> Hi Mahesh,
>>>
>>> Unfortunately there is no way to set CPU affinity for a Java thread from 
>>> the JVM. You can probably build a native library that you can call into via 
>>> JNA.
>>>
>>> -Endre
>>>
>>> On Tue, Aug 23, 2016 at 5:13 AM, Mahesh Govind >> > wrote:
>>>
 Dear Experts,

 Is it possible to bind a group of akka actors to a specific core or to 
 a processor  .

 I have a situation where the machine is having 2 processors with 6 
 cores/processor , but I dont have any clue about the distribution of 
  actors .

 Is there a java API equivalent of "taskset"  or similiar functionality 
 ?

 Regards
 mahesh

 -- 
 >> Read the docs: http://akka.io/docs/
 >> Check the FAQ: 
 http://doc.akka.io/docs/akka/current/additional/faq.html
 >> Search the archives: 
 https://groups.google.com/group/akka-user
 --- 
 You received this message because you are subscribed to the Google 
 Groups "Akka User List" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to akka-user+...@googlegroups.com .
 To post to this group, send email to akka...@googlegroups.com 
 .
 Visit this group at https://groups.google.com/group/akka-user.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>>> >> Read the docs: http://akka.io/docs/
>>> >> Check the FAQ: 
>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>> >> Search the archives: 
>>> https://groups.google.com/group/akka-user
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to akka-user+...@googlegroups.com .
>>> To post to this group, send email to akka...@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>>
>> Patrik Nordwall
>> Akka Tech Lead
>> Lightbend  -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>> -- 
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to akka-user+...@googlegroups.com .
>> To post to this group, send email to akka...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.