From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,99ff2a54440f719d X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,99ff2a54440f719d X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,99ff2a54440f719d X-Google-Attributes: gid1164f8,public From: ddellutr@MCS.COM (Dale Dellutri) Subject: Re: Multiple CPUs: getting them all working... Date: 1998/11/19 Message-ID: <731dve$935$1@Venus.mcs.net>#1/1 X-Deja-AN: 413533306 References: Organization: Dale at MCSNet Newsgroups: vmsnet.alpha,comp.os.vms,comp.sys.dec 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