You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2013/10/11 04:08:09 UTC
[DAEMON] Assigning JVM to a core
Hi All:
Is there a way to tell [daemon] to run a JVM on a specific core within a CPU?
Gary
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
JUnit in Action, Second Edition
Spring Batch in Action
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [DAEMON] Assigning JVM to a core
Posted by Gary Gregory <ga...@gmail.com>.
Nice tips, but it sounds like I am out of luck with telling prunsrv.exe to
set the affinity for a JVM, right?
Gary
On Wed, Oct 16, 2013 at 12:26 PM, Martin Gainty <mg...@hotmail.com> wrote:
> procaff /wait 2 notepad.exe starts notepad.exe on CPU 1 synchronously
> procaff /run 1 notepad.exe starts notepad.exe on CPU 0 asynchronously
> procaff /set 3 4296 sets processor affinity of process with pid 4296 to 3
> procaff /set 3 foo.exe sets processor affinity of process "foo.exe" to 3
>
>
> Vielen Danke Thomas!
> Martin
>
>
>
>
>
>
> > Date: Wed, 16 Oct 2013 17:51:51 +0200
> > Subject: Re: [DAEMON] Assigning JVM to a core
> > From: thomas.neidhart@gmail.com
> > To: user@commons.apache.org
> >
> > This link may help you:
> > http://www.scalabiliti.com/blog/java_jvm_processor_affinity
> >
> >
> > On Wed, Oct 16, 2013 at 4:38 PM, Gary Gregory <garydgregory@gmail.com
> >wrote:
> >
> > > Ping?
> > >
> > > On Thu, Oct 10, 2013 at 10:13 PM, Gary Gregory <garydgregory@gmail.com
> > > >wrote:
> > >
> > > > On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty <mgainty@hotmail.com
> >
> > > > wrote:
> > > > > Gary
> > > > >
> > > > > which version of os/arch are you targetting?
> > > >
> > > > Martin,
> > > >
> > > > I'm pretty sure our IT folks are looking at Windows 32 and/or 64-bit.
> > > > If it matters I'll get the exact versions.
> > > >
> > > > Gary
> > > >
> > > > >
> > > > > Martin
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >> Date: Thu, 10 Oct 2013 22:08:09 -0400
> > > > >> Subject: [DAEMON] Assigning JVM to a core
> > > > >> From: garydgregory@gmail.com
> > > > >> To: user@commons.apache.org
> > > > >>
> > > > >> Hi All:
> > > > >>
> > > > >> Is there a way to tell [daemon] to run a JVM on a specific core
> within
> > > > a CPU?
> > > > >>
> > > > >> Gary
> > > > >>
> > > > >> --
> > > > >> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > > >> Java Persistence with Hibernate, Second Edition
> > > > >> JUnit in Action, Second Edition
> > > > >> Spring Batch in Action
> > > > >> Blog: http://garygregory.wordpress.com
> > > > >> Home: http://garygregory.com/
> > > > >> Tweet! http://twitter.com/GaryGregory
> > > > >>
> > > > >>
> ---------------------------------------------------------------------
> > > > >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> > > > >> For additional commands, e-mail: user-help@commons.apache.org
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > > Java Persistence with Hibernate, Second Edition
> > > > JUnit in Action, Second Edition
> > > > Spring Batch in Action
> > > > Blog: http://garygregory.wordpress.com
> > > > Home: http://garygregory.com/
> > > > Tweet! http://twitter.com/GaryGregory
> > > >
> > >
> > >
> > >
> > > --
> > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > Java Persistence with Hibernate, Second Edition<
> > > http://www.manning.com/bauer3/>
> > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> > > Spring Batch in Action <http://www.manning.com/templier/>
> > > Blog: http://garygregory.wordpress.com
> > > Home: http://garygregory.com/
> > > Tweet! http://twitter.com/GaryGregory
> > >
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
RE: [DAEMON] Assigning JVM to a core
Posted by Martin Gainty <mg...@hotmail.com>.
procaff /wait 2 notepad.exe starts notepad.exe on CPU 1 synchronously
procaff /run 1 notepad.exe starts notepad.exe on CPU 0 asynchronously
procaff /set 3 4296 sets processor affinity of process with pid 4296 to 3
procaff /set 3 foo.exe sets processor affinity of process "foo.exe" to 3
Vielen Danke Thomas!
Martin
> Date: Wed, 16 Oct 2013 17:51:51 +0200
> Subject: Re: [DAEMON] Assigning JVM to a core
> From: thomas.neidhart@gmail.com
> To: user@commons.apache.org
>
> This link may help you:
> http://www.scalabiliti.com/blog/java_jvm_processor_affinity
>
>
> On Wed, Oct 16, 2013 at 4:38 PM, Gary Gregory <ga...@gmail.com>wrote:
>
> > Ping?
> >
> > On Thu, Oct 10, 2013 at 10:13 PM, Gary Gregory <garydgregory@gmail.com
> > >wrote:
> >
> > > On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty <mg...@hotmail.com>
> > > wrote:
> > > > Gary
> > > >
> > > > which version of os/arch are you targetting?
> > >
> > > Martin,
> > >
> > > I'm pretty sure our IT folks are looking at Windows 32 and/or 64-bit.
> > > If it matters I'll get the exact versions.
> > >
> > > Gary
> > >
> > > >
> > > > Martin
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >> Date: Thu, 10 Oct 2013 22:08:09 -0400
> > > >> Subject: [DAEMON] Assigning JVM to a core
> > > >> From: garydgregory@gmail.com
> > > >> To: user@commons.apache.org
> > > >>
> > > >> Hi All:
> > > >>
> > > >> Is there a way to tell [daemon] to run a JVM on a specific core within
> > > a CPU?
> > > >>
> > > >> Gary
> > > >>
> > > >> --
> > > >> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > >> Java Persistence with Hibernate, Second Edition
> > > >> JUnit in Action, Second Edition
> > > >> Spring Batch in Action
> > > >> Blog: http://garygregory.wordpress.com
> > > >> Home: http://garygregory.com/
> > > >> Tweet! http://twitter.com/GaryGregory
> > > >>
> > > >> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> > > >> For additional commands, e-mail: user-help@commons.apache.org
> > > >>
> > > >
> > >
> > >
> > >
> > > --
> > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > Java Persistence with Hibernate, Second Edition
> > > JUnit in Action, Second Edition
> > > Spring Batch in Action
> > > Blog: http://garygregory.wordpress.com
> > > Home: http://garygregory.com/
> > > Tweet! http://twitter.com/GaryGregory
> > >
> >
> >
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > Java Persistence with Hibernate, Second Edition<
> > http://www.manning.com/bauer3/>
> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> > Spring Batch in Action <http://www.manning.com/templier/>
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
Re: [DAEMON] Assigning JVM to a core
Posted by Thomas Neidhart <th...@gmail.com>.
This link may help you:
http://www.scalabiliti.com/blog/java_jvm_processor_affinity
On Wed, Oct 16, 2013 at 4:38 PM, Gary Gregory <ga...@gmail.com>wrote:
> Ping?
>
> On Thu, Oct 10, 2013 at 10:13 PM, Gary Gregory <garydgregory@gmail.com
> >wrote:
>
> > On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty <mg...@hotmail.com>
> > wrote:
> > > Gary
> > >
> > > which version of os/arch are you targetting?
> >
> > Martin,
> >
> > I'm pretty sure our IT folks are looking at Windows 32 and/or 64-bit.
> > If it matters I'll get the exact versions.
> >
> > Gary
> >
> > >
> > > Martin
> > >
> > >
> > >
> > >
> > >
> > >> Date: Thu, 10 Oct 2013 22:08:09 -0400
> > >> Subject: [DAEMON] Assigning JVM to a core
> > >> From: garydgregory@gmail.com
> > >> To: user@commons.apache.org
> > >>
> > >> Hi All:
> > >>
> > >> Is there a way to tell [daemon] to run a JVM on a specific core within
> > a CPU?
> > >>
> > >> Gary
> > >>
> > >> --
> > >> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > >> Java Persistence with Hibernate, Second Edition
> > >> JUnit in Action, Second Edition
> > >> Spring Batch in Action
> > >> Blog: http://garygregory.wordpress.com
> > >> Home: http://garygregory.com/
> > >> Tweet! http://twitter.com/GaryGregory
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> > >> For additional commands, e-mail: user-help@commons.apache.org
> > >>
> > >
> >
> >
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > Java Persistence with Hibernate, Second Edition
> > JUnit in Action, Second Edition
> > Spring Batch in Action
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition<
> http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
Re: [DAEMON] Assigning JVM to a core
Posted by Gary Gregory <ga...@gmail.com>.
Ping?
On Thu, Oct 10, 2013 at 10:13 PM, Gary Gregory <ga...@gmail.com>wrote:
> On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty <mg...@hotmail.com>
> wrote:
> > Gary
> >
> > which version of os/arch are you targetting?
>
> Martin,
>
> I'm pretty sure our IT folks are looking at Windows 32 and/or 64-bit.
> If it matters I'll get the exact versions.
>
> Gary
>
> >
> > Martin
> >
> >
> >
> >
> >
> >> Date: Thu, 10 Oct 2013 22:08:09 -0400
> >> Subject: [DAEMON] Assigning JVM to a core
> >> From: garydgregory@gmail.com
> >> To: user@commons.apache.org
> >>
> >> Hi All:
> >>
> >> Is there a way to tell [daemon] to run a JVM on a specific core within
> a CPU?
> >>
> >> Gary
> >>
> >> --
> >> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> >> Java Persistence with Hibernate, Second Edition
> >> JUnit in Action, Second Edition
> >> Spring Batch in Action
> >> Blog: http://garygregory.wordpress.com
> >> Home: http://garygregory.com/
> >> Tweet! http://twitter.com/GaryGregory
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: user-help@commons.apache.org
> >>
> >
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: [DAEMON] Assigning JVM to a core
Posted by Gary Gregory <ga...@gmail.com>.
On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty <mg...@hotmail.com> wrote:
> Gary
>
> which version of os/arch are you targetting?
Martin,
I'm pretty sure our IT folks are looking at Windows 32 and/or 64-bit.
If it matters I'll get the exact versions.
Gary
>
> Martin
>
>
>
>
>
>> Date: Thu, 10 Oct 2013 22:08:09 -0400
>> Subject: [DAEMON] Assigning JVM to a core
>> From: garydgregory@gmail.com
>> To: user@commons.apache.org
>>
>> Hi All:
>>
>> Is there a way to tell [daemon] to run a JVM on a specific core within a CPU?
>>
>> Gary
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> JUnit in Action, Second Edition
>> Spring Batch in Action
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
JUnit in Action, Second Edition
Spring Batch in Action
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
RE: [DAEMON] Assigning JVM to a core
Posted by Martin Gainty <mg...@hotmail.com>.
Gary
which version of os/arch are you targetting?
Martin
> Date: Thu, 10 Oct 2013 22:08:09 -0400
> Subject: [DAEMON] Assigning JVM to a core
> From: garydgregory@gmail.com
> To: user@commons.apache.org
>
> Hi All:
>
> Is there a way to tell [daemon] to run a JVM on a specific core within a CPU?
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>