HDTenEightyP/NetNews huggingface dataset:
From: hoesel@igc.ethz.ch (Frans van Hoesel)
Subject: optimise ??? (C compiler generates sub-optimal code)
Organization: University of Groningen, the Netherlands
Date: Sun, 16 Aug 1992 17:16:08 GMT

The next piece of code generates non-optimized output, even with -O4.

static	int	array[100];
void main(void) {
	array[1] = 1;
	array[4] = 1;
	array[7] = 1;
	array[23] = 1;
}

the disassembled output is as follows:
t.c:1  static	int	array[100];
t.c:2  void main(void) {
t.c:3  	array[1] = 1;
  [0x400200]    li      r14,1
  [0x400204]    lui     r1,0x1000
  [0x400208]    sw      r14,2900(r1)
t.c:4  	array[4] = 1;
  [0x40020c]    lui     r1,0x1000
  [0x400210]    li      r15,1
  [0x400214]    sw      r15,2912(r1)
t.c:5  	array[7] = 1;
  [0x400218]    lui     r1,0x1000
  [0x40021c]    li      r24,1
  [0x400220]    sw      r24,2924(r1)
t.c:6  	array[23] = 1;
  [0x400224]    lui     r1,0x1000
  [0x400228]    li      r25,1
  [0x40022c]    sw      r25,2988(r1)
t.c:7  }

whereas an optimised version would look something like:
		li	r14,1
		lui	r1,0x1000
		sw	r14,2900(r1)
		sw	r14,2912(r1)
		sw	r14,2924(r1)
		sw	r14,2988(r1)

Is there any way to let the compiler perform this rather simple opitmalization
? or do I have to switch back to good old assembler (even in 1992?)

I'm not a mips expert, so bear with me, please,

--frans

(don't tell me the really optimised version is simply : main () {;} )



-- 
===========================================================================
===  frans van hoesel               scientific research programmer      ===
===  hoesel@igc.ethz.ch             seeking a JOB in europa             ===
===========================================================================
From: robertl@cwi.nl (Robert van Liere)
Newsgroups: comp.sys.sgi
Subject: Not enough swap space
Date: 19 Aug 92 20:47:20 GMT
Organization: CWI, Amsterdam


A long, long time ago (i.e. in the 3.3.? days) Lance M Option @ NIH
wrote :

>     SGI System Gurus:
>       We are experiencing problems with "malloc()".  It seems
>       that if an amount of memory greater than the sum of
>       free memory and free swap space is requested, the malloc()
>       succeeds, but the program is killed by the OS when the
>       memory is used.  How can this condition be caught?  Can't
>       the OS give some indication to the user of why his proc died?

We are currently experiencing this behavior as well. Can this condition
be caught in 4.0.5 ? If not, is there something else we can do to avoid
these (SysV related) "problems".


-- Robert van Liere


-- 
Robert van Liere, Department of Interactive Systems,
Center for Mathematics and Computer Science (CWI)
Kruislaan 413,  1098 SJ  Amsterdam,  The Netherlands
email: robertl@cwi.nl | tel: +31-20-592-4118 | fax: +31-20-592-4199
Newsgroups: comp.sys.sgi
From: steve@pitacat.math.cwru.edu (Steven H. Izen)
Subject: /etc/ioctl.syscon - What is it for?
Originator: steve@pitacat
Organization: Math Dept., Case Western Reserve University, Cleveland, Ohio
Date: Fri, 14 Aug 92 15:49:23 GMT

I just upgraded to 4.0.5 from 4.0.4, and was cleaning up after doing a
'versions changed'.  While doing this I came across

m /etc/ioctl.syscon
? /etc/ioctl.syscon.O   (.O = old version, saved for comparison)

I looked at the files and they seem pretty opaque to me:

pitacat [10]% cat /etc/ioctl.syscon
d26:1805:8bd:3b:1:7f:1c:8:15:4:0:0:0:0:0:0:0:0:0:0:16:17:12:f:13:11:0:0:0:0:0:0:0:0:0:0
pitacat [11]% cat /etc/ioctl.syscon.O
526:1805:bd:3b:1:3:1c:8:15:4:0:0:1a:0:0:0

I searched TFM for documentation, but obviously looked in the wrong
places.

What is /etc/ioctl.syscon used for?  Can I safely blow away the old
version?

Thanx for any info,

			Steve

-- 
Steve Izen, Associate Prof. of Mathematics, Case Western Reserve University
Best Address:              MaBell: Voice: (216)368-2891  Fax: (216)368-5163
shi@po.cwru.edu		Next best address: steve@pitacat.math.cwru.edu
Newsgroups: comp.sys.sgi
From: dave@imax.imax.com (Dave Martindale)
Subject: Re: 4.0.5 A/B/C/D ???
Organization: Imax Corporation, Mississauga Canada
Date: Mon, 17 Aug 1992 23:30:42 GMT

Excuse me if I've missed the answer to this, but I have been reading
fairly diligently:

Will some version of 4.0.5 be shipped to all users with the appropriate
maintenance contracts, or just those that requested it to fix some problems?
If no, when *will* there be a general release?

We're running 4.0.2, which came installed on our Indigo XS24.  Dave Olson has
indicated that it was a somewhat rushed release and, in one message,
asked "is anyone still running 4.0.2"?  Well, I am.

I don't want to call the hotline, wasting my time and SGI's, to ask
for something that will eventually arrive on its own.  On the other hand,
I don't want to wait forever for something that will only be sent on
request.

	Dave
From: rck@fangio.asd.sgi.com (Robert Keller)
Newsgroups: comp.sys.sgi
Subject: Re: Crimson vs. R4000 Indigo. What's the difference?
Keywords: Crimson, Indigo, R4000
Date: 15 Aug 92 22:04:59 GMT
Organization: Silicon Graphics, Inc., Mountain View, CA

In article <oj4pqts@zuni.esd.sgi.com> jeffs@soul.esd.sgi.com (Jeff Smith) writes:
>In <ogn7f5g@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
>>In <g!4mhnf.jchauvin@netcom.com> jchauvin@netcom.com (John H. Chauvin) writes:
>>| Can someone summaries the differences between a SGI Crimson and a R4000
>>| Indigo workstation assuming they both have the Elan graphics package.
>
>>Expandability and I/O.
>
>The Crimson can also hold the high-end graphics boards,
>which for a fully loaded Reality Engine is 5 large boards.

The maximum is actually six.

The Reality Engine comes in three sizes: three, four or six 9U boards.  
Each set contains one Geometry Engine board and one Video/Analog Board.  
You can have one, two or four Raster Processor Boards depending on the 
Reality Engine features desired.

...robert
From: james@sam.contex.com (James McQueston)
Newsgroups: comp.sys.sgi
Subject: Crimson, symmon, kp scsi 0
Keywords: irix debugging symmon
Date: 20 Aug 92 16:48:46 GMT

I have installed setup my kernel to make symmon available
according to the instructions in "IRIX Device Driver Programming Guide,"
Document Number 007-0911-020, 3/92.

When I enter symmon by typing ^A and then type:
	kp scsi 0
I get:
	WD93A controller at 0xb7f08007
	AUX 0x0 ...
	.
	.
	.
	CMD 0x8 DATA 0xff <and then it hangs right here>

What I mean by <and then it hangs right there> is that the cursor
is left at then end of "0xff" and no newline seems to be output.
Not only that, but now symmon is dead, and ^A will not bring it back.

Is this a known problem on Crimson, or is there something
wrong with my IO3 board?

Where "*" above indicates characters written in by hand with ink,
identification numbers on my IO3 board read:
		   ***     * ******
    ...ASY 030-022-002 Rev B DA#675

The two chips that I think are the WD33C93 chips are marked

	AM33C93A - 16PC09
	208NVLD

and the chips I think, but am less sure, are proms used with the
controller chips have stick-on labels reading:

	0700703001

Background info:

We have a timing - related problem that may be a bug in IRIX or
in our specific hardware that is evidenced by a temporally tempramental
set of: 6 x read(80 bytes), ioctl(forward space file), n x read(8192 bytes),
ioctl(forward space file) 6 x read(80 bytes).  And that is why I want
to know whether "kp scsi 0" is supposed to work.

Oh yes, the Crimson passes all diagnostics we have run. Of course there
doesn't seem to be much documentation on them so it is hard to be sure
we are using them correctly. 

Kudos to anyone who has even a single photon of light to shine on this
problem.

-----
James H. McQueston		james@contex.com
Xyvision Color Systems, Inc.	(617) 246-1776 x 5523 (office, voicemail)
Wakefield MA 01880-1291		(617) 245-4471        (lab phone direct)
-- 
-----
James H. McQueston		james@contex.com
Xyvision Color Systems, Inc.	(617) 246-1776 x 5523 (office, voicemail)
Wakefield MA 01880-1291		(617) 245-4471        (lab phone direct)
Newsgroups: comp.sys.sgi
From: olson@anchor.esd.sgi.com (Dave Olson)
Subject: Re: Crimson vs. R4000 Indigo. What's the difference?
Keywords: Crimson, Indigo, R4000
Organization:  Silicon Graphics, Inc.  Mountain View, CA
Date: Thu, 13 Aug 92 05:30:05 GMT

In <g!4mhnf.jchauvin@netcom.com> jchauvin@netcom.com (John H. Chauvin) writes:

| Can someone summaries the differences between a SGI Crimson and a R4000
| Indigo workstation assuming they both have the Elan graphics package.

Expandability and I/O.

| I was planning on ordering a Crimson but I would much rather have the
| small Indigo in my office. Why is the Crimson so big?

Same answer.

Crimson gives you lots of room for various VME (6U and 9U cards),
more disks (2 SCSI channels instead of 1), and more memory when max'ed out.

Performance-wise, within the configuration constraints of the
r4k Indigo, they are very similar.
--
Let no one tell me that silence gives consent,  |   Dave Olson
because whoever is silent dissents.             |   Silicon Graphics, Inc.
    Maria Isabel Barreno                        |   olson@sgi.com
From: billabs@nic.cerf.net (Bill Romanowski)
Newsgroups: comp.sys.sgi
Subject: Tranquillity
Keywords: fear,loathing
Date: 22 Aug 92 19:54:01 GMT
Organization: CERFnet

>I am sure no unfriendly intent was involved and I hope no one is deeply
>offended, but it would be better to put such things on one's own
>machine in the future.  At least first check with postmaster or root at
>the third party.
>
>It would be unfortunately and inconvenient for all of us if ~ftp/pub on
>sgi.com had to stop being writable by people outside the SGI corporate
>network.
>
>Vernon Schryver,  vjs@sgi.com
>
 deeply shamed, bill romanowski replies..
 1) tq was commissioned by sgi as demo fun for the user community
     so I thought sgi.com was a reasonable place to disperse it.
 2) I thought pub was pub.
 3) I'll crawl back under the rock I came from. Maybe I'll write
     the more appropos game of Hostility.
 4) Vernon needs to relax with a nice round of Tranquillity.

bill romanowski
VP of remorse
prairie research



Newsgroups: comp.sys.sgi
From: damc@swifty.dap.CSIRO.AU (Don McCormick)
Subject: Need help compiling xview 3.0 under IRIX 4.05
Organization: CSIRO, Division of Applied Physics, Sydney
Date: Fri, 14 Aug 1992 07:18:53 GMT

Has anyone compiled the "xview 3.0" package on an SGI machine (4D/380)
running IRIX 4.05?

I have previously compiled and installed X11R5 (under 3.03) however due
to the upgrade to 4.0X some parameters in the sgi.cf config file will need
to be changed. Any help in this area would be greatly appreciated as well.

Thanking you in advance.

Don

Don McCormick _________ CSIRO Division of Applied Physics, ___________________
		   PO Box 218, Lindfield, NSW, 2070. Australia.
 Phone: + 61 2 413 7751 ___ Fax: +61 2 413 7631 ___ Email:  damc@dap.csiro.au
-------------------------------------------------------------------------------
-- 
Don McCormick _________ CSIRO Division of Applied Physics, ___________________
		   PO Box 218, Lindfield, NSW, 2070. Australia.
 Phone: + 61 2 413 7751 ___ Fax: +61 2 413 7631 ___ Email:  damc@dap.csiro.au
-------------------------------------------------------------------------------
Newsgroups: comp.sys.sgi
From: andrey@huji.ac.il (Andrey)
Subject: high-speed spheres renderin in VISION system ?
Organization: Mail to News Gateway at Wang Labs
Distribution: comp.sys.sgi
Date: 18 Aug 92 16:39:40 GMT
Summary: How to use high-speed rendering of spheres in VISION system?
Keywords: VISION spheres


Hello,

    We have 4D/320VGX workstation. I've read in SG Technical Report,
section 5 (5.4.32 Sphere rendering) that the VISION graphics subsystem 
supports high-speed rendering of high-quality spheres (without using 
polygon primitives). Does somebody know how to use this possibility ? 
The libsphere library provides only polygonal spheres, but for my 
application it is too slow. 
    Any help will be greatly appreciated !
  
Andrey Sigalov, Hebrew University, Jerusalem.
email: andrey@shum.huji.ac.il
From: joseph.maddry@matrix.sbs.com (Joseph Maddry)
Newsgroups: comp.sys.sgi
Subject: list
Date: 13 Aug 92 22:26:23 GMT

Date:        Tue, Aug. 11, 1992
From:        Joseph Maddry  <joseph.maddry@matrix.sbs.com>
Newsgroups:  comp.sys.sgi



Please take me off the mailing list.



I really NEED to get off this list  ---  I have made 8 requests over a
2 month period  ---  I have asked other recipients of these posts for
help or instructions ( no responses! ).



WHAT CAN I DO TO GET OFF THIS MAILING LIST?????????????



Joseph Maddry
joseph.maddry@matrix.sbs.com
---
 . SLMR 2.1a . If at first you don't succeed, use BIG LETTERS!
From: renaud@proust.CERCA.UMontreal.CA (Alain Renaud)
Newsgroups: comp.sys.sgi
Subject: Re: Cannot logout from IRIX 4.0
Date: 17 Aug 92 14:26:07 GMT
Reply-To: renaud@CERCA.UMontreal.CA
Organization: Cerca, Universite de Montreal

In article <1992Aug12.155101@disuns2.epfl.ch>, matomira@disuns2.epfl.ch (Fernando Mato Mira) writes:
|> When trying to logout from a machine running IRIX 4.0, I keep on getting the
|> "Do you really want to logout?" popup. Clicking on "yes" simply doesn't work.
|> I tried removing my old .ps files without luck. Any ideas?
|> 
|> Thanks.
|> -- 
|> Fernando D. Mato Mira
|> Computer Graphics Lab
|> Swiss Federal Institute of Technology
|> matomira@ligsg1.epfl.ch

-- 
Wath if you have a file which is call .xsession this is standard on
X11 system if you do you will see that the last pgm is not in
backround soo if you kill that pgm you will logout the last pgm is
often the window manager I find that the SGI principle of logout on
there new system is some obscure. 

PS. you can rm your users.ps and startup.ps because they are now useless.
    
==============================================================================
=                                                                            =
= Alain Renaud                                           Responsable Systeme =
= Email: renaud@CERCA.UMontreal.CA                                     CERCA =
= tel: (514)369-5221                          5160 Boul. Decarie, bureau 400 =
= fax: (514)369-3880                                        Montreal H3X 2H9 =
=                                                                            =
==============================================================================
Newsgroups: comp.sys.sgi
From: matthew@cadbury.reading.sgi.com (Matthew Slingsby)
Subject: Re: Cannot logout from IRIX 4.0
Organization: Silicon Graphics, Inc.
Date: Wed, 12 Aug 1992 15:26:31 GMT

If your machine name ends in a digit then you probably need to
edit /usr/bin/X11/endsession. Change this

PROP_DISPLAY=`expr $DISPLAY : '\(.*\).[1-9]' \| $DISPLAY`

to

PROP_DISPLAY=`expr $DISPLAY : '\(.*\):[1-9]' \| $DISPLAY`

Then you should be OK.
Matthew.
-- 
Matthew Slingsby, CSD,        |   Why does it happen...
Silicon Graphics Ltd, UK      |       Because it happens...
matthew@reading.sgi.com       |            - RUSH
M/S  IUK-311  vmail-B 8163    |
From: acas@cgl.citri.edu.au (Andrew Cassin)
Newsgroups: comp.sys.sgi
Subject: bru filename length problem...
Summary: see above
Keywords: sigh
Date: 18 Aug 92 23:17:49 GMT
Organization: RMIT Advanced Computer Graphics Centre, CITRI, Melbourne


We do our backups (daily incremental, weekly incremental and monthly full
backups) using bru. However, ever since we made the backup host an
AppleShare server (courtesy of a Webster MPG, CAP and a little patience :)
we have been unable to backup some people's files due to an excessive
pathname length (> 127 chars). IRIX 4.0.1 is currently being used.

Question:  why is the max pathname length so short??? Will it be fixed in
	   a later release of bru/irix? Is there a workaround (apart from
	   not writing out the full pathname)?

Thanks for your replies,

ACAS
Newsgroups: comp.sys.sgi
From: jeremy@classic.asd.sgi.com (Jeremy Higdon)
Subject: Re: CDC Drive Parameters
Organization: Silicon Graphics, Inc.  Mountain View, CA
Date: Thu, 20 Aug 1992 01:48:41 GMT

In article <1992Aug20.003115.19242@iscnvx.lmsc.lockheed.com>, cunning@arthur (Dave Cunningham) writes:
> olson@anchor.esd.sgi.com (Dave Olson) writes:
> 
> : | My in-company computer repair folks replaced my failing 380 Mb system
> : | disk on a 4D20 with with a similar one last used on a sun.  It's the
> : | same model (CDC 94171-9) but with a different firmware rev. (0045).
> :
> :   Stuff deleted...
> : 
> : Error retry of 16 is strange, since that drive wants a multiple
> : of 3.  readahead enabled is something you definitely want for
> : performance.
> 
> Does the advice about readahead apply to drives shipped by SGI in 
> late '89 that have it disabled ?  I have several 94161-9s and 94171-9s
> that came with it turned off.  (they shipped with 4D20s).  Presumably
> there was a reason for turning it off back then, but it may have been
> an Irix software issue.  Anyone remember ?

On some old drives, the readahead didn't work; if you turned it on, you
would get data corruption.  By late '89, it was probably fixed, but you
shouldn't turn it if you aren't willing to lose whatever data is on
those disks.  I.e., it's probably safe, but not at all guaranteed.

> --
> #include  <standard_disclaimer.h>
> 
> Dave Cunningham				cunning@arthur.msd.lmsc.lockheed.com
> Lockheed Missiles and Space Co.		O/81-10, B/157-5E, (408)-756-1382

jeremy

Newsgroups: comp.sys.sgi
From: vjs@rhyolite.wpd.sgi.com (Vernon Schryver)
Subject: Re: shutdown by user
Organization: Silicon Graphics, Inc.  Mountain View, CA
Date: Tue, 18 Aug 1992 04:04:14 GMT

In article <1992Aug17.195429.2312@epas.toronto.edu>, adam@epas.utoronto.ca (Adam Iles) writes:
> In article <ojsf4ek@rhyolite.wpd.sgi.com> vjs@rhyolite.wpd.sgi.com (Vernon Schryver) writes:
> >True, but that hole does not exist if you use a line like
> >
> >shutdown:asdfasdf:0:0:shutdown:/:/etc/halt
> 
> You may want to make sure that you add shutdown to your /etc/ftpusers
> file!  If you let a person ftp as root there is no reason why he would
> not be able to just upload a new /etc/passwd file, or am I missing some
> basic piece of security that has already been discussed?
> 
> Never trust anyone to have addressed ALL of the security issues.


How is this "shutdown" entry any more or less of a security hole
for ftp than the "root" entry in /etc/passwd?

If you can use FTP and "shutdown" to change /etc/passwd without knowing
the right password, then you can use FTP and "root" without knowning
the password.

In other words, I do not think this line creates any additional
security holes.


Vernon Schryver,  vjs@sgi.com
From: mjs@prg.ox.ac.uk (Michael Smith)
Newsgroups: comp.sys.sgi
Subject: Using the Automounter
Date: 13 Aug 92 15:45:07 GMT
Organization: Oxford University Computing Laboratory, UK

Has anyone out there perfected use of this wonderful feature?
I have managed to set it up, but, for example, typing
cd /home/nmra and then pwd gives /tmp_mnt/home/nmra, which
is fine-ish, but makes things a bit more difficult to use.
Is there some way of setting it up so the look is the same
as with the ordinary mount?

Ta!

Mike
Newsgroups: comp.sys.sgi
From: slf@cs.mu.OZ.AU (Stewart Forster)
Subject: Re: Maximum number of concurrent users under IRIX 4.0.x
Originator: slf@turiel.cs.mu.OZ.AU
Reply-To: slf@cs.mu.OZ.AU (Stewart Forster)
Organization: Computer Science, University Of Melbourne, Australia
Date: Mon, 17 Aug 1992 03:42:22 GMT


Hi,

	We have a 4D/340 here as our student machine with 128Mb ram, and
300 Mb swap.  It's peaked at around 190 concurrent users, of which about
120 were active within 1 minute according to /etc/utmp.

	We've maxed out most of our parameters, but ran into troubles when
we tried to up the NBLK parameters too far.  Irix panicked and ran out
of space (I read that this is due to it trying to overlay space into
sash area).  We had to settle for a max of 800 processes to get balance out
with the network performance required to support that many connections.
(We too only have telnet, rlogin connections from annexe boxes).  Some
students also use X, numbering around 20 at most.  The machine is also
running CAP, and counting user support for aufs, we would have hit around
230 users (190 normal + 40 aufs).

	The thing to note here is that at about 100 active users, the
machine reaches grinding point.  At this stage, I presume the machine is
so busy with context switches from students pressing keys in "vi", etc,
that the load average starts to shoot up dramatically, and we maxed at
about 30.  Interactive response starts to go down with this many ACTIVE
users, and we weren't running out of NBLK's.

	I personally wouldn't push a 4D/340 over 150 active users if you
want any form of reasonable interactive response.  You you will to play
games with balancing NBLK's versus number of allowable processes.  For
300 concurrent users, you will be wanting at least 1000 processes, with
1300 being a nice but probably unattainable figure.  Go for 1000 processes,
and max out the NBLK 4 and 16 parameters, if you aren't doing much NFS
serving or X support.  If you are supporting NFS and X as well, you will
want to push up the NBLK64, 128, 256 and 2048 parameters too, the other
don't seem to get used as much, but you will probably run out of processes.

	Anyway, other than NSTREVENT (which gave me a headache for a while
as well), Irix didn't seem to have any extra hidden gotcha's.  Your main
job from here on in will be deciding which tradeoffs to take down the
road of performance tuning your machine to cope with that many users.  If
you are having great troubles, I could do with a holiday in Canada >;-).

			Stewart.

-- 
-----------------------------------------------------------------------------
| Stewart Forster	Systems Programmer - Department of Computer Science |
|		University Of Melbourne		Phone : +61 3 3444046	    |
-----------------------------------------------------------------------------
Newsgroups: comp.sys.sgi
From: dave@imax.imax.com (Dave Martindale)
Subject: Re: Videos from the screen?
Organization: Imax Corporation, Mississauga Canada
Distribution: na
Date: Mon, 17 Aug 1992 22:35:34 GMT

grege@chopin.asd.sgi.com (Greg Estes) writes:
>
>Video From A Window
>-------------------
>
>Indigo/Entry		IndigoVideo NTSC/PAL/S-Video/RGB
>Indigo/XS/XS24/Elan	TBA 1993
>VGX / VGXT		VideoLab RGB/YUV (Betacam)/CCIR 601 (D1)
>RealityEngine		Built-in NTSC/PAL/S-Video/RGB
>
>You may also set the RGB system output to have NTSC or PAL-timings
>by using the /usr/gfx/setmon commands. This must be encoded into
>NTSC or PAL to record on a composite VCR.

I tried "setmon ntsc" on my XS24 and looked at the video output on an
oscilloscope.  It sure looked like properly-timed NTSC, within the
measurement accuracy of the 'scope.  All three of RGB have embedded sync.
So it *looks* like you could connect this directly to a video recorder
with RGB inputs, such as the Sony LVR-5000 or LVR-3000 write-once videodisc.
Has anyone actually tried this?

A smaller issue: Does anyone know of a source of reasonably-priced
video cables to do this?  They'd need a 13W3 connector on one end
and BNC RGB connectors on the other end.  And how should the other
pins on the 13W3 be connected when there isn't a monitor on the far end?

	Dave