On Jan 17, 2006, at 4:40 PM, Greg Woodhouse wrote:
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote:
Looks like the job manager is allowing each task only one instruction
cycle, then moves on. Since each job is identical, it seems
reasonable that they would show a strict alternating pattern.
Kevin
it surprises me. Switching between tasks is not free, and I would
expect it to happen less often than on every step. Then again, this
may
be an optimization due to the code being identical in each case. It
would be interesting to have to separate but identical entry points
(except for the "A" and "B", of course) and see if the same thing
happens.
Under GT.M I believe the two jobs will be separate processes, and
scheduling will be left to the Linux kernel.
Running the interleave test under Windows has results much more in
line with what I expected:
VISTA>ZL ZZGREG2 ZP
ZZGREG2
EN ; ; 1/17/06 6:55pm
N I,X,X1,CNT
S ^XTMP("GREG")=0
J RUN("A")
J RUN("B")
S I=0,X="",X1="",CNT=0
F S I=$O(^XTMP("GREG",I)) Q:((I="")!(CNT>10)) D
.S X1=X
.S X=$G(^XTMP("GREG",I))
.W:X'=X1 !,"Changing to ",X," at I = ",I
.S:X'=X1 CNT=CNT+1
K ^XTMP("GREG")
Q
RUN(X) ;
N I,J
F I=1:1:5000 D
.S J=$INCREMENT(^XTMP("GREG"))
.S ^XTMP("GREG",J)=$G(X)
Q
VISTA>D ^ZZGREG2
Changing to A at I = 1
Changing to B at I = 457
Changing to A at I = 884
Changing to B at I = 885
Changing to A at I = 1087
Changing to B at I = 1306
Changing to A at I = 1307
Changing to B at I = 1479
Changing to A at I = 2815
Changing to B at I = 7002
Changing to A at I = 11044
It seems that the Alpha behaves something like a SIMD processor. I'm
impressed.
===
Gregory Woodhouse
[EMAIL PROTECTED]
"Without the requirement of mathematical aesthetics a great many
discoveries would not have been made."
-- Albert Einstein
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members