Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ev4sched---here it is
@ 1996-04-24 15:15 David Mosberger-Tang
  1996-04-30  6:19 ` Harald Koenig
  1996-05-02  8:43 ` Harald Koenig
  0 siblings, 2 replies; 16+ messages in thread
From: David Mosberger-Tang @ 1996-04-24 15:15 UTC (permalink / raw)


OK, there seems to be considerable interest in the EV4 scheduler.  It
was posted to the net (if memory serves) a few years ago.  It's
probably still somewhere on one of DEC's ftp site.

In any case, I put up a tar file on azstarnet:

 ftp://ftp.azstarnet.com/pub/linux/axp/misc/axpsrc-ev4sched-0.0.tar.gz

It contains DEC's sample scheduler (that's the BIG file) and a wrapper
that allows to run it on ECOFF object files (that's the tiny file).
Basically, you simply do "ev4sched filename.o" and it'll print you a
nice pipeline diagram of when things issue.

Please be sure to read the caveats listed in ev4sched.c.  It's a
convenient tool, but it's also easy to get meaningless results if you
don't know what you're doing... :-)

If somebody wanted to improve it, the first thing to do would be to
add support for multiple basic blocks.

	--david

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
@ 1996-04-24 18:31 Stephen J. Gaudet
  0 siblings, 0 replies; 16+ messages in thread
From: Stephen J. Gaudet @ 1996-04-24 18:31 UTC (permalink / raw)


Dear Mary

More info.

cheers,
sjg

At 08:15 AM 4/24/96 -0700, you wrote:
>OK, there seems to be considerable interest in the EV4 scheduler.  It
>was posted to the net (if memory serves) a few years ago.  It's
>probably still somewhere on one of DEC's ftp site.
>
>In any case, I put up a tar file on azstarnet:
>
> ftp://ftp.azstarnet.com/pub/linux/axp/misc/axpsrc-ev4sched-0.0.tar.gz
>
>It contains DEC's sample scheduler (that's the BIG file) and a wrapper
>that allows to run it on ECOFF object files (that's the tiny file).
>Basically, you simply do "ev4sched filename.o" and it'll print you a
>nice pipeline diagram of when things issue.
>
>Please be sure to read the caveats listed in ev4sched.c.  It's a
>convenient tool, but it's also easy to get meaningless results if you
>don't know what you're doing... :-)
>
>If somebody wanted to improve it, the first thing to do would be to
>add support for multiple basic blocks.
>
>	--david
>
>--
>To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
>
>
 
Steve
 +1-603-421-1800	http://www.dcginc.com
 ______________________________________________________________
| Stephen Gaudet        |  ** Digital Authorized reseller **   |
| DCG Computers Inc.    | Alpha, Intel Pentium Pro systems and |
| 35 Otterson Rd.       | motherbds running NT, Linux, & UNIX  |
| Londonderry, NH 03053 |--------------------------------------|
| ph:603-421-1800   fax:603-421-0911    e-mail:sjg@dcginc.com  |
 --------------------------------------------------------------

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
  1996-04-24 15:15 David Mosberger-Tang
@ 1996-04-30  6:19 ` Harald Koenig
  1996-04-30  7:59   ` Richard Henderson
  1996-05-02  8:43 ` Harald Koenig
  1 sibling, 1 reply; 16+ messages in thread
From: Harald Koenig @ 1996-04-30  6:19 UTC (permalink / raw)


> OK, there seems to be considerable interest in the EV4 scheduler.  It
> was posted to the net (if memory serves) a few years ago.  It's
> probably still somewhere on one of DEC's ftp site.
> 
> In any case, I put up a tar file on azstarnet:
> 
>  ftp://ftp.azstarnet.com/pub/linux/axp/misc/axpsrc-ev4sched-0.0.tar.gz
> 
> If somebody wanted to improve it, the first thing to do would be to
> add support for multiple basic blocks.

below is a vrey primitive patch which just passes bigger blocks in
chunks of 512 words.

might be a dump question (I've no real ideas about the problems of writing
a compiler or good code generator):

wouldn't it be easy (or ar least doable) to include this scheduler into the
GCC and get a considerable improvement in performace ?
this can be done either in the code generator stage of gcc (from C to ASM)
or in the assembler itself.  or what about a postprocessing program which
just rewrites binaries ?

since this scheduler is available for quite some time and this hasn't been
done already I assume there is a major problem in this easy thinging aproach.
but which one ?

Harald

-------------------------------------------------------------------------------
diff -u ORIG/ev4sched.c ./ev4sched.c
--- ORIG/ev4sched.c	Wed Apr 24 17:04:04 1996
+++ ./ev4sched.c	Fri Apr 26 20:42:03 1996
@@ -121,7 +121,12 @@
 			    argv[0], argv[i]);
 		    goto cleanup;
 		}
-		schedule_bb_ev4(insts, shdr.s_size/4, offset, reorder);
+		{
+		  int i;
+		  for(i=0; i<shdr.s_size/4; i+= 512) {
+		    schedule_bb_ev4(insts+i, i+512<shdr.s_size/4 ? 512 : shdr.s_size/4-i, offset, reorder);
+		  }
+		}
 	    }
 	    fseek(infp, next_section, SEEK_SET);
 	}
diff -u ORIG/instr-sched.c ./instr-sched.c
--- ORIG/instr-sched.c	Sun Jul 16 07:02:25 1995
+++ ./instr-sched.c	Fri Apr 26 20:32:12 1996
@@ -1782,7 +1782,7 @@
 static unsigned find_node_to_dual_issue (unsigned cycle, unsigned last_node, boolean reorder);
 static void     add_arc (unsigned node1, unsigned node2, unsigned latency);
 static void     mark_ending_nodes ();
-static int      sort_node_value (void *ent1, void *ent2);
+static int      sort_node_value (const void *ent1, const void *ent2);
 static void     compute_aftercycles ();
 static void     addres (boolean def, unsigned resource, enum resource_class class);
 static void     resource_constraints (unsigned resource);
@@ -1844,7 +1844,10 @@
   /*
   ** Clip the number of nodes to the maximum the scheduler can handle.
   */
-  assert (number <= MAX_NODES);
+  if (!(number <= MAX_NODES)) {
+    printf("number=%d MAX_NODES=%d,  ",number,MAX_NODES);
+    assert (number <= MAX_NODES);
+  }
   number_of_nodes = number;
   /*
   **	Copy instructions to buffer and work from that
@@ -2139,7 +2142,7 @@
 **	Function used as callback routine by the library routine qsort
 **	to create a sort the array of node_value structures.
 */
-static int sort_node_value (void *ent1, void *ent2)
+static int sort_node_value (const void *ent1, const void *ent2)
 {
   struct node_value_s *sort1, *sort2;
 
^[[46;1H^[[K

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
  1996-04-30  6:19 ` Harald Koenig
@ 1996-04-30  7:59   ` Richard Henderson
  0 siblings, 0 replies; 16+ messages in thread
From: Richard Henderson @ 1996-04-30  7:59 UTC (permalink / raw)


> wouldn't it be easy (or ar least doable) to include this scheduler into the
> GCC and get a considerable improvement in performace ?
> this can be done either in the code generator stage of gcc (from C to ASM)
> or in the assembler itself.  or what about a postprocessing program which
> just rewrites binaries ?

There is, in fact, a scheduling pass already in gcc.  It isn't as
good as it could be -- partially because it isn't so good with 
superscalar architechtures and partially because the its 21064 model
is not exactly accurate.  Whether this later is due to failings in
gcc or something else, I'm not certain.

It would, however, be an interesting project to replace the model
currently in gcc with the one used in this scheduler.

r~

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
  1996-04-24 15:15 David Mosberger-Tang
  1996-04-30  6:19 ` Harald Koenig
@ 1996-05-02  8:43 ` Harald Koenig
  1996-05-02  9:02   ` Linus Torvalds
  1996-05-02 15:16   ` Erik Troan
  1 sibling, 2 replies; 16+ messages in thread
From: Harald Koenig @ 1996-05-02  8:43 UTC (permalink / raw)


> It would, however, be an interesting project to replace the model
> currently in gcc with the one used in this scheduler.

one argument against this scheduler (at least in it's current form) 
is it's speed (cpu time taken):  I run 

	ev4sched -r XF86_S3

which is 2.8MB code size. this took exactly 1 hour CPU time on a 21064/266.
code rearangements for a ~550k code size numerical (fp, "shelx93") program t
ook 25min!  but this can be improved by using smaller blocks:

block_size	cpu time for ev4sched -r shelx93
 [words]
  16	  182.98user 1.00system  3:03.95 elapsed 100%CPU 
  32	   97.03user 0.57system  1:37.60 elapsed 100%CPU 
  64	   73.35user 0.48system  1:13.84 elapsed  99%CPU 
 128	  110.75user 0.69system  1:51.43 elapsed 100%CPU 
 256	  336.05user 1.58system  5:37.57 elapsed 100%CPU 
 496	 1426.05user 4.77system 23:50.57 elapsed 100%CPU 
 512	 1487.34user 5.04system 24:52.00 elapsed 100%CPU 

that's quite a lot just to get maybe 10-20% more performace (which is the 
average ratio between cycle time with and w/o code rearangement).  but on the
other hand for a final production version...

the following example shows that even these 20% are by far not enough:
here are cpu times for this fortran program (~20k lines) using f2c to
convert it to C (~40k lines) and then using either gcc-2.7.1 or the 
DEC cc from DEC UNIX 3.2 or similar (I have to check this again).
both (static) binaries are then run on my XL266 on Linux.

	gcc -O3 	  1556.99 secs
	cc -O3  	   824.56 secs

this almost a factor of TWO:-(

I even tried "gcc -O3 -funroll-loops-funroll -all-loops-fstrength-reduce"
and similar with no significant difference (other than the compile time).

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
  1996-05-02  8:43 ` Harald Koenig
@ 1996-05-02  9:02   ` Linus Torvalds
  1996-05-02 15:16   ` Erik Troan
  1 sibling, 0 replies; 16+ messages in thread
From: Linus Torvalds @ 1996-05-02  9:02 UTC (permalink / raw)


> the following example shows that even these 20% are by far not enough:
> here are cpu times for this fortran program (~20k lines) using f2c to
> convert it to C (~40k lines) and then using either gcc-2.7.1 or the 
> DEC cc from DEC UNIX 3.2 or similar (I have to check this again).
> both (static) binaries are then run on my XL266 on Linux.
> 
>      gcc -O3        1556.99 secs
>      cc -O3          824.56 secs
> 
> this almost a factor of TWO:-(

Have you tried to profile this? The difference might be partly in the
libraries, so if the "cc" version is also using DEC libraries (likely), then it
might be due to that.

Admittedly gcc is pretty bad at some things, and floating point is not the
strongest point of gcc, so it _may_ be due to just compilers..

		Linus

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
  1996-05-02  8:43 ` Harald Koenig
  1996-05-02  9:02   ` Linus Torvalds
@ 1996-05-02 15:16   ` Erik Troan
  1 sibling, 0 replies; 16+ messages in thread
From: Erik Troan @ 1996-05-02 15:16 UTC (permalink / raw)


On Thu, 2 May 1996, Harald Koenig wrote:

> one argument against this scheduler (at least in it's current form) 
> is it's speed (cpu time taken):  I run 
> 
> 	ev4sched -r XF86_S3

Hmmm... so treating all of the X server as one optimization block is a good
test of an optimizer? Try testing it on 10 instructions and multiplying that
by 10,000 and I bet you'll get a far better number.

ev4sched is not meant to run on programs, just basic blocks.

Erik

-------------------------------------------------------------------------------
   Always hoped that I'd be an apostle. Knew that I would make it if I tried.
     Then when we retire we can write the gospels so they'll all talk about
         us when we die. - "The Last Supper" from Jesus Christ Superstar
|   Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu    |

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
@ 1996-05-02 15:32 David Mosberger-Tang
  0 siblings, 0 replies; 16+ messages in thread
From: David Mosberger-Tang @ 1996-05-02 15:32 UTC (permalink / raw)


ev4sched uses a quadratic algorithm to schedule blocks.  It's accurate, but
slow.  A colleague here at the university has an Alpha scheduler that is
almost as accurate as ev4sched and as fast as the scheduler the DEC cc uses
(this is from memory, but the numbers he had looked very good).  I don't
think that code is production quality, but if somebody wanted it, I'm sure
it could be had.

	--david

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
       [not found] <ML-2.2.831027762.3978.torvalds@linux.cs.helsinki.fi>
@ 1996-05-02 15:54 ` Harald Koenig
  1996-05-02 16:31   ` Richard Henderson
  0 siblings, 1 reply; 16+ messages in thread
From: Harald Koenig @ 1996-05-02 15:54 UTC (permalink / raw)


> >      gcc -O3        1556.99 secs
> >      cc -O3          824.56 secs
> > 
> > this almost a factor of TWO:-(
> 
> Have you tried to profile this? The difference might be partly in the
> libraries, so if the "cc" version is also using DEC libraries (likely), then it
> might be due to that.

very unlikely since this program only reads a ~300k ASCII data file, 
then does 10-30min linear matrix solving/optimization and finally
prints a ~100k report. for most of the time libraries aren't needed 
at all as far as I can see.

but anyhow, I tried to profile this program (always being curious ;-)
and got a lot of new problems:

- profiling only works with "-O0". using "-O1" or higher will give an endless
loop for the first subroutine called (when executing "return" the subroutine
is reentered immediately according to "stepi"s in gdb when compiling everything
with "-O1 -g -pg".  I've tried using "-p" too which gives the same problems
(endless loop and alignment traps for anythying but "-O0").

- when using anything higher as "-O0" I get two alignment traps at the start
of this program:

	unaligned trap at 00000001200748a8: 00000001405ec02c 2d 14
	unaligned trap at 00000001200748b4: 00000001405ec034 2d 13

from gdb x/i:

	0x1200748a8 <monstartup+496>:           b5cc0000        stq     s5, 0(s3)
	0x1200748b4 <monstartup+508>:           b5ac0008        stq     s4, 8(s3)

which is located in libgmon.a:

0x29c <monstartup+420>:         c3e00055        br       0x3f4 <monstartup+764>
0x2a0 <monstartup+424>:         47ff0410        clr     a0
0x2a4 <monstartup+428>:         a53d80a0        ldq     s0, -32608(gp)
0x2a8 <monstartup+432>:         a77d8070        ldq     t12, -32656(gp)
0x2ac <monstartup+436>:         6b5b4000        jsr     ra, (t12), 0x2b0
0x2b0 <monstartup+440>:         27ba0001        ldah    gp, 65536(ra)
0x2b4 <monstartup+444>:         23bd8740        lda     gp, -30912(gp)
0x2b8 <monstartup+448>:         a42b0000        ldq     t0, 0(s2)
0x2bc <monstartup+452>:         b4090000        stq     v0, 0(s0)
0x2c0 <monstartup+456>:         40221401        addq    t0, #16, t0
0x2c4 <monstartup+460>:         4420d103        bic     t0, #6, t2
0x2c8 <monstartup+464>:         a4430000        ldq     t1, 0(t2)
0x2cc <monstartup+468>:         a4bd8020        ldq     t4, -32736(gp)
0x2d0 <monstartup+472>:         44203101        bic     t0, #1, t0
0x2d4 <monstartup+476>:         a49d8018        ldq     t3, -32744(gp)
0x2d8 <monstartup+480>:         48410242        mskwl   t1, t0, t1
0x2dc <monstartup+484>:         b4430000        stq     t1, 0(t2)
0x2e0 <monstartup+488>:         b5850000        stq     s3, 0(t4)
0x2e4 <monstartup+492>:         b1440000        stl     s1, 0(t3)
0x2e8 <monstartup+496>:         b5cc0000        stq     s5, 0(s3)
0x2ec <monstartup+500>:         b14c0010        stl     s1, 16(s3)
0x2f0 <monstartup+504>:         4143152a        subq    s1, #24, s1
0x2f4 <monstartup+508>:         b5ac0008        stq     s4, 8(s3)
      [ ... ]
0x3f4 <monstartup+764>:         45ef041e        or      fp, fp, sp
0x3f8 <monstartup+768>:         a75e0000        ldq     ra, 0(sp)
0x3fc <monstartup+772>:         a53e0008        ldq     s0, 8(sp)
0x400 <monstartup+776>:         a55e0010        ldq     s1, 16(sp)
0x404 <monstartup+780>:         a57e0018        ldq     s2, 24(sp)
0x408 <monstartup+784>:         a59e0020        ldq     s3, 32(sp)
0x40c <monstartup+788>:         a5be0028        ldq     s4, 40(sp)
0x410 <monstartup+792>:         a5de0030        ldq     s5, 48(sp)
0x414 <monstartup+796>:         a5fe0038        ldq     fp, 56(sp)
0x418 <monstartup+800>:         43cc141e        addq    sp, #96, sp
0x41c <monstartup+804>:         6bfa8001        ret     zero, (ra), 1
End of assembler dump.

the following program, when compiled with "cc -pg -O1 demo.c" or higher
won't output anything but loop (forever? didn't want to wait that long)
but "cc -pg -O0 demo.c" is fine:

int sub() {
  return 1;
}

main() {
  int i;
  i = sub();
  printf("%d\n",i);
}

- gprof 2.6 from Red Hat doesn't honor HZ=1000, all timing values in seconds
are divided by 10 

anyway, here is the start of gprof output with "-O0" for a small data set
(15 sec runtime with profiling, ~5.2 cpu secs with gcc -O2, ~2.6 secs with cc -O2):

  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 62.28      0.91     0.91        1   906.26   960.37  sx3b_
 19.93      1.20     0.29        1   290.04   291.29  sx3a_
  8.39      1.32     0.12      648     0.19     0.19  sxdx_
  3.42      1.37     0.05        2    24.90    26.57  sxop_
  1.74      1.39     0.03       23     1.10     1.11  sxpn_
  1.21      1.41     0.02        1    17.58  1271.81  MAIN__
  1.07      1.43     0.02      352     0.04     0.04  sxdu_
  0.54      1.43     0.01     1278     0.01     0.01  sxas_
  0.54      1.44     0.01                             __start
  0.47      1.45     0.01     6283     0.00     0.00  sxus_
  0.20      1.45     0.00      400     0.01     0.01  sxlp_
  0.13      1.45     0.00                             done
  0.07      1.46     0.00      434     0.00     0.00  sxps_
  0.00      1.46     0.00   100358     0.00     0.00  _IO_sputbackc
  0.00      1.46     0.00   100358     0.00     0.00  _IO_ungetc
  0.00      1.46     0.00    36324     0.00     0.00  Binit
  0.00      1.46     0.00    21844     0.00     0.00  sxpv_
  0.00      1.46     0.00    21840     0.00     0.00  sxsv_
  0.00      1.46     0.00    19982     0.00     0.00  _IO_default_xsputn
  0.00      1.46     0.00    14034     0.00     0.00  _IO_padn
  0.00      1.46     0.00     9540     0.00     0.00  sxlz_
  0.00      1.46     0.00     8358     0.00     0.00  _IO_setb
  0.00      1.46     0.00     8305     0.00     0.00  _IO_init
  0.00      1.46     0.00     8287     0.00     0.00  _IO_sprintf
  0.00      1.46     0.00     8287     0.00     0.00  _IO_str_init_static
  0.00      1.46     0.00     8287     0.00     0.00  _IO_vsprintf
            ^^^^
           14.6 secs!

all sx* routines are fortran subroutines, _IO_sputbackc is the first 
(f2c) library routine...

> Admittedly gcc is pretty bad at some things, and floating point is not the
> strongest point of gcc, so it _may_ be due to just compilers..

of course this program was *not* compiled using "-mieee" which would cost
another factor 1.5-2.

I'll try some C (integer) code next time to see if this isn't that bad
for non floating point code...

one more performance note I just got today are the "xstones" for the
XF86_S3 with a S3 Trio64V+ card I've tested in both a alpha XL266 
machine (21064/266 with 2MB cache) and my PC with Pentium OverDrive 83MHz
with 256k cache and 32bit data bus (486 board; ASUS SP3G):

machine |  line   |  fill   |   blt   |  text   |    arc    |  cmplx  | xstones
--------+---------+---------+---------+---------+-----------+---------+--------
PODP83  |  680251 |  251101 |  184931 |  270446 |  10170423 |  375542 |  293210
XL266D  |  385344 |  239787 |  183127 |  281627 |   7627608 |  512581 |  276883

note that the cpu intensive line- and arc-stones are much lower for the alpha
than for the i586  whereas I/O or graphics engine intensive tests are 
about the same (fill, blt, test).

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
       [not found] <Pine.LNX.3.91.960502111441.7441C-100000@elroy.redhat.com>
@ 1996-05-02 16:21 ` Harald Koenig
  1996-05-06  1:38   ` procps patches Craig Ruff
  1996-05-02 17:16 ` ev4sched---here it is Jim Paradis
  1 sibling, 1 reply; 16+ messages in thread
From: Harald Koenig @ 1996-05-02 16:21 UTC (permalink / raw)


> > one argument against this scheduler (at least in it's current form) 
> > is it's speed (cpu time taken):  I run 
> > 
> > 	ev4sched -r XF86_S3
> 
> Hmmm... so treating all of the X server as one optimization block is a good
> test of an optimizer? Try testing it on 10 instructions and multiplying that
> by 10,000 and I bet you'll get a far better number.

of course not.  some lines down in my mail you can find timing data for
different block sizes which shows a minimum for ~64 instruction blocks
(changing the initialisation of the schedular might give even better results
for smaller blocks ?!)

> ev4sched is not meant to run on programs, just basic blocks.

I was just curious what happens when a "basic block" would be one subroutine
(or a large code sequence due to inlines) which can be (and is the the Xserver) 
quite large.

but maybe it's always sufficient to use code between to jump/branch statements
as basic block because of the alignment of branch targets ?  just guessing...
but I'd really like to see how much real improvement such a better code
scheduling could give for the current gcc (and how much CPU time it'd cost ;-)

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
@ 1996-05-02 16:28 David Mosberger-Tang
  0 siblings, 0 replies; 16+ messages in thread
From: David Mosberger-Tang @ 1996-05-02 16:28 UTC (permalink / raw)


Profiling will work correctly with glibc and a small patch to gcc.

	--david

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
  1996-05-02 15:54 ` Harald Koenig
@ 1996-05-02 16:31   ` Richard Henderson
  0 siblings, 0 replies; 16+ messages in thread
From: Richard Henderson @ 1996-05-02 16:31 UTC (permalink / raw)


>- profiling only works with "-O0". using "-O1" or higher will give an endless
>loop for the first subroutine called (when executing "return" the subroutine
>is reentered immediately according to "stepi"s in gdb when compiling everything
>with "-O1 -g -pg".  I've tried using "-p" too which gives the same problems
>(endless loop and alignment traps for anythying but "-O0").

Yes indeed -- profiling under libaxp-0.4x is broken.  I discovered
this while trying to profile the assembler.  David Mosberger tells
me that he's got it fixed for the new glibc, but that is not ready
for public consumption just yet.

r~

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
@ 1996-05-02 17:10 David Mosberger-Tang
  0 siblings, 0 replies; 16+ messages in thread
From: David Mosberger-Tang @ 1996-05-02 17:10 UTC (permalink / raw)


If you're interested in getting a better scheduler into gcc, you may
want to talk to Patrick Bridges <bridges@cs.arizona.edu>.

	--david

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
       [not found] <Pine.LNX.3.91.960502111441.7441C-100000@elroy.redhat.com>
  1996-05-02 16:21 ` ev4sched---here it is Harald Koenig
@ 1996-05-02 17:16 ` Jim Paradis
  1 sibling, 0 replies; 16+ messages in thread
From: Jim Paradis @ 1996-05-02 17:16 UTC (permalink / raw)


> Hmmm... so treating all of the X server as one optimization block is a good
> test of an optimizer? Try testing it on 10 instructions and multiplying that
> by 10,000 and I bet you'll get a far better number.
> 
> ev4sched is not meant to run on programs, just basic blocks.

Indeed; it will produce incorrect results if run on anything *but* basic
blocks!

I'm working right now on fixing the front-end of this thing so it'll
automatically break things up into basic blocks and feed them to the
rescheduler one at a time...

-- 
Jim Paradis (paradis@amt.tay1.dec.com)        "It's not procrastination, 
Digital Equipment Corporation		       it's my new Just-In-Time 
(508)952-4047				       Workload Management System!"
http://www.tiac.net/users/jrp/index.html

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: ev4sched---here it is
@ 1996-05-02 20:23 Toon Moene
  0 siblings, 0 replies; 16+ messages in thread
From: Toon Moene @ 1996-05-02 20:23 UTC (permalink / raw)


Harald Koenig wrote:

>  the following example shows that even these 20% are by
>  far not enough:  here are cpu times for this fortran
>  program (~20k lines) using f2c to convert it to C (~40k
>  lines) and then using either gcc-2.7.1 or the DEC cc from
>  DEC UNIX 3.2 or similar (I have to check this again).
>  both (static) binaries are then run on my XL266 on Linux.

>  	gcc -O3           1556.99 secs
>	cc -O3		   824.56 secs

>  this almost a factor of TWO:-(

Could you elaborate on the sort of Fortran code at hand here ?   
There are known shortcomings in the gcc loop optimisation routines  
for "Fortran type code" (whether compiled with f2c + gcc or g77)  
that might be obstructing performance here.  If your example does a  
lot of (relatively simple floating point - add, subtract, multiply,  
divide) arithmetic in nested do loops, it might help to try out the  
optimisations g77-0.5.18 offers [ the optimisations can also be  
applied to f2c + gcc compilations ].

Toon.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* procps patches
  1996-05-02 16:21 ` ev4sched---here it is Harald Koenig
@ 1996-05-06  1:38   ` Craig Ruff
  0 siblings, 0 replies; 16+ messages in thread
From: Craig Ruff @ 1996-05-06  1:38 UTC (permalink / raw)


Do you have a patch to get aoutupdate.c from procps 0.99a to compile
on the Alpha?  I must not have saved it if you sent one out.  Thanks.

-- 

Craig Ruff      	NCAR			cruff@ncar.ucar.edu
(303) 497-1211  	P.O. Box 3000
			Boulder, CO  80307	Amateur Call KB0UNK

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~1996-05-06  1:38 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.3.91.960502111441.7441C-100000@elroy.redhat.com>
1996-05-02 16:21 ` ev4sched---here it is Harald Koenig
1996-05-06  1:38   ` procps patches Craig Ruff
1996-05-02 17:16 ` ev4sched---here it is Jim Paradis
1996-05-02 20:23 Toon Moene
  -- strict thread matches above, loose matches on Subject: below --
1996-05-02 17:10 David Mosberger-Tang
1996-05-02 16:28 David Mosberger-Tang
     [not found] <ML-2.2.831027762.3978.torvalds@linux.cs.helsinki.fi>
1996-05-02 15:54 ` Harald Koenig
1996-05-02 16:31   ` Richard Henderson
1996-05-02 15:32 David Mosberger-Tang
1996-04-24 18:31 Stephen J. Gaudet
1996-04-24 15:15 David Mosberger-Tang
1996-04-30  6:19 ` Harald Koenig
1996-04-30  7:59   ` Richard Henderson
1996-05-02  8:43 ` Harald Koenig
1996-05-02  9:02   ` Linus Torvalds
1996-05-02 15:16   ` Erik Troan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox