From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,28b0249f7691568e X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,28b0249f7691568e X-Google-Attributes: gid1164f8,public From: "Andy Glew" Subject: Re: Alpha in peril? First Canion, now Pfieffer Date: 1999/04/22 Message-ID: <7fnb76$gms$1@news.doit.wisc.edu>#1/1 X-Deja-AN: 469569213 References: <371E0444.D23B703D@uk.sun.com> <7flfm9$15vp@news1.newsguy.com> <7fm3ev$e7e$1@news.doit.wisc.edu> <371f1d68.0@news.destek.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: University of Wisconsin, Madison Newsgroups: comp.arch,comp.sys.dec >I've seen this too. And it's not trivial to tell the difference >between the CPU being the limiter and the memory bus/interconnect >bandwidth being the limiter. I haven't seen machines that offer good >statistics about bus utilization. Most CPUs now have performance >counters that let you deduce average cycles per instruction, cycles per >load/store, cache misses, etc. which can indirectly give you a feel >about bus utilization but it'd be nice if chipsets would give us some >indication of average bus utilization for memory and io busses. Intel's P6 family of processors (Pentium Pro, Pentium II, Pentium III, Xeon, Celeron - basically all current Intel processors) all have performance counter events for things like + cycles in which the data bus is busy + cycles in which the address bus is busy + bus transactions of various types with flavours that count just the local processor's accesses, and all accesses that the local processor snoops. I believe there is also a straightforward + counter of bus clocks so that you do not even need to know the CPU clock / bus clock multiplier - you can determine it. I made sure that there were distinct events for transactions and cycles the bus was busy, because there is not always a constant factor relationship since not all transactions use the data bus for the same length of time. Therefore, it is straightforward to measure bus utilization statistics. It is unfortunate that there are not enough performance counters on the P6 to measure bus utilization while you are also trying to measure things like IPC. There are only 2 such counters. But if you have a stable workload, you can make repeated runs. I have also found it instructive to have a program periodically change what is being measured: e.g. measure bus utilization over a millisecond, then switch to IPC, then switch to cache misses, etc. I hope that future processors will have more counters, so better "snapshots" can be taken. This does not help you with I/O bus activity, since the CPU does not see such activity. I believe, however, that Intel's north-bridge chipsets provide similar counters for PCI bus activity.