JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
June 03, 2023, 09:13:29 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Efficiently using multiple cores  (Read 1242 times)

dbwiddis

  • JPPF Council Member
  • *****
  • Posts: 106
Efficiently using multiple cores
« on: April 30, 2014, 08:53:48 PM »

I'm relatively new to JPPF and really enjoying the scalability is is bringing to my project. 

I am running my nodes on the Rackspace Cloud and debating between server flavors with variable virtual cores (I plan on benchmarking to see which one is most cost effective). One problem I'm encountering is how to best deconflict the multiple possible ways to make use of a multi-core CPU:

- I can run multiple nodes on the machine
- I can configure the JPPF node  using the jppf.processing.threads directive to use multiple threads
- Internally, my code takes advantage of multi-threading in multiple places where asynchronous calculations are permitted, using java.util.concurrent.ExecutorService, although there are several points where the separate processes need to synchronize.

Presently on a 4-core machine I'm playing with I have a single node with 5 concurrent tasks, each of them using the internal multithreading... I'm worried that I'm putting too much workload on the thread manager and actually slowing things down with all the different things fighting for the same CPU.

Any advice/experience on whether I should try to reduce to 1 thread on 1 node (using my own code for concurrency), use multiple threads on the node but constrain my own code to single threaded, or a mix of both?
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads