* Manipulating memory control registers on noname board
[not found] <01BBE229.AFAB5B80@ztm03-13.dial.xs4all.nl>
@ 1996-12-04 22:17 ` Anthony Wesley
0 siblings, 0 replies; only message in thread
From: Anthony Wesley @ 1996-12-04 22:17 UTC (permalink / raw)
Hi All. Now that I have my UDB Alpha running (more or less) it's time to
start asking semi-intelligent questions... I don't know if there are any
alpha kernel developers on this list, but here goes anyway...
Apologies for the length of this post, but I am trying to be clear and
unambiguous.
I have read about the noname board, and the info I have seen tells me that
the memory timings can be controlled via software and the GTR (global
timing register) and various MCR's (memory control registers). Can this be
done from the Linux kernel while it is running, or from MILO before the
kernel starts?
I have benchmarked the memory system on my UDB and it is, well, not very
good. I have seen this low performance on intel machines straight from the
supplier, and I always manipulate the memory settings in the BIOS until I
find the fastest setup which works reliably - sometimes _MUCH_ faster than
as supplied. I would like to be able to "tune" this alpha in the same way,
and from what I see in the documentation I found on gatekeeper it looks as
though it is possible to tune it with high precision.
I had a look through the source to both MILO and the kernel, and couldn't
spot anywhere in there which manipulated these registers, so I speculate
that this setup is done in the firmware at boot time, probably at the same
time as the memory is located and sized.
I am seeing main memory access times (1st & 2nd level cache miss) of
500ns - 1us (amazingly slow). For your information, here is the memory
speed chart from my memory tester:
On this machine, one word = 8 bytes
Reported access times are in nS per word.
Block|--------------------------Memory Stride (8 byte words)---------------
size |1 2 4 8 16 32 64 128 256 512 1k 2k 4k 8k 16k 32k 64k 12k
|
1k |19 19 19 19 19 19 19
2k |19 19 19 19 19 19 19 19
4k |19 19 19 19 19 19 19 19 19
8k |20 20 21 19 19 19 19 19 19 19
16k |50 80 128 126 126 125 125 125 125 125 125
32k |50 81 129 126 126 125 125 125 125 125 125 125
64k |51 82 131 128 127 125 125 125 125 125 125 125 125
128k |95 173 322 315 314 308 308 308 312 319 335 335 546 125
256k |170 327 642 638 639 636 641 655 690 756 882 705 653 546 970
512k |205 398 791 786 787 785 793 809 842 911 1k+ 980 652 652 970 125
1M |224 436 870 865 865 863 871 885 923 992 1k+ 1k+ 1k+ 864 864 546 970
2M |223 436 870 865 865 864 872 885 925 992 1k+ 1k+ 1k+ 1k+ 970 758 970 125
I understand some of the slowness - the memory system on this board is
done on the cheap and is not as fast as some other models - but I can't
help thinking that we can do a _lot_ better than this. Some of the really
bad numbers are probably from TLB misses as well (I have been told that a
TLB miss is really expensive on the 21064, but I don't know why).
Some of the numbers in this chart are understandable (19ns to 1st level
cache = 3 clocks, 1st level cache is 8k) and some numbers make no sense to
me as yet (why the sudden slowness at 128k ? the L2 cache is 256k in
size...).
I will continue to research this, but any kernel developer (ie someone who
knows what they are doing inside the kernel, or inside MILO) who can
assist is most welcome to share their wisdom with me. Making the memory
system faster will make the machine as a whole faster, and is probably A
Good Thing (tm).
Regards, Anthony
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-12-04 22:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <01BBE229.AFAB5B80@ztm03-13.dial.xs4all.nl>
1996-12-04 22:17 ` Manipulating memory control registers on noname board Anthony Wesley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox