Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

kernel/3355: panic: uvm_mapent_alloc: out of static map entries, check MAX_KMAPENT

From: Adam Montague <suck(at)my-balls.com>
Date: Thu Jul 17 2003 - 14:28:48 EDT


>Number: 3355
>Category: kernel
>Synopsis: A busy squid server will panic with out of static map entries
>Confidential: yes
net
>Environment:
        

	System      : OpenBSD 3.3
	Architecture: OpenBSD.i386
	Machine     : i386

>Description:
I have 2 busy squid servers, both openbsd 3.3. They both panic after a week or 2 with the following: panic: uvm_mapent_alloc: out of static map entries, check MAX_KMAPENT (currently 1500) MAX_KMAPENT was 1000, changing it to 1500 makes it take longer to happen, but the problem is still there. They are not GENERIC, because GENERIC will panic much sooner complaining about mbufs. Also, squid needs extra kernel options for busy sites. Additions to GENERIC: option MSGSSZ=64 option MSGMNI=64 option MSGMNB=16384 option MSGTQL=2048 option MSGSEG=2048 option NMBCLUSTERS=8192 option NKMEMPAGES=16384 option SEMMNI=256 option SEMSEG=64 option SEMMAX=2097152 option SEMALL=4096 option SEMMNS=2048 option BUFCACHEPERCENT=30 option MAX_KMAPENT=1500

(gdb) file bsd.3
Reading symbols from bsd.3...(no debugging symbols found)...done. (gdb) target kcore bsd.3.core
panic: uvm_mapent_alloc: out of static map entries, check MAX_KMAPENT (currently 1500) #0 0x1000 in ?? ()
(gdb) where

#0  0x1000 in ?? ()
#1  0xd02a2eec in boot ()
#2  0xd01d52d2 in panic ()
#3  0xd028cb63 in uvm_map_clip_end ()
#4  0xd028d9e6 in uvm_unmap_remove ()
#5  0xd02a76c8 in pmap_init ()
#6  0xd02a8220 in pmap_copy_page ()
#7  0xd02a8836 in pmap_remove ()
#8  0xd028daea in uvm_unmap_remove ()
#9  0xd02901c9 in uvmspace_free ()
#10 0xd0289825 in uvm_exit ()
#11 0xd01c3e0e in reaper ()
#12 0xd01be5b3 in start_reaper ()
#13 0xd010034b in proc_trampoline ()

# ps -N /var/crash/bsd.3 -M /var/crash/bsd.3.core -O paddr -xau
  PID  PADDR TT   STAT      TIME COMMAND          USER     %CPU %MEM   VSZ   RSS STARTED
30366 2b168b24 ??  R>s     0:00.00 (diskd)          squid     0.0  0.0    28     0 -       
    1 2a8c1000 ??  R>s     0:00.00 (init)           root      0.0  0.0   340     0 -       
30078 2a8c1b1c ??  R>s     0:00.00 (syslogd)        root      0.0  0.0   104     0 -       
Do you need help?X
32584 2a8c1d94 ?? R>s 0:00.00 (pflogd) root 0.0 0.0 368 0 - 5842 2a8f0140 ?? I>s 0:00.00 (sshd) root 0.0 0.0 356 0 - 26086 2a8f076c ?? I>s 0:00.00 (cron) root 0.0 0.0 232 0 - 1415 2a8c19e0 C0 I>s+ 0:00.00 (getty) root 0.0 0.0 48 0 - 2726 2a8c1c58 C1 I>s+ 0:00.00 (getty) root 0.0 0.0 48 0 - 14817 2a8f08a8 C2 I>s+ 0:00.00 (getty) root 0.0 0.0 48 0 - 5784 2a8f09e4 C3 I>s+ 0:00.00 (getty) root 0.0 0.0 48 0 - 14663 2a8f0b20 C5 I>s+ 0:00.00 (getty) root 0.0 0.0 48 0 - 23232 2a8f0630 ?? R>s 0:00.00 (squid) root 0.0 0.0 1784 0 - 32742 2b168634 ?? S>s 0:00.00 (sendmail) root 0.0 0.0 908 0 - 17109 2b1683bc ?? R>s 0:00.00 (unlinkd) squid 0.0 0.0 20 0 - 2209 2b168144 ?? R>s 0:00.00 (diskd) squid 0.0 0.0 28 0 - 22039 2b168d9c ?? R>s 0:00.00 (diskd) squid 0.0 0.0 28 0 - 14701 2b1688ac ?? R>s 0:00.00 (diskd) squid 0.0 0.0 28 0 - 19293 2b168280 ?? ?E 0:00.00 (squid) squid 0.0 0.0 658044 0 - # vmstat -N /var/crash/bsd.3 -M /var/crash/bsd.3.core -m
Kmem statistics are not being gathered by the kernel. Memory resource pool statistics
Name        Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
phpool        40     3879    0        0    39     0    39    39     0   inf    0
extentpl      20      178    0      160     1     0     1     1     0   inf    0
Do you need more help?X
pmappl 72 24110 0 24092 1 0 1 1 0 inf 0 vmsppl 212 24110 0 24092 2 0 2 2 0 inf 0 vmmpepl 88 711110 0 710796 12 0 12 12 0 inf 4 vmmpekpl 88 61725 0 61652 2 0 2 2 0 inf 0 aobjpl 52 40 0 35 1 0 1 1 0 inf 0 amappl 40 221244 0 221082 3 0 3 3 0 inf 0 bufpl 116 33 0 33 1 0 1 1 0 inf 1 mbpl 256 1330405792 0 1330402432 396 0 396 396 1 inf 131 mclpl 2048 1134354035 0 1134353739 1897 0 1897 1897 4 4096 1701 sockpl 200 26619771 0 26616796 223 0 223 223 0 inf 57 procpl 316 24117 0 24092 4 0 4 4 0 inf 1 zombiepl 72 24093 0 24092 1 0 1 1 0 inf 0 ucredpl 80 3529 0 3524 1 0 1 1 0 inf 0 pgrppl 24 2579 0 2562 1 0 1 1 0 inf 0 sessionpl 48 2483 0 2466 1 0 1 1 0 inf 0 pcredpl 24 24117 0 24092 1 0 1 1 0 inf 0 filepl 48 48314297 0 48314240 23 0 23 23 0 inf 13 fdescpl 320 24118 0 24093 4 0 4 4 0 inf 1 pipepl 76 25942 0 25932 1 0 1 1 0 inf 0 sigapl 308 24110 0 24093 3 0 3 3 0 inf 1 wdcspl 96 2949874 0 2949873 1 0 1 1 0 inf 0
Can we help you?X
scxspl 128 38023628 0 38023628 3 0 3 3 0 inf 3 vnodes 160 16384 0 0 656 0 656 656 0 inf 0 nchpl 64 16384 0 0 261 0 261 261 0 inf 0 ffsino 280 58602297 0 58585923 1170 0 1170 1170 0 inf 0 pagedeppl 64 458324 0 458320 53 0 53 53 0 inf 52 inodedeppl 84 6232070 0 6231406 117 0 117 117 0 inf 96 newblkpl 32 30833862 0 30833862 1 0 1 1 0 inf 1 bmsafemappl 32 844801 0 844784 2 0 2 2 0 inf 1 allocdirectpl 60 22647305 0 22646498 50 0 50 50 0 inf 35 indirdeppl 28 92759 0 92743 1 0 1 1 0 inf 0 allocindirpl 52 8186557 0 8186042 295 0 295 295 0 inf 282 freefragpl 32 12098456 0 12098421 3 0 3 3 0 inf 2 freeblkspl 108 1194000 0 1193781 29 0 29 29 0 inf 15 freefilepl 28 1058777 0 1058777 7 0 7 7 0 inf 7 diraddpl 32 5185480 0 5185474 45 0 45 45 0 inf 44 mkdirpl 28 65832 0 65832 55 0 55 55 0 inf 55 dirrempl 32 1059933 0 1059933 5 0 5 5 0 inf 5 shmpl 60 39 0 35 1 0 1 1 0 inf 0 pftrpl 60 27918662 0 27911318 299 0 299 299 0 inf 177 pfrulepl 484 8 0 5 1 0 1 1 0 inf 0 pfstatepl 144 14030377 155001 14026705 358 0 358 358 0 358 213
Can't find what you're looking for?X
pfpooladdrpl 76 1 0 0 1 0 1 1 0 inf 0 ipqepl 20 31835119 0 31835114 18 0 18 18 0 inf 17 tcpcbpl 356 26619250 0 26616283 404 0 404 404 0 inf 104 sackhlpl 20 1702501 0 1702493 1 0 1 1 0 inf 0 plimitpl 152 2358 0 2348 1 0 1 1 0 inf 0 kqeuepl 192 4 0 4 1 0 1 1 0 inf 1 knotepl 64 8 0 8 1 0 1 1 0 inf 1

In use 12432K, total allocated 25832K; utilization 48.1%

>How-To-Repeat:

        Run a busy squid server.
>Fix:

>Release-Note:
Received on Thu Jul 17 14:08:50 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:30:00 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library