Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Subject: Re: ev4sched---here it is
Date: Thu, 2 May 1996 10:43:23 +0200 (MET DST)	[thread overview]
Message-ID: <9605020839.AA04011@nova.tat.physik.uni-tuebingen.de> (raw)
In-Reply-To: <199604241515.IAA11204@koala.azstarnet.com>

> 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                     ^^^^^       ^^^^^

  parent reply	other threads:[~1996-05-02  8:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-24 15:15 ev4sched---here it is David Mosberger-Tang
1996-04-30  6:19 ` Harald Koenig
1996-04-30  7:59   ` Richard Henderson
1996-05-02  8:43 ` Harald Koenig [this message]
1996-05-02  9:02   ` Linus Torvalds
1996-05-02 15:16   ` Erik Troan
  -- strict thread matches above, loose matches on Subject: below --
1996-04-24 18:31 Stephen J. Gaudet
1996-05-02 15:32 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
     [not found] <Pine.LNX.3.91.960502111441.7441C-100000@elroy.redhat.com>
1996-05-02 16:21 ` Harald Koenig
1996-05-02 17:16 ` Jim Paradis
1996-05-02 16:28 David Mosberger-Tang
1996-05-02 17:10 David Mosberger-Tang
1996-05-02 20:23 Toon Moene
read-only archive

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