Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* [OSF/1 3.0] weird swap space problems (when there's plenty of it)
@ 1995-07-25  4:00 Jason Yanowitz
  1995-07-26  4:00 ` John Stoffel
  1995-07-29  4:00 ` Dave Cherkus
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Yanowitz @ 1995-07-25  4:00 UTC (permalink / raw)



Here's the system:

dual-CPU alpha with 512M of ram and a 128M swapfile.  (I would've made
the swap partition larger, but I wasn't here at the time).

here's the problem:

July 25 10:48:45 meol vmunix: fork/procdup: task_create failed. Code:0x6
July 25 10:48:56 meol vmunix: swap space below 10 percent free
July 25 10:49:29 meol last message repeated 3 times

this happens if we have ~39 users (all running lynx and posssibly pine
or tine).  there is over 300 megs of ram free and 80 megs of swap free
[I am not sure what the 0x6 code corresponds to, by the way... where
would that be (not errno.h)]

I assume this is happening because it thinks it needs more swap than
it has.  but I have no real evidence for this belief.

Can anyone tell me the cause of this, the fix for it, or both?

I see that 3.0 doesn't support swap files.  is there a way around this
apart from upgrading (if even that would solve it)?

Also, as long as i'm begging for information, how does one increase
the number of processes the system can handle (the default for our
setup appears to be ridiculously low...  I mean errors like this:
July 17 13:50:24 meol vmunix: task table is full (repeated 100s of
times)).  I have no reason to believe this was caused by mad forking
(so is there:

a) a way to see what the limit is
b) a way to up it)

My thanks in advance to answers to either of these questions.

I will summarize answers if it seems appropriate.

thanks,
Jason
-- 
lkes uxvwo?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OSF/1 3.0] weird swap space problems (when there's plenty of it)
  1995-07-25  4:00 [OSF/1 3.0] weird swap space problems (when there's plenty of it) Jason Yanowitz
@ 1995-07-26  4:00 ` John Stoffel
  1995-07-29  4:00 ` Dave Cherkus
  1 sibling, 0 replies; 3+ messages in thread
From: John Stoffel @ 1995-07-26  4:00 UTC (permalink / raw)


>>>>> "Jason" == Jason Yanowitz <yanowitz@cs.umass.edu> writes:
In article <3v3m0k$1nh@kernighan.cs.umass.edu> yanowitz@cs.umass.edu (Jason Yanowitz) writes:


Jason> dual-CPU alpha with 512M of ram and a 128M swapfile.  (I
Jason> would've made the swap partition larger, but I wasn't here at
Jason> the time).

I'll be this is your problem, the small swap space.  Once the system
starts running out of physical memory, you're going to run into swap
problems.  For your system, I'd make you swap size to be 1Gb right off
the bat.  In general, Digital Unix seems to like a swap space 2 to 2.5
times the size of physical RAM.

Jason> I see that 3.0 doesn't support swap files.  is there a way
Jason> around this apart from upgrading (if even that would solve it)?

If you have a free partition on a disk, you can add that to your
current swap setup using the 'swapon /dev/rz#x' where # is the SCSI id
of the drive, and 'x' is the partition letter.  Of course, you should
add this into /etc/fstab so it will still be there after reboots.

It also helps to keep swap spaces on one disk contiguous, to keep down
disk head seeks.  

John

         John F. Stoffel - john@wpi.edu - 508-831-5512 - FL 111F
 Workstation Specialist - Worcester Polytechnic Institute College Computer Ctr.
			Kill your television



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OSF/1 3.0] weird swap space problems (when there's plenty of it)
  1995-07-25  4:00 [OSF/1 3.0] weird swap space problems (when there's plenty of it) Jason Yanowitz
  1995-07-26  4:00 ` John Stoffel
@ 1995-07-29  4:00 ` Dave Cherkus
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Cherkus @ 1995-07-29  4:00 UTC (permalink / raw)


Jason Yanowitz (yanowitz@cs.umass.edu) wrote:

: Here's the system:

: dual-CPU alpha with 512M of ram and a 128M swapfile.  (I would've made
: the swap partition larger, but I wasn't here at the time).

Which version of Digital UNIX?

: here's the problem:

: July 25 10:48:45 meol vmunix: fork/procdup: task_create failed. Code:0x6
: July 25 10:48:56 meol vmunix: swap space below 10 percent free
: July 25 10:49:29 meol last message repeated 3 times

: this happens if we have ~39 users (all running lynx and posssibly pine
: or tine).  there is over 300 megs of ram free and 80 megs of swap free
: [I am not sure what the 0x6 code corresponds to, by the way... where
: would that be (not errno.h)]

mach/kern_return.h:
#define KERN_RESOURCE_SHORTAGE          6

: I assume this is happening because it thinks it needs more swap than
: it has.  but I have no real evidence for this belief.

No, the first one is probably because you don't have enough
entries in the task table or enough tasks per user.

: Can anyone tell me the cause of this, the fix for it, or both?

The first one is that either total number of procs in the system
or the number of procs per user is too small.  I don't have any
docs here but the system tuning and perf guide manual tells
how to fix this.

: I see that 3.0 doesn't support swap files.  is there a way around this
: apart from upgrading (if even that would solve it)?

: Also, as long as i'm begging for information, how does one increase
: the number of processes the system can handle (the default for our
: setup appears to be ridiculously low...  I mean errors like this:
: July 17 13:50:24 meol vmunix: task table is full (repeated 100s of
: times)).  I have no reason to believe this was caused by mad forking
: (so is there:

: a) a way to see what the limit is
: b) a way to up it)

Depends on which OS release you run.  See the doc I mentioned above.
In particular, if you are on newer versions of Digital Unix,
'sysconfig -q proc' should tell you some of the numbers, and
you might end up adding

proc:
        max-proc-per-user = 256

to /etc/sysconfigtab and rebooting.  Or you might end up editing
/sys/conf/param.c and rebuilding a kernel.  Or you might end
up changing 'maxusers' in your /sys/conf/HOSTNAME file and
rebuilding a kernel.  It depends on what version of DU that
you have.

Also, you might want to read the 'swapon' man page and consider
running in 'lazy' swap allocation mode.


--
Dave Cherkus ----- UniMaster, Inc. ----- Contract Software Development
Specialties: UNIX TCP/IP X OSF/1 AlphaAXP AIX RS/6000 Performance ISDN
Email: cherkus@UniMaster.COM  Tel: (603) 888-8308  Fax: (603) 888-4598
Live Free or Die - New Hampshire has 3 seasons: ice, mud and black fly 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-07-29  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-25  4:00 [OSF/1 3.0] weird swap space problems (when there's plenty of it) Jason Yanowitz
1995-07-26  4:00 ` John Stoffel
1995-07-29  4:00 ` Dave Cherkus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox