Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: dsr@mail.lns.cornell.edu (Daniel S. Riley)
To: massimo@mercurio.iet.unipi.it (Massimo Macucci)
Subject: Re: Ultrix problem: "cant get mbufs"
Date: 1998/07/31	[thread overview]
Message-ID: <shr9z2f45r.fsf@lns100.lns.cornell.edu> (raw)
In-Reply-To: 6pq607$ler$1@pisanino.unipi.it

massimo@mercurio.iet.unipi.it (Massimo Macucci) writes:
> However, every week or so, a new problem has started appearing: the
> message "cant get mbufs" appears on the console, and, unless the
> machine is rebooted right away, a hardware reset becomes necessary,
> because everything get completely frozen.

The kernel memory pool is being exhausted; to fix it, you need to
increase the number of page table entries available to the kernel
memory allocator map.  Edit /sys/machine/mips/vmparam.h--towards the
end you'll find a section something like

#if (PHYSMEM/10 < LOW_WATER)
#define KMEMUMAP (LOW_WATER*256+KMEMSLOP)
#else
#if (PHYSMEM/10 > HIGH_WATER)
#define KMEMUMAP (HIGH_WATER*256+KMEMSLOP)
#else
#define KMEMUMAP (PHYSMEM/10*256+KMEMSLOP)
#endif
#endif

Change that to something like

#if (PHYSMEM/10 < LOW_WATER)
#define KMEMUMAP (2*LOW_WATER*256+KMEMSLOP)
#else
#if (PHYSMEM/10 > HIGH_WATER)
#define KMEMUMAP (HIGH_WATER*256+KMEMSLOP)
#else
#define KMEMUMAP (PHYSMEM/5*256+KMEMSLOP)
#endif
#endif

which doubles the PHYSMEM factor for machines with less than 100 MB
of RAM.  Build and install a new kernel and reboot.
-- 
Dan Riley                                         dsr@mail.lns.cornell.edu
Wilson Lab, Cornell University      <URL:http://www.lns.cornell.edu/~dsr/>
    "History teaches us that days like this are best spent in bed"



  reply	other threads:[~1998-07-31  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-30  4:00 Ultrix problem: "cant get mbufs" Massimo Macucci
1998-07-31  4:00 ` Daniel S. Riley [this message]
1998-07-31  4:00 ` Gregg E Economou
  -- strict thread matches above, loose matches on Subject: below --
1998-07-30  4:00 Massimo Macucci
read-only archive

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