Thanks a lot for your reply.

Thanks and Regards
Sparsh Mittal



On Tue, Feb 12, 2013 at 4:53 PM, David P Grove <gro...@us.ibm.com> wrote:

>  Sparsh Mittal <sparsh0mit...@gmail.com> wrote on 02/11/2013 03:08:09 PM:
>
> >
> > Thanks. This is really great and works well.
> >
> > I have small questions.
> > 1.  So, should I set X10_NTHREADS to numberOfThreads or
> > (numberOfThreads+1) to also account for main thread?
> > 2. Can we do it through program itself, since I want to run for
> > different number of threads.
> >
> >
>
> Usually we recommend setting X10_NTHREADS so that you create 1 worker
> thread per core.  Eg, if you have an 8 core machine, reasonable
> combinations are:
>  X10_NPLACES=1; X10_NTHREADS=8
>  X10_NPLACES=2; X10_NTHREADS=4
>  X10_NPLACES=4; X10_NTHREADS=2
>  X10_NPLACES=8; X10_NTHREADS=1
> (for more machines, use similar logic...8 machine with 4 cores each, one
> reasonable setting would be X10_NPLACES=16; X10_NTHREADS=2).
>
> It is possible to adjust these settings programmatically by calling
> methods of x10.lang.Runtime, but this is not recommend for normal usage (it
> might interact badly with the heuristics used by the X10 runtime to
> dynamically adjust the size of the thread pool when threads block/unblock
> to try to keep X10_NTHREADS active worker threads).
>
> --dave
>
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to