Path: utzoo!attcan!uunet!cs.utexas.edu!rice!sun-spots-request From: tekbspa!tss!joe@uunet.uu.net (Joe Michel-Angelo) Newsgroups: comp.sys.sun Subject: Re: Differing clock speeds on Sparcs? Keywords: Source Message-ID: <3159@brazos.Rice.edu> Date: 19 Nov 89 21:37:09 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 26 Approved: Sun-Spots@rice.edu X-Refs: Original: v8n179, Replies: v8n191 v8n194 v8n195 X-Sun-Spots-Digest: Volume 8, Issue 202, message 2 of 17 In article <2955@brazos.Rice.edu>, by jeremy@kheops.cmi.no (Jeremy Cook): > all run at the same speed. Does anyone have a short program which we could > run which would determine which type of CPU we have? The hostid of each machine is supposed to indicate the CPU/machine type. Not sure if sun is still living up to that convention, but in the older days, they were. If I remember correctly, the 1st byte is the cpu type, the second is the machine type. The appended shell script may be useful. Note that this script doesn't recognize a sparc-type cpu yet (since the script was written 2 yrs ago....), but i think the cpu type is 5 for sparc. just sample the output of `hostid` and you'll get the idea... someplace along the line, i belive the kernel config file also makes note of the machine type (# connection for machine type X), so, kernel config files are a source or further data for the attached script. Ed's Note: Script placed in archives. FTP: Hostname : titan.rice.edu (128.42.30.1) Directory: sun-source Filename : machtype.script Archive Server Address: archive-server@rice.edu Archive Server Command: send sun-source machtype.script