Hi Sebastian,

I don't know if this will help at all, but I remember having a Cyrus-IMAP server that always had a fair amount of disk I/O and tons of open files that would exhibit the similar behavior. Unfortunately, it wasn't running GENERIC (had RAIDFRAME and a couple of other things enabled), it was running an old OpenBSD 3.6 (amd64) system and I didn't have time to debug the issue since it was a production box, so I just changed the /usr/src/sys/uvm/uvm_map.h KMAP_ENT #define to be 4000 instead of 1000, recompiled the kernel, and also added crontab entries to stop and start most of the daemons running on that machine frequently, and that kept it up long enough to migrate the data off of it.

I know it's incredibly kludgey and hackish, but it worked temporarily
Best of luck,
Tico

Sebastian Reitenbach wrote:

Hi list,
I have two servers, one running 4.0 and one with 3.9, they are used as web
servers, with a mysql database running on them. Both are more or less idle, but I have seem these messages in /var/log/messages on both servers:
bsd: uvm_mapent_alloc: out of static map entries

I found this thread, where someone has seen the same problem:
http://marc.theaimsgroup.com/?l=openbsd-tech&m=115959929717470&w=2

The servers are either freezing completely, or may still answer on pings, and
carp communication, but it is not possible to log in via ssh, or contact the apache
server.

this is the output on one of the servers, just after new start:
# vmstat -s|grep 'kernel map';grep uvm /var/log/messages
        36 kernel map entries
Jan 24 08:01:30 www /bsd: uvm_mapent_alloc: out of static map entries
Jan 29 07:10:06 www /bsd: uvm_mapent_alloc: out of static map entries
Feb 22 22:39:41 www /bsd: uvm_mapent_alloc: out of static map entries

here the other running for ten days:
# vmstat -s|grep 'kernel map';grep uvm /var/log/messages
       672 kernel map entries
Jan 24 08:01:30 www /bsd: uvm_mapent_alloc: out of static map entries
Jan 29 07:10:06 www /bsd: uvm_mapent_alloc: out of static map entries
Feb 22 22:39:41 www /bsd: uvm_mapent_alloc: out of static map entries

as I read the message of the other thread, I can change some kernel option, but
if I understand the message above correctly, with changing the options, i can only extend the time before a new freeze or problems.
Is there anything else I can do to keep the machines up and running?


kind regards
Sebastian

Reply via email to