* Multiple CPUs: getting them all working...
@ 1998-11-18 5:00 smithp01
1998-11-18 5:00 ` Peter LANGSTOEGER
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: smithp01 @ 1998-11-18 5:00 UTC (permalink / raw)
We have started dabbling in multi-processor software and obtained a database
search program that is meant to run using all available CPUs in the box. We
have a 4-CPU 4100, VMS 7.1, Patches include ALPPTHR02, ALPSYSA02, ALPBASE02
but we don't have ALPTHREADS_03.
With help from many people (some of whom may be reading this here) we managed
to get the programs running in multi-thread mode. This was excellent news.
But the software on an empty machine only seems to use 2 of the four CPUs.
The question is: why doesn't it use all 4? since the same program on DU uses
3.5 CPUs worth (reportedly). The system parameter MULTITHREAD = 4, so
presumably VMS should use them and it has no problem using all of just two
(199%/400% CPU). Another issue might be that the program is IO-bound, but
disk accesses seem very modest based on the little flashing lights. ANAL/SYS
shows 4 threads active. Since the s/w wasn't linked on our m/c we obtained a
very similar program and built it today: it too is limited to 2 CPUs worth of
the 4 available.
Before we pull the program appart to search for potential problems (hard to
find for us with no threads programming experience) it would be good to know
we've not overlooked something dumb. For example, is there a parameter that
limits users to N CPUs-worth (2 by default??). Any other configuration hints
or gottchas anyone has had experience with?
Thanks for the help!
+------------ 8F EF 51 4E 4F 23 22 AF 6A 41 D6 C0 AE 31 B1 82 ------------+
|Ross Smith, Academic Computing (RCR), NYU-SoM, 550 First Ave, NY, NY 10016|
|E-Mail: SMITHP01@MED.NYU.EDU Phone: (212)263-5356: FAX: (212)263-8139|
+-------------- <http://www.med.nyu.edu/people/P.Smith.html> --------------+
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Multiple CPUs: getting them all working...
1998-11-18 5:00 Multiple CPUs: getting them all working smithp01
@ 1998-11-18 5:00 ` Peter LANGSTOEGER
1998-11-18 5:00 ` Bob Boylan
1998-11-19 5:00 ` mathog
1998-11-19 5:00 ` Dale Dellutri
2 siblings, 1 reply; 5+ messages in thread
From: Peter LANGSTOEGER @ 1998-11-18 5:00 UTC (permalink / raw)
In article <siwfwZ4shKAh@mcrcr6>, smithp01@mcrcr6.med.nyu.edu writes:
>We have started dabbling in multi-processor software and obtained a database
>search program that is meant to run using all available CPUs in the box. We
>have a 4-CPU 4100, VMS 7.1, Patches include ALPPTHR02, ALPSYSA02, ALPBASE02
>but we don't have ALPTHREADS_03.
>
>With help from many people (some of whom may be reading this here) we managed
>to get the programs running in multi-thread mode. This was excellent news.
>But the software on an empty machine only seems to use 2 of the four CPUs.
>
>The question is: why doesn't it use all 4? since the same program on DU uses
>3.5 CPUs worth (reportedly). The system parameter MULTITHREAD = 4, so
>presumably VMS should use them and it has no problem using all of just two
>(199%/400% CPU). Another issue might be that the program is IO-bound, but
>disk accesses seem very modest based on the little flashing lights. ANAL/SYS
>shows 4 threads active. Since the s/w wasn't linked on our m/c we obtained a
>very similar program and built it today: it too is limited to 2 CPUs worth of
>the 4 available.
>
>Before we pull the program appart to search for potential problems (hard to
>find for us with no threads programming experience) it would be good to know
>we've not overlooked something dumb. For example, is there a parameter that
>limits users to N CPUs-worth (2 by default??). Any other configuration hints
>or gottchas anyone has had experience with?
Affinity and Capability, perhaps ?
$ HELP SET CPU/CAPABILITY
$ HELP SET PROCESS/AFFINITY
------------------------------------------------------------------------
Peter "EPLAN" LANGSTOEGER Tel. +43 1 81111-2651
Network and OpenVMS system manager Fax. +43 1 81111-888
FBFV/Information Services E-mail eplan@kapsch.net
<<< KAPSCH AG Wagenseilgasse 1 PSImail PSI%(0232)281001141::EPLAN
A-1121 VIENNA AUSTRIA "I'm not a pessimist, I'm a realist"
"VMS is today what Microsoft wants Windows NT V8.0 to be!" Compaq, 22-Sep-1998
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Multiple CPUs: getting them all working...
1998-11-18 5:00 ` Peter LANGSTOEGER
@ 1998-11-18 5:00 ` Bob Boylan
0 siblings, 0 replies; 5+ messages in thread
From: Bob Boylan @ 1998-11-18 5:00 UTC (permalink / raw)
We had a similar situation when upgrading the number of CPUs - it cleared up
with an autogen. Note that the sysgen parameters associated with
multithreading aren't dynamic - you'll need to reboot after setting them.
Another item you may want to experiment with is the THREADCP program. You
can look at the executable image and see/set some thread related
items(upcalls?). I was able to verify that a single executable with 4
(compute bound) threads can consume 4 processors - great fun to watch!
Good Luck, Bob Boylan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Multiple CPUs: getting them all working...
1998-11-18 5:00 Multiple CPUs: getting them all working smithp01
1998-11-18 5:00 ` Peter LANGSTOEGER
1998-11-19 5:00 ` mathog
@ 1998-11-19 5:00 ` Dale Dellutri
2 siblings, 0 replies; 5+ messages in thread
From: Dale Dellutri @ 1998-11-19 5:00 UTC (permalink / raw)
In comp.os.vms smithp01@mcrcr6.med.nyu.edu wrote:
> We have started dabbling in multi-processor software and obtained a database
> search program that is meant to run using all available CPUs in the box.
>...
> But the software on an empty machine only seems to use 2 of the four CPUs.
>...
> The question is: why doesn't it use all 4? since the same program on DU uses
> 3.5 CPUs worth (reportedly). The system parameter MULTITHREAD = 4, so
> presumably VMS should use them and it has no problem using all of just two
> (199%/400% CPU). Another issue might be that the program is IO-bound, but
> disk accesses seem very modest based on the little flashing lights. ANAL/SYS
> shows 4 threads active.
Could this perhaps happen because it only _needs_ two cpus to run four
threads? This could happen if two of the the threads tend to be doing
IO (and thus in IO wait) while the other two are using the CPU. Would
setting MULTITHREAD to an even higher number help?
The different usage under DU (3.5 cpus) could be due to any number of
factors - cpu speed, IO overlap, IO caching, less/more spinlock
contention, etc.
--
Dale Dellutri - ddellutr@mcs.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Multiple CPUs: getting them all working...
1998-11-18 5:00 Multiple CPUs: getting them all working smithp01
1998-11-18 5:00 ` Peter LANGSTOEGER
@ 1998-11-19 5:00 ` mathog
1998-11-19 5:00 ` Dale Dellutri
2 siblings, 0 replies; 5+ messages in thread
From: mathog @ 1998-11-19 5:00 UTC (permalink / raw)
In article <siwfwZ4shKAh@mcrcr6>, smithp01@mcrcr6.med.nyu.edu writes:
>We have started dabbling in multi-processor software and obtained a database
>search program that is meant to run using all available CPUs in the box. We
>have a 4-CPU 4100, VMS 7.1, Patches include ALPPTHR02, ALPSYSA02, ALPBASE02
>but we don't have ALPTHREADS_03.
>
>With help from many people (some of whom may be reading this here) we managed
>to get the programs running in multi-thread mode. This was excellent news.
>But the software on an empty machine only seems to use 2 of the four CPUs.
This doesn't happen to be FASTA does it? If it is, you might have a look
at thr.h, where you will find:
#ifndef MAX_WORKERS
#define MAX_WORKERS 2
#endif
which could be the source of your problems! You will also notice
in that case in MAKEFILE.UNX you will find on the CC line "-DMAX_WORKERS=4".
On the make_vms.com that I have (a couple of years old) there is
a /define for MAX_WORKERS=4, but I built that one by hand, and the default
VMS build procedure (if there was one, don't recall), may not set that.
Regards,
David Mathog
mathog@seqaxp.bio.caltech.edu
Manager, sequence analysis facility, biology division, Caltech
**************************************************************************
* RIP VMS *
**************************************************************************
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-11-19 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-18 5:00 Multiple CPUs: getting them all working smithp01
1998-11-18 5:00 ` Peter LANGSTOEGER
1998-11-18 5:00 ` Bob Boylan
1998-11-19 5:00 ` mathog
1998-11-19 5:00 ` Dale Dellutri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox