Re: Execution times running multiple instances of an application




"Dr Ivan D. Reid" <Ivan.Reid@xxxxxxxxxxxx> wrote in message
news:slrnfkmd6c.53d.Ivan.Reid@xxxxxxxxxxxxxxxxxxxx
On Mon, 26 Nov 2007 12:55:56 -0500, deltaseq0 <deltaseq0@xxxxxxxxxx>
wrote in <JMD2j.18$gL1.13@xxxxxxxxxxxx>:
I'm doing some testing of an application using a Pentium 4 HT cpu. The
application runs under Cygwin using the XWin X Server and an xterm
window.
It takes 1.9 hrs to complete using gcc 4.2.1 configured with thread
model:
single. When I look at Windows Task Manager, it shows a cpu usage of 50%
with no other apps running at the time. From a previous optimization
thread,
I tried running 2 instances of the application at the same time by
opening
up another window under XWin. Task manager shows 100% cpu usage but
instead
of completing the 2 applications in 2 hours, it takes 3.9 hours; slightly
more than twice the time if I had run the applications sequentially. Was
this to be expected?

I have seen instances where a programme has completely slowed down
due to its "hopping" from one CPU to another and (presumably) losing its
cache in the process -- although this may have been on a proper dual-core
rather than a P4. You can check if it makes a difference in Task
Manager --
in the Processes tab, right-click on the programme and select "Set
Affinity"
from the drop-down menu. Set one copy of the programme to run on CPU 0
and the other to run on CPU 1 and see if it runs any faster.

--
Ivan Reid, School of Engineering & Design, _____________ CMS
Collaboration,
Brunel University. Ivan.Reid@[brunel.ac.uk|cern.ch] Room 40-1-B12,
CERN
KotPT -- "for stupidity above and beyond the call of duty".
Dr. Reid:
Thanks for the suggestion. Unfortunately, the execution times were not
changed by setting affinities. - Mike


.



Relevant Pages

  • Re: Execution times running multiple instances of an application
    ... application runs under Cygwin using the XWin X Server and an xterm window. ... When I look at Windows Task Manager, it shows a cpu usage of 50% ... right-click on the programme and select "Set Affinity" ...
    (comp.lang.fortran)
  • Execution times running multiple instances of an application
    ... I'm doing some testing of an application using a Pentium 4 HT cpu. ... application runs under Cygwin using the XWin X Server and an xterm window. ... with no other apps running at the time. ...
    (comp.lang.fortran)
  • Re: 2.6.24.7-rt25 and 2.6.26.8-rt12
    ... ACPI: PM-Timer IO Port: 0x588 ... selinux_register_security: Registering secondary module capability ... CPU: L2 cache: 4096K ... MEM window: disabled. ...
    (Linux-Kernel)
  • PROBLEM: concerning in 2.6.25.3
    ... My CPU: IntelXeonCPU 3.20GHz ... ACPI: PM-Timer IO Port: 0x1008 ... Found Intel Corporation E7520 Memory Controller Hub with MMCONFIG support. ... MEM window: disabled. ...
    (Linux-Kernel)
  • SCSI CDROM issue in kernels >= 2.6.14-rc3
    ... CPU: Trace cache: 12K uops, ... MEM window: disabled. ... SCSI device sda: 17928698 512-byte hdwr sectors ...
    (Linux-Kernel)