🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.sys5.r3
3 messages
3 total messages Started by David James Sun, 23 Jul 1995 00:00
ISC (SVR3) out of streams resources
#122
Author: David James
Date: Sun, 23 Jul 1995 00:00
38 lines
1446 bytes
I have an Interactive Systems (SVR3) Unix that I have connected to 
an Ethernet and talking SLIP to an Internet Service Provider.

Occasionally, when there's a reasonable amount of network activity on 
both interfaces, I'm getting messages "Socket: Out of streams resources". 
Before I start increasing tuneable parameters more or less at random, 
can anyone suggest which ones I should try first.

The stune file is
NSTREAM       	48
NQUEUE        	256
NBLK4096      	4
NBLK2048      	32
NBLK1024      	32
NBLK512       	32
NBLK256       	64
NBLK128       	128
NBLK64        	256
NBLK16        	256
NBLK4         	128
SHMSEG         15
SHMALL	512
NBUF	2000
NINODE	800
NS5INODE	800
NFILE	800
NPROC	200
NREGION	600
NCLIST	300
MAXUP	50
NHBUF	512
NAUTOUP	30
SHLBMAX	12

-- 
David James
mailto:david@tcs01.demon.co.uk
http://metro.turnpike.net/D/djames/
Re: ISC (SVR3) out of streams resources
#123
Author: Andrew Gabriel
Date: Mon, 24 Jul 1995 00:00
16 lines
1314 bytes
In article <806539154snz@tcs01.demon.co.uk>
           david@tcs01.demon.co.uk "David James" writes:

> I have an Interactive Systems (SVR3) Unix that I have connected to 
> an Ethernet and talking SLIP to an Internet Service Provider.
> 
> Occasionally, when there's a reasonable amount of network activity on 
> both interfaces, I'm getting messages "Socket: Out of streams resources". 
> Before I start increasing tuneable parameters more or less at random, 
> can anyone suggest which ones I should try first.

Try  netstat -m  to see which resource is running low/out.

-- 
Andrew Gabriel                        Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer          Work: Andrew.Gabriel@net-tel.co.uk
Re: ISC (SVR3) out of streams resources
#124
Author: Philip Shearer
Date: Mon, 24 Jul 1995 00:00
69 lines
3549 bytes
In article <806539154snz@tcs01.demon.co.uk>
           david@tcs01.demon.co.uk "David James" writes:

> I have an Interactive Systems (SVR3) Unix that I have connected to 
> an Ethernet and talking SLIP to an Internet Service Provider.
> 
> Occasionally, when there's a reasonable amount of network activity on 
> both interfaces, I'm getting messages "Socket: Out of streams resources". 
> Before I start increasing tuneable parameters more or less at random, 
> can anyone suggest which ones I should try first.

It is much more likly that you have a program which is not cleaning up
after it's self properly, so even if you increase the paramers that it
will still fail :-(.

The classic example is:
	create a steams pipe, 
	fork 
	attach the streams pipe to the stdin and out of the fork, 
        exec child process,
        do some processing, 
        kill child process (which closes the childs end of the streams pipe. 
        close the parents end of the spipe.

But because the parent did not close it's end of the streams pipe this pipe
remains in existance. Due to what I assume is a bug in the kernal these
zomby steams can remain allocated even when the parent process dies.

Also see if you have any FIN WAIT 2 states shown when using netstat -a.
I don't think that there is any way to clean theses up unless you open
the setsockopt / t_optmanagemt with SO_REUSEADDR option.
Unfortunatly the timout in the kernal does not seem to function on that
one :-(

> 
> The stune file is
> NSTREAM         48
> NQUEUE          256

My ISC machine is at a customers site so it is a bit of a pain to go and
look up my settings. But if no one else helps I'll dial in and have a
look for you.

When setting the machine up use the optin which alows you to set it for as
many users as possible. 
If you have the optional RFS module it sets "everthing louder than
everyting else" to quote the old roady saying. The one important setting
I seem to rember that is essential which was not mentioned in the manuals
that I had and used to cause problems was NQUEUE had to be 4 times larger
than NSTREAM. 

What does the command:
	netstat -m 
show you when you have theses problems?

BTW do you use the standard ISC slip software? If you do you might like
to take a look at the adialer software I uploaded onto demon a couple of
years ago as it alows you to automate the connection times (and the
softeware to run) when connectiong to Demon. I have a newer version designed 
to run with the BSD OS but need someone to test that it still works with
ISC, so if anyone reads this and would like a copy, please email me.

-- 
Regards Philip Shearer 
 
As long as mankind shall continue to bestow more liberal applause on their
destroyers than on their benefactors, the thirst of military glory will ever
be the vice of the most exalted characters.
                                        -- Edward Gibbon
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads