OK, after setting MAX_KMAPENT to 4000, the server only
lasts about 25 hours before a weird freeze -- which is
less than before. This weird freeze still answer to
ping, and consoles changes, but I can't log in, and
everything else stops to answer.
Can anyone give me a clue on how to pinpoint this
problem? I just need to know what is causing, so I can
think of a solution.
There is plenty free RAM, no swap use, and the server
load doesn't go any higher than 5.
I am really lost with lost problem.
Thanks...
dmesg follows:
OpenBSD 4.1 (GENERIC) #0: Mon Apr 16 10:52:27 BRT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error 80<clock_battery>
cpu0: Intel(R) Pentium(R) D CPU 3.00GHz
("GenuineIntel" 686-class) 3.01 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,CNXT-ID,CX16,xTPR
real mem = 2137092096 (2087004K)
avail mem = 1943195648 (1897652K)
using 4278 buffers containing 107003904 bytes
(104496K) of memory
RTC BIOS diagnostic error 80<clock_battery>
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 08/17/06, SMBIOS
rev. 2.3 @ 0xe53d0 (34 entries)
bios0: Intel Corporation D945GNT
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown, estimated 0:00
hours
apm0: flags 30102 dobusy 0 doidle 1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc0000/0xae00! 0xcb000/0x1800
0xcc800/0x2200 0xcf000/0x1000
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GP" rev
0x02
vga1 at pci0 dev 2 function 0 "Intel 82945G Video" rev
0x02: aperture at 0x88200000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100
emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE"
rev 0x01
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 "Intel 82801GB PCIE"
rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 "Intel 82801GB PCIE"
rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev
0x01
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev
0x01
pci5 at ppb4 bus 5
ppb5 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev
0xe1
pci6 at ppb5 bus 6
skc0 at pci6 dev 0 function 0 "D-Link Systems DGE-530T
B1" rev 0x11, Yukon Lite (0x9): irq 9
sk0 at skc0 port A, address 00:15:e9:a6:d0:31
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev.
5
fxp0 at pci6 dev 1 function 0 "Intel 8255x" rev 0x10,
i82551: irq 10, address 00:07:e9:1b:87:45
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
ami0 at pci6 dev 3 function 0 "Symbios Logic MegaRAID"
rev 0x01: irq 11
ami0: LSI 523, 64b/lhc, FW 713N, BIOS vG119, 64MB RAM
ami0: 1 channels, 0 FC loops, 2 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0: <AMI, Host drive #00, >
SCSI2 0/direct fixed
sd0: 76314MB, 76314 cyl, 64 head, 32 sec, 512
bytes/sec, 156291072 sec total
sd1 at scsibus0 targ 1 lun 0: <AMI, Host drive #01, >
SCSI2 0/direct fixed
sd1: 76314MB, 76314 cyl, 64 head, 32 sec, 512
bytes/sec, 156291072 sec total
scsibus1 at ami0: 16 targets
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC"
rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE"
rev 0x01: DMA, channel 0 configured to compatibility,
channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <HL-DT-ST, CD-ROM
GCR-8523B, 1.00> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 "Intel 82801GB SATA"
rev 0x01: DMA, channel 0 configured to native-PCI,
channel 1 configured to native-PCI
pciide1: using irq 11 for native-PCI interrupt
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB
SMBus" rev 0x01: irq 11
iic0 at ichiic0
adt0 at iic0 addr 0x2e: emc6d100 rev 0x68
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using
exception 16
biomask f9fd netmask fffd ttymask ffff
pctr: user-level cycle counter enabled
dkcsum: sd0 matches BIOS drive 0x80
dkcsum: sd1 matches BIOS drive 0x81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
vmstat from 30 secs before freeze:
Memory statistics by bucket size
Size In Use Free Requests HighWater
Couldfree
16 74412 71252 224770258 1280
23786
32 12676 1532 89972273 640
1735
64 7115 245 7009789 320
357
128 4819 45 2115083 160
3249
256 6405 203 7446251 80
30164
512 21302 10 4240637 40
13570
1024 13813 39 2734329 20
71304
2048 3960 14 313420 10
57384
4096 165 16 1693094 5
1050270
8192 286 0 6472 5
5874
16384 10 0 447 5
0
32768 5 0 111 5
0
65536 9 0 342111 5
0
131072 1 0 1 5
0
262144 0 0 0 5
0
524288 0 0 0 5
0
Memory usage type by bucket size
Size Type(s)
16 devbuf, pcb, routetbl, ifaddr, sysctl,
vnodes, UFS mount, sem,
dirhash, file desc, exec, xform_data, VM
swap, UVM amap, UVM aobj,
temp
32 devbuf, pcb, routetbl, ifaddr, vnodes, UFS
mount, sem, dirhash, proc,
VFS cluster, ether_multi, exec, xform_data,
VM swap, UVM amap,
packet tags, temp
64 devbuf, pcb, routetbl, ifaddr, UFS mount,
sem, dirhash, in_multi,
exec, pfkey data, UVM amap, temp
128 devbuf, routetbl, ifaddr, vnodes, UFS mount,
dirhash, ttys, UVM amap,
temp
256 devbuf, routetbl, ifaddr, sysctl, ioctlops,
vnodes, shm, VM map,
dirhash, file desc, newblk, UVM amap, temp
512 devbuf, pcb, ioctlops, mount, UFS mount,
shm, dirhash, file desc,
proc, ttys, exec, UVM amap, temp
1024 devbuf, ioctlops, dirhash, file desc, ttys,
exec, UVM amap, UVM aobj,
crypto data, temp
2048 devbuf, ifaddr, ioctlops, namecache, UFS
mount, dirhash, file,
file desc, proc, pagedep, VM swap, UVM amap,
temp
4096 devbuf, ioctlops, UFS mount, file, file
desc, UVM amap, temp
8192 devbuf, UFS mount, dirhash, file desc, UVM
amap
16384 devbuf, namecache, UFS mount, ISOFS mount,
inodedep, UVM amap, temp
32768 devbuf, namecache, UVM amap
65536 VM swap, UVM amap
131072 VM swap
Memory statistics by type
Type Kern
Type InUse MemUse HighUse Limit Requests
Limit Limit Size(s)
devbuf 2136 639K 639K 39322K 19933
0 0
16,32,64,128,256,512,1024,2048,4096,8192,16384,32768
pcb 112 9K 17K 39322K 27105
0 0 16,32,64,512
routetbl 64 4K 4K 39322K 5542
0 0 16,32,64,128,256
ifaddr 47 8K 8K 39322K 49
0 0 16,32,64,128,256,2048
sysctl 2 1K 1K 39322K 2
0 0 16,256
ioctlops 0 0K 4K 39322K 2395
0 0 256,512,1024,2048,4096
mount 12 6K 6K 39322K 12
0 0 512
vnodes 45 5K 46K 39322K 4053
0 0 16,32,128,256
namecache 3 50K 50K 39322K 3
0 0 2048,16384,32768
UFS mount 49 104K 104K 39322K 49
0 0 16,32,64,128,512,2048,4096,8192,16384
shm 2 1K 1K 39322K 2
0 0 256,512
VM map 3 1K 1K 39322K 3
0 0 256
sem 4 1K 1K 39322K 6
0 0 16,32,64
dirhash 102 39K 170K 39322K 4662
0 0 16,32,64,128,256,512,1024,2048,8192
file 0 0K 4K 39322K 3
0 0 2048,4096
file desc 103 34K 72K 39322K 16070
0 0 16,256,512,1024,2048,4096,8192
proc 20 6K 6K 39322K 20
0 0 32,512,2048
VFS cluster 0 0K 1K 39322K 59409
0 0 32
in_multi 11 1K 1K 39322K 11
0 0 64
ether_multi 12 1K 1K 39322K 12
0 0 32
ISOFS mount 1 16K 16K 39322K 1
0 0 16384
ttys 408 255K 255K 39322K 408
0 0 128,512,1024
exec 0 0K 13K 39322K 1072790
0 0 16,32,64,512,1024
pfkey data 1 1K 1K 39322K 2
0 0 64
xform_data 0 0K 1K 39322K 1140535
0 0 16,32
pagedep 1 2K 2K 39322K 1
0 0 2048
inodedep 1 16K 16K 39322K 1
0 0 16384
newblk 1 1K 1K 39322K 1
0 0 256
VM swap 7 147K 147K 39322K 7
0 0 16,32,2048,65536,131072
UVM amap141742 38936K 39354K 39322K256093962
1 0
16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536
UVM aobj 2 2K 2K 39322K 2
0 0 16,1024
crypto data 1 1K 1K 39322K 1
0 0 1024
packet tags 0 0K 3K 39322K 30155233
0 0 32
temp 92 20K 57K 39322K 52041997
0 0 16,32,64,128,256,512,1024,2048,4096,16384
Memory Totals: In Use Free Requests
40296K 1369K 340644282
Memory resource pool statistics
Name Size Requests Fail Releases Pgreq Pgrel
Npage Hiwat Minpg Maxpg Idle
extentpl 20 7 0 2 1 0
1 1 0 8 0
phpool 40 5926 0 4202 18 0
18 18 0 8 0
pcgpool 76 0 0 0 0 0
0 0 0 8 0
pmappl 84 525528 0 525388 9 0
9 9 0 8 5
vmsppl 220 525528 0 525388 22 8
14 22 0 8 4
vmmpepl 88 134286215 0 134221083 12652 11185
1467 3271 0 8 8
vmmpekpl 88 13346314 0 13346244 3 0
3 3 0 8 1
uaoeltpl 84 0 0 0 0 0
0 0 0 8 0
aobjpl 52 1 0 0 1 0
1 1 0 8 0
amappl 40 83636305 0 83594485 1665 1238
427 600 0 8 3
bufpl 124 84448 0 84448 1 0
1 1 0 8 1
mbpl 256 55536840 0 55534006 1152 960
192 217 1 8 3
mclpl 2048 3495174 0 3495080 249 0
249 249 4 3072 200
sockpl 212 986038 0 983463 825 681
144 162 0 8 0
procpl 356 525540 0 525388 54 34
20 37 0 8 5
zombiepl 72 525388 0 525388 1 0
1 1 0 8 1
ucredpl 80 179192 0 179109 3 0
3 3 0 8 0
pgrppl 24 117022 0 116990 1 0
1 1 0 8 0
sessionpl 48 116564 0 116537 2 0
2 2 0 8 1
pcredpl 24 525540 0 525388 3 0
3 3 0 8 2
lockfpl 52 229414 0 229402 1 0
1 1 0 8 0
filepl 88 44577065 0 44575959 206 178
28 34 0 8 3
fdescpl 296 525541 0 525388 32 14
18 31 0 8 5
pipepl 72 396490 0 396480 3 0
3 3 0 8 2
kqueuepl 192 2365 0 2353 3 0
3 3 0 8 1
knotepl 64 40626 0 40558 4 0
4 4 0 8 2
sigapl 316 525528 0 525388 70 52
18 33 0 8 5
pfiaddrpl 100 0 0 0 0 0
0 0 0 8 0
scxspl 128 1545324 0 1545324 3 0
3 3 0 8 3
sctkpl 20 0 0 0 0 0
0 0 0 8 0
wdcspl 96 6 0 6 1 0
1 1 0 8 1
namei 1024 93951131 0 93951131 9 1
8 9 0 8 8
vnodes 156 4215 0 0 163 0
163 163 0 8 0
nchpl 72 2398 0 0 43 0
43 43 0 8 0
ffsino 188 692015 0 687814 201 0
201 201 0 8 0
dino1pl 128 692015 0 687814 136 0
136 136 0 8 0
pagedeppl 68 0 0 0 0 0
0 0 0 8 0
inodedeppl 84 0 0 0 0 0
0 0 0 8 0
newblkpl 32 0 0 0 0 0
0 0 0 8 0
bmsafemappl 32 0 0 0 0 0
0 0 0 8 0
allocdirectpl 68 0 0 0 0 0
0 0 0 8 0
indirdeppl 28 0 0 0 0 0
0 0 0 8 0
allocindirpl 52 0 0 0 0 0
0 0 0 8 0
freefragpl 32 0 0 0 0 0
0 0 0 8 0
freeblkspl 108 0 0 0 0 0
0 0 0 8 0
freefilepl 28 0 0 0 0 0
0 0 0 8 0
diraddpl 32 0 0 0 0 0
0 0 0 8 0
mkdirpl 28 0 0 0 0 0
0 0 0 8 0
dirrempl 32 0 0 0 0 0
0 0 0 8 0
newdirblkpl 16 0 0 0 0 0
0 0 0 8 0
dirhash 1024 14799 0 13202 1789 1291
498 498 0 128 98
shmpl 64 0 0 0 0 0
0 0 0 8 0
semapl 68 4 0 2 1 0
1 1 0 8 0
semupl 100 581044 0 581043 1 0
1 1 0 8 0
pfrulepl 824 468 0 8 117 0
117 117 0 8 2
pfsrctrpl 124 0 0 0 0 0
0 0 0 313 0
pfstatepl 284 968666 0 965154 339 0
339 339 0 715 83
pfaltqpl 224 0 0 0 0 0
0 0 0 8 0
pfpooladdrpl 68 18 0 0 1 0
1 1 0 8 0
pfrktable 1240 0 0 0 0 0
0 0 0 334 0
pfrkentry 156 0 0 0 0 0
0 0 0 7693 0
pfrkentry2 156 0 0 0 0 0
0 0 0 8 0
pfosfpen 108 1392 0 696 30 11
19 19 0 8 0
pfosfp 28 814 0 407 3 0
3 3 0 8 0
pffrent 16 0 0 0 0 0
0 0 0 20 0
pffrag 48 0 0 0 0 0
0 0 0 12 0
pffrcache 48 0 0 0 0 0
0 0 0 120 0
pffrcent 12 0 0 0 0 0
0 0 0 148 0
pfstscr 28 0 0 0 0 0
0 0 0 8 0
vndbufpl 128 0 0 0 1 0
1 1 1 34 1
ccdbufpl 276 0 0 0 2 0
2 2 2 74 2
strprocpl 2268 0 0 0 0 0
0 0 0 8 0
strpolpl 28 0 0 0 0 0
0 0 0 8 0
rtentpl 108 1176 0 1143 2 0
2 2 0 8 1
ipqepl 20 0 0 0 0 0
0 0 0 8 0
rttmrpl 32 1552 0 1549 1 0
1 1 0 8 0
tcpcbpl 400 948383 0 945915 2113 1850
263 298 0 8 2
tcpqepl 16 752462 0 752462 1 0
1 1 0 13 1
sackhlpl 20 66671 0 66670 1 0
1 1 0 163 0
synpl 172 498536 0 498532 9 1
8 9 0 8 7
swp vnx 20 0 0 0 0 0
0 0 0 8 0
swp vnd 128 0 0 0 0 0
0 0 0 8 0
plimitpl 152 119882 0 119851 4 0
4 4 0 8 1
inpcbpl 216 958939 0 956470 907 761
146 166 0 8 0
In use 15658K, total allocated 32608K; utilization
48.0%
4096 bytes per page
514053 pages managed
353202 pages free
55942 pages active
1485 pages inactive
0 pages being paged out
1 pages wired
0 pages zeroed
4 pages reserved for pagedaemon
6 pages reserved for kernel
524287 swap pages
0 swap pages in use
1005115 total anon's in system
951844 free anon's
562321636 page faults
557362529 traps
43353450 interrupts
64901832 cpu context switches
40063116 fpu context switches
18474463 software interrupts
1305656396 syscalls
0 pagein operations
0 swap ins
0 swap outs
525540 forks
12 forks where vmspace is shared
1040 kernel map entries
0 number of times the pagedaemon woke up
0 revolutions of the clock hand
0 pages freed by pagedaemon
0 pages scanned by pagedaemon
0 pages reactivated by pagedaemon
0 busy pages found by pagedaemon
368488757 total name lookups
cache hits (93% pos + 2% neg) system 0%
per-directory
deletions 0%, falsehits 0%, toolong 3%
9 select collisions
--- Private Joker <[EMAIL PROTECTED]> wrote:
> First of all, I would like to it clear (and try to
> avoid a flame war), that I am not complaining about
> it. I am really happy with OpenBSD, and I want to
> congratulate every developer for their great work.
>
> Unfortunatelly, I have no skills to contribute to
> this
> fix.
>
> Until a couple of weeks ago, I was using OpenBSD 3.7
> (i386, P4 3Ghz, 1GB RAM) on a really busy web server
> (stock Apache and PHP4 from ports) that started to
> get
> some panics related to UVM, or most of the times,
> just
> froze, with no reason, after some uptime (could be
> one
> day, or even one week).
>
> After reading all threads (and believe me, there are
> many) about this UVM thingie, I decided to upgrade
> this server to 4.1 (base). At first, everything was
> OK, until the server started to scream about
> 'uvm_mapent_alloc: out of static map entries'. Two
> days after the first message, this server froze just
> like the old one.
>
> Now I have followed some advice and bumped the
> MAX_KMAPENT to 4000, and changed maxusers to 64. The
> server is up for 15 hours, and the 'kernel map
> entries' is 1050. No messages about out of static
> map
> entries.
>
> With this bump, it looks like I am about to avoid
> this
> problem so soon.
>
> I have some questions, maybe someone can enlighten
> me:
>
> 1) Since this is a known problem, can we expect to
> see
> a reliable fix any time? Is there anyone working on
> this, or we should get used to it?
>
> 2) Bumping MAX_KMAPENT to 4000 produces any bad
> effects? The server is less reliable with this or I
> can trust this change?
>
> 3) In order to make a test bed, there is a way to
> use
> lots of kernel map? That way I could, somehow,
> develop
> a way to predict those crashes.
>
> Thanks!
>
> Private Joker
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com