Recently on some apache reverse proxy servers we have encountered the dreaded "/bsd: uvm_mapent_alloc: out of static map entries" in the logs. To the point where the system has become unresponsive and died.
This has occurred on OpenBSD 3.9 i386 and OpenBSD 4.0 amd64. I am unsure exactly what is causing this although I assume it has something to do with it being quite a heavily loaded server and running a lot of apache virtual hosts. We ran out of file descriptors a while ago and increased maxfiles, maxproc and somaxconn as well as openfiles-cur and openfiles-max. Do these options also affect KMAPENT in any way. To prolong the uptime of the servers I could play with some kernel parameters I suppose. It seems KMAPENT is derived from NPROC and NPROC is derived from MAXUSERS which currently is 32. Changing MAXUSERS to 64 seems to be what others are doing but is there any information around on what these parameters actually affect? Is there better memory management in later/current releases of OpenBSD if this is in fact the problem? Thanks ________________________________ The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.