Results 1 to 4 of 4

Thread: multi-core

  1. #1
    bernerd is offline Member
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default multi-core

    Hi all,
    I'm currently doing a project which require me to run multiple instance of the same Jar on multiple core. I'm running it on a 6-core with hyper-threading, which makes it effectively 12 cores.

    Right now, I tried to run 12 instances of the jar on the the processor, effective it is 1 instance on 1 core by setting the affinity. since I'm triggering the processes as a independent JVM, i believe each process is allocated it's own memory. however, the time taken for each instances under the this condition to complete takes roughly around 20 mins, while the time taken for 1 instance to complete when only 1 instances is running is about 65 seconds.

    Some how I think that the execution time doesn't make sense.
    does any one had any idea why this is happening?

    Regards
    bernerd

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,331
    Rep Power
    25

    Default Re: multi-core

    How does running the java program differ from running any other program in your testing?

  3. #3
    bernerd is offline Member
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default Re: multi-core

    Quote Originally Posted by Norm View Post
    How does running the java program differ from running any other program in your testing?
    well, the purpose of running multiple instances of that java program is to be able to generate multiple instances of Plans.

    Each instances of plans created by the java program was suppose to be randomized, as the current version of the program only create 1 plan. but that part isn't worrying. It is done this way so that all the Cores can actually be utelized to 100% efficient.

    But right now, I'm triggering the process by using cmd to call the jar file created. I'm using a HP 12 core system with 12gb memory, when I only run a instance of that program on 1 core, it took about 65 seconds. But when I run 12 instance of the program on 12 core, setting affinity so that each process could have it's own core, the average time required to complete increased to about 20 mins. Even though i had trigger the 12 program under diffferent JVM. the computation time is still too long.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,331
    Rep Power
    25

    Default Re: multi-core

    What happens when you try to run 12 instances of any other program that consumes some CPU time?
    I don't know what java has to do with your testing.

Similar Threads

  1. Multi-Panel multi-class GUI communication
    By manji51 in forum AWT / Swing
    Replies: 4
    Last Post: 05-25-2011, 01:54 PM
  2. Multi core
    By neeti in forum Threads and Synchronization
    Replies: 2
    Last Post: 10-22-2009, 03:56 AM
  3. Replies: 0
    Last Post: 07-22-2008, 04:39 PM
  4. ckkl-core 0.3.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-12-2007, 06:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •