[comp.unix.wizards] out of swap space?

aed@netcom.COM (Andrew Davidson) (04/24/91)

Hi
I am currently trying to port an application from a sun sparc station
to SCO ODT UNIX. I seem to get some weird run time core dumps. I
talked to the orginal authour of the code, and was told that this
might because my system is running out of swap space?

HOW BIG SHOULD MY SWAP BE? I have 8megs of ram

ARE THERE ANY TOOLS TO HELP ME MANAGE / MONITOR MY SWAP SPACE?

thanks in advance Andy

-- 
-----------------------------------------------------------------
                  "bede-bede-bede Thats all Folks"
				Porky Pig
Andy Davidson
Woodside CA.
aed@netcom.COM
-----------------------------------------------------------------

urban@cbnewsl.att.com (john.urban) (04/24/91)

In article <1991Apr23.214214.16521@netcom.COM> aed@netcom.COM (Andrew Davidson) writes:
>
>Hi
>I am currently trying to port an application from a sun sparc station
>to SCO ODT UNIX. I seem to get some weird run time core dumps. I
>talked to the orginal authour of the code, and was told that this
>might because my system is running out of swap space?
>

Have you ever ported to a 80386 box before?  Unlike the 3b2 and other machines
the 386 in unforgiving on null pointers.  Perhaps there is minor bug or
something in the code.

>HOW BIG SHOULD MY SWAP BE? I have 8megs of ram
>

On UNIX System V/386 Release 3.2 (I believe SCO UNIX is a variant of this)
SWAP should be about 15% of disk or perhaps in your case 12 meg (1.5 of ram).
As a side note, SVR4 would required twice ram from swap but thats a different
story.

>ARE THERE ANY TOOLS TO HELP ME MANAGE / MONITOR MY SWAP SPACE?
>

You can run:
	# swap -l
	# sar -r

Look at the book: System Performance Tuning by O'Reilly and Associates, Inc
pages 118 -> 

>thanks in advance Andy
>

Sincerely,

John Urban

steve@contact.uucp (Steve Haller) (04/26/91)

>I am currently trying to port an application from a sun sparc station
>to SCO ODT UNIX. I seem to get some weird run time core dumps. I
>talked to the orginal authour of the code, and was told that this
>might because my system is running out of swap space?
>
>HOW BIG SHOULD MY SWAP BE? I have 8megs of ram
>

the lower bound should be the amount of physical RAM you have (plan to
have) in the machine.

>ARE THERE ANY TOOLS TO HELP ME MANAGE / MONITOR MY SWAP SPACE?

swap(ADM) is part of the SCO ODT & UNIX distribution

I think that u386mon from Warren Tucker will allow interactive monitoring
of swap space.