Path: utzoo!attcan!uunet!cs.utexas.edu!rice!husc6!bu.edu!buengc!bph From: bph@buengc.BU.EDU (Blair P. Houghton) Newsgroups: comp.sys.encore Subject: Re: Need some info on encore Message-ID: <5618@buengc.BU.EDU> Date: 7 Apr 90 18:39:09 GMT References: <514@telxon.UUCP> Reply-To: bph@buengc.bu.edu (Blair P. Houghton) Followup-To: comp.sys.encore Organization: Boston Univ. Col. of Eng. Lines: 115 In article <514@telxon.UUCP> bobd@telxon.UUCP (Bob Drotleff) writes: > I have a few questions regarding this computer. > I don't usually read this newsgroup but am interested > in learning more about encore systems. > A "frequently asked questions" and answers list would > be great. Such things as; who makes the box, what type > CPU does it have, what UNIX version does it run etc. 1. Encore Computer Corporation, of course. 3. Umax is 4.x BSD, where x approaches 3 as the year approaches 2000. :-) 2. The question really is "what type CPUs does it have." Encores come with some number of identical processors in each box, usually ns32k's, usually from 2 to 20 of them. To find out what you really have, cc and run the following program on your local encore: ---------------------Clip 'n' compile-------------- /* sm.c -- demo program for sysadmin(3). */ /* Do "man 3 sysadmin" to get the scoop on this function. */ #include main() { int arg1; arg1 = PT_TMEM; /* Return the amount of total (pageable) memory in pages.*/ do_sm(arg1); arg1 = PT_PGSIZE; /* Return the size of a page in bytes. */ do_sm(arg1); } do_sm(arg1) int arg1; { int cmd; cmd = SADMIN_NUMCPUS; printf( "There are %d ", sysadmin(cmd, arg1) ); cmd = SADMIN_CPUTYPE; switch(sysadmin(cmd, arg1)){ case CPUTYPE_DPC: printf("DPC "); break; case CPUTYPE_APC: printf("APC "); break; default: printf("unknown-type "); break; } printf("processors,\nwith "); cmd = SADMIN_FPUTYPE; switch(sysadmin(cmd, arg1)){ case FPUTYPE_NS: printf("an NS32081 "); break; case FPUTYPE_CONE: printf("a CONE "); break; default: printf("an unknown-type "); break; } printf("floating-point coprocessor.\n"); cmd = SADMIN_PAGE_TUNE; switch(arg1){ case PT_TMEM: printf("The amount of total (pageable) memory in pages is %d.\n", sysadmin(cmd, arg1) ); break; case PT_PGSIZE: printf("The size of a page, in bytes, is %d.\n", sysadmin(cmd, arg1) ); break; default: break; } } #if 0 (Just in case.) Typical output looks like this: There are 6 APC processors, with an NS32081 floating-point coprocessor. The amount of total (pageable) memory in pages is 8433. There are 6 APC processors, with an NS32081 floating-point coprocessor. The size of a page, in bytes, is 4096. "APC" is the version of the processor card. There are two CPU's per card, so this says I've got 3 APC cards. The rest is self- explanatory. Yes, you Encoreites are saying "hey, what about XPC's?" well, check your manual pages and see if CPUTYPE_XPC is documented. I don't have an account on any XPC machines, just some APCs and DPCs. No, the program's not beautifully elegant, being redundant in its output, but I wrote it simply to exercise susadmin(3), and it's too easy just to post it rather than cleaning it up... --Blair "But I decrement..." #endif