Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28679

Re: why running multiple instances of the same program is faster than running single instance?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: why running multiple instances of the same program is faster than running single instance?
Date 2014-06-06 19:50 -0700
Organization Canadian Mind Products
Message-ID <45v4p9d9p7rh5faja7igpobledauv4bmiq@4ax.com> (permalink)
References <de5dcb91-d280-463d-86f9-3ffb658d391f@googlegroups.com>

Show all headers | View raw


On Mon, 2 Jun 2014 08:12:31 -0700 (PDT), www <xsli2@yahoo.com> wrote,
quoted or indirectly quoted someone who said :

>Any suggestions why this is happening? Thank you very much.

I am not following what your anomaly is.

Some things to consider.

You would only expect it to run twice as fast if both instances have
all the ram they want.  If you run threads, code can be shared rather
than two separate JVMs which will have two copies of the app in ram.

You would expect it to run two run twice as fast if i/o is not the
limiting factor.  You need to experiment with buffer size to find the
optimal.

Use the control panel monitor to see how busy ram and each core is.

It can happen that the CPU has turned all but one core off. Make sure
that has not happened.

You may need to up your physical ram to exploit the extra cores.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
In former times, people who craved absolute power became gangsters.
Today, they become computer programmers.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

why running multiple instances of the same program is faster than running single instance? www <xsli2@yahoo.com> - 2014-06-02 08:12 -0700
  Re: why running multiple instances of the same program is faster than running single instance? Joerg Meier <joergmmeier@arcor.de> - 2014-06-02 23:59 +0200
    Re: why running multiple instances of the same program is faster than running single instance? Arivald <arivald_@AT_interia_DOT_.pl> - 2014-06-03 13:25 +0200
  Re: why running multiple instances of the same program is faster than running single instance? Josip Almasi <joe@vrspace.org> - 2014-06-03 09:40 +0200
  Re: why running multiple instances of the same program is faster than running single instance? lipska the kat <lipskathekat@example.com> - 2014-06-03 10:02 +0100
  Re: why running multiple instances of the same program is faster than running single instance? Rupert Smith <rupertlssmith@googlemail.com> - 2014-06-03 03:24 -0700
    Re: why running multiple instances of the same program is faster than running single instance? Rupert Smith <rupertlssmith@googlemail.com> - 2014-06-03 03:26 -0700
  Re: why running multiple instances of the same program is faster than running single instance? Roedy Green <see_website@mindprod.com.invalid> - 2014-06-06 19:50 -0700

csiph-web