On 11/29/13 17:03, Ted Unangst wrote:
> On Fri, Nov 29, 2013 at 21:17, Stuart Henderson wrote:
>> On 2013/11/29 14:34, Ted Unangst wrote:
>>> On Fri, Nov 29, 2013 at 13:31, RD Thrush wrote:
>>>> I've tried -current (Nov 28) on two real machines (soekris and amd64
>>>> homebrew) which panic with apparently the same problem. FWIW, I have not
>>>> been able to panic a virtualbox i386 machine. The panic occurs
>>>> immediately after connecting to the darkstat port, ie. telnet localhost
>>>> 667. I've appended full sendbug details for the amd64 homebrew but can
>>>> provide the soekris info if the original report was insufficient.
>>>
>>> I've reverted bpf.c back to its original condition for now.
>>>
>>
>> It won't be enough I think (at least it wasn't enough for my similar
>> panics with ladvd).
>
> I wanted one less variable in the equation. :)
>
> if (d->bd_rtout != -1 && d->bd_rdStart == 0)
> d->bd_rdStart = ticks;
> else
> d->bd_rdStart = 0;
> ...
> if ((d->bd_rtout != -1) ||
> (d->bd_rdStart + d->bd_rtout) < ticks) {
> error = tsleep((caddr_t)d, PRINET|PCATCH, "bpf",
> d->bd_rtout);
>
>
> What does this code do with bd_rtout == -1? First conditional fails,
> so we always set rdStart = 0.
> Second if: rtout == -1, so first part fails and we go to the ||
> expression. rdStart = 0 from above, so 0 + -1 < ticks will always be
> true, right? Then we pass -1 to tsleep. I think the || should be &&.
> You should *never* call tsleep with rtout == -1.
>
> I don't know how or why this suddently decided to break, but it seems
> it's always been that way. Fix here:
>
> Index: bpf.c
> ===================================================================
> RCS file: /cvs/src/sys/net/bpf.c,v
> retrieving revision 1.89
> diff -u -p -r1.89 bpf.c
> --- bpf.c 29 Nov 2013 19:28:55 -0000 1.89
> +++ bpf.c 29 Nov 2013 21:58:06 -0000
> @@ -434,7 +434,7 @@ bpfread(dev_t dev, struct uio *uio, int
> ROTATE_BUFFERS(d);
> break;
> }
> - if ((d->bd_rtout != -1) ||
> + if ((d->bd_rtout != -1) &&
> (d->bd_rdStart + d->bd_rtout) < ticks) {
> error = tsleep((caddr_t)d, PRINET|PCATCH, "bpf",
> d->bd_rtout);
As mentioned in an earlier report, the above patch fixes the panic but results
in a hard hang with mp kernels.
With current sources, the hang problem remains with the amd64 mp kernel
(haven't tried any other permutations). Since neither the serial break or
ctl-alt-esc sequence were recognized by ddb, I searched for an NMI hardware
solution and found the "PCI Dump Switch" card from connecttech.com but with no
apparent online resellers. I then learned how to use virtualbox's NMI
simulation.
Using NMI to break into ddb, it appears the hang is in __mp_lock() (more
precisely arch/amd64/amd64/lock_machdep.c:50). I'm over my head at this point
but thought describing how to duplicate the problem in virtualbox might be
useful to those more skilled. I tried to get a crash dump but that's probably
impossible with the spin lock hang.
I've appended two ddb sessions as well as the dmesg + startup prelude to the
hang.
### ddb session 1 ###
starting network daemons: sshd smtpd ftpd sndiod.
starting local daemons: apmdNMI ... going to debugger
Stopped at __mp_lock+0x55: movq 0x8(%rdi),%rax
ddb{0}> show registers
ds 0xcbb0 acpi_pdirpa+0x8650
es 0xcc00 acpi_pdirpa+0x86a0
fs 0x78c0 acpi_pdirpa+0x3360
gs 0x6a80 acpi_pdirpa+0x2520
rdi 0xffffffff81d36950 kernel_lock
rsi 0x1
rbp 0xffff8000072dcbb8
rbx 0x1
rdx 0xffff800000148000
rcx 0x202
rax 0x2
r8 0
r9 0xffff8000072e1e2c
r10 0x1b517c2d2000
r11 0x65
r12 0x1
r13 0xffffffff81d36950 kernel_lock
r14 0xffffffff819ee930 cpu_info_primary+0x10
r15 0x1
rip 0xffffffff81337ae5 __mp_lock+0x55
cs 0x8
rflags 0x202
rsp 0xffff8000072dcbb8
ss 0x10
__mp_lock+0x55: movq 0x8(%rdi),%rax
ddb{0}> trace
__mp_lock() at __mp_lock+0x55
__mp_acquire_count() at __mp_acquire_count+0x20
mi_switch() at mi_switch+0x1de
sleep_finish() at sleep_finish+0x9b
tsleep() at tsleep+0x9f
kqueue_scan() at kqueue_scan+0x12b
sys_kevent() at sys_kevent+0x214
syscall() at syscall+0x249
--- syscall (number 72) ---
end of kernel
end trace frame: 0x1b517c2d2000, count: -8
0x1b51804e298a:
ddb{0}> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
19889 5582 5582 0 2 0x3 sh
5727 1 5727 0 3 0x80 kqread apmd
6805 11324 5582 0 3 0x83 nanosleep sleep
11324 5582 5582 0 3 0x89 pause sh
2336 1 2336 99 3 0x90 poll sndiod
16111 1 16111 0 3 0x80 poll ftpd
15748 2207 2207 95 3 0x90 kqread smtpd
15962 2207 2207 95 2 0x10 smtpd
24320 2207 2207 95 3 0x90 kqread smtpd
* 8318 2207 2207 95 7 0x490 smtpd
480 2207 2207 95 3 0x90 kqread smtpd
22480 2207 2207 95 3 0x90 kqread smtpd
4494 2207 2207 95 2 0x90 smtpd
11582 2207 2207 95 3 0x90 kqread smtpd
2207 1 2207 0 3 0x80 kqread smtpd
14047 1 14047 0 3 0x80 select sshd
30619 0 0 0 3 0x100280 nfsidl nfsio
22004 0 0 0 3 0x100280 nfsidl nfsio
10467 0 0 0 3 0x100280 nfsidl nfsio
17083 0 0 0 3 0x100280 nfsidl nfsio
3208 1 3208 0 3 0x80 poll ntpd
28158 20366 28158 83 3 0x90 poll ntpd
20366 1 20366 83 3 0x90 poll ntpd
22119 6496 6496 74 7 0x10 pflogd
6496 1 6496 0 3 0x80 netio pflogd
4806 13904 13904 73 2 0x90 syslogd
13904 1 13904 0 3 0x80 netio syslogd
3853 1 3853 77 3 0x90 poll dhclient
13391 1 13391 0 3 0x80 poll dhclient
31588 1 31588 0 3 0x80 mfsidl mount_mfs
5582 1 5582 0 3 0x8b pause sh
15 0 0 0 3 0x100200 aiodoned aiodoned
14 0 0 0 2 0x100200 update
13 0 0 0 3 0x100200 cleaner cleaner
12 0 0 0 3 0x100200 reaper reaper
11 0 0 0 3 0x100200 pgdaemon pagedaemon
10 0 0 0 3 0x100200 bored crypto
9 0 0 0 2 0x100600 pfpurge
8 0 0 0 3 0x100200 usbtsk usbtask
7 0 0 0 3 0x100200 usbatsk usbatsk
6 0 0 0 3 0x40100200 acpi0 acpi0
5 0 0 0 3 0x40100200 idle1
4 0 0 0 3 0x100200 bored systq
3 0 0 0 3 0x100200 bored syswq
2 0 0 0 3 0x40100200 idle0
1 0 1 0 3 0x82 wait init
0 -1 0 0 3 0x200 scheduler swapper
31625 19889 5582 0 5 0x2009 sh
ddb{0}> callout
ticks now: 2031
ticks wheel arg func
101 4d/1024d 0xfffffe800bce49c8 endtsleep
101 4d/1024d 0xfffffe800afa69d0 endtsleep
101 4d/1024d 0xfffffe800bce4c30 endtsleep
101 4d/1024d 0xfffffe800afa6030 endtsleep
101 4d/1024d 0xfffffe800afa6500 endtsleep
19 0d/2 d 0xffffffff81cd9340 pffasttimo
30 0d/13 d 0xfffffe800cdcd750 endtsleep
46 0d/29 d 0xffffffff81cd9300 pfslowtimo
59 0d/42 d 0xffff800000184120 vio_txtick
69 0d/52 d 0xfffffe800a77ec40 endtsleep
96 0d/79 d 0xffffffff81cd9440 if_slowtimo
96 0d/79 d 0xffffffff81d2bb00 pckbc_poll
96 0d/79 d 0x0 nd6_timer
96 0d/79 d 0xffffffff81cd9560 rt_timer_timer
96 0d/79 d 0xffffffff81cd9000 schedcpu
1 0d/240 d 0x0 m_cltick
431 1d/265 d 0xfffffe800bfbd4f0 endtsleep
970 1d/267 d 0xffff8000000ff400 acpi_poll
1743 1d/270 d 0xfffffe800c20e478 realitexpire
4901 1d/283 d 0xfffffe800c20e018 realitexpire
5837 1d/286 d 0xfffffe800a77e038 endtsleep
28532 1d/375 d 0xffffffff81cd95a0 arptimer
57969 1d/490 d 0x0 arc4_reinit
357970 2d/517 d 0x0 nd6_slowtimo
8638854 2d/643 d 0xfffffe800cdcd4e8 endtsleep
ddb{0}> show extents
extent `swap0x0000' (0x0 - 0x7ce91), flags=0
0x0 - 0x0
0x7ce90 - 0x7ce90
extent `swapmap' (0x1 - 0x7fffffff), flags=0
0x1 - 0x7ce92
extent `pcibus' (0x0 - 0xff), flags=0
0x0 - 0x0
extent `pcimem' (0x0 - 0xffffffffffffffff), flags=0
0x0 - 0xfffffff
0xe0000000 - 0xe0ffffff
0xf0000000 - 0xf0407fff
0xfffc0000 - 0xffffffff
0x1000000000 - 0xffffffffffffffff
extent `pciio' (0x0 - 0xffffffff), flags=0
0xd000 - 0xd00f
0xd020 - 0xd05f
0xd100 - 0xd249
0xd250 - 0xd259
0xd260 - 0xd26f
0x10000 - 0xffffffff
extent `iomem' (0x0 - 0xffffffffffff), flags=3<NOCOALESCE,FIXED>
0x14000 - 0x9efff
0xa0000 - 0xbffff
0x100000 - 0xffffff
0x1000000 - 0xffeffff
0xf0404000 - 0xf0404fff
0xf0405000 - 0xf0405fff
0xf0406000 - 0xf0407fff
extent `ioport' (0x0 - 0xffff), flags=3<NOCOALESCE,FIXED>
0x0 - 0xb
0x40 - 0x43
0x60 - 0x60
0x61 - 0x61
0x64 - 0x64
0x80 - 0x8e
0xc0 - 0xd7
0x170 - 0x177
0x1f0 - 0x1f7
0x376 - 0x376
0x3c0 - 0x3cf
0x3d0 - 0x3df
0x3f6 - 0x3f6
0x3f8 - 0x3ff
0x4000 - 0x4001
0x4002 - 0x4003
0x4004 - 0x4005
0x4008 - 0x400b
0x4020 - 0x4020
0x4021 - 0x4021
0x442e - 0x442e
0xd000 - 0xd00f
0xd020 - 0xd03f
0xd100 - 0xd1ff
0xd200 - 0xd23f
ddb{0}> show uvmexp
Current UVM status:
pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
59887 VM pages: 12593 active, 1010 inactive, 1 wired, 35614 free
min 10% (25) anon, 10% (25) vnode, 5% (12) vtext
pages 0 anon, 0 vnode, 0 vtext
freemin=1996, free-target=2661, inactive-target=0, wired-max=19962
faults=56345, traps=56163, intrs=1201, ctxswitch=4730 fpuswitch=13
softint=2082, syscalls=355593, kmapent=14
fault counts:
noram=0, noanon=0, pgwait=0, pgrele=0
ok relocks(total)=1964(1964), anget(retries)=28905(0), amapcopy=20856
neighbor anon/obj pg=2181/23819, gets(lock/unlock)=10063/1964
cases: anon=22376, anoncow=6529, obj=9040, prcopy=1023, przero=17377
daemon and swap counts:
woke=0, revs=0, scans=0, obscans=0, anscans=0
busy=0, freed=0, reactivate=0, deactivate=0
pageouts=0, pending=0, nswget=0
nswapdev=1, nanon=0, nanonneeded=0 nfreeanon=0
swpages=511633, swpginuse=0, swpgonly=0 paging=0
kernel pointers:
objs(kern)=0xffffffff81cfdf20
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
inpcbpl 360 66 0 46 2 0 2 2 0 8 0
plimitpl 152 16 0 2 1 0 1 1 0 8 0
tcpcbpl 560 8 0 1 1 0 1 1 0 8 0
rtentpl 200 34 0 0 2 0 2 2 0 8 0
pfosfp 40 840 0 420 5 0 5 5 0 8 0
pfosfpen 112 1420 0 710 34 13 21 21 0 8 0
pfstateitempl 24 28 0 0 1 0 1 1 0 8 0
pfstatekeypl 104 28 0 0 1 0 1 1 0 8 0
pfstatepl 312 28 0 0 3 0 3 3 0 8 0
pfrulepl 1328 14 0 10 5 0 5 5 0 8 2
nfsnodepl 472 3 0 0 1 0 1 1 0 8 0
dirhash 1024 31 0 0 8 0 8 8 0 8 0
dirrempl 64 25 0 3 1 0 1 1 0 8 0
mkdirpl 56 6 0 3 1 0 1 1 0 8 0
diraddpl 56 33 0 3 1 0 1 1 0 8 0
freeblkspl 192 8 0 6 1 0 1 1 0 8 0
freefragpl 64 2 0 2 1 0 1 1 0 8 1
allocindirpl 104 83 0 81 3 0 3 3 0 8 2
indirdeppl 56 1 0 0 1 0 1 1 0 8 0
allocdirectpl 128 51 0 26 2 0 2 2 0 8 0
bmsafemappl 64 11 0 10 1 0 1 1 0 8 0
newblkpl 64 134 0 134 1 0 1 1 0 8 1
inodedeppl 152 57 0 5 2 0 2 2 0 8 0
pagedeppl 128 15 0 0 1 0 1 1 0 8 0
dino1pl 128 1944 0 1 63 0 63 63 0 8 0
ffsino 216 1944 0 1 108 0 108 108 0 8 0
nchpl 144 3011 0 54 110 0 110 110 0 8 0
vnodes 264 1967 0 0 132 0 132 132 0 8 0
namei 1024 5839 0 5839 1 0 1 1 0 8 1
nfsreqpl 96 6 0 6 1 0 1 1 0 8 1
scxspl 192 1699 0 1699 1 0 1 1 0 8 1
wdcspl 176 12 0 12 1 0 1 1 0 8 1
ifaddritempl 64 10 0 0 1 0 1 1 0 8 0
wqtasks 40 5 0 5 1 0 1 1 0 8 1
sigapl 432 297 0 269 4 0 4 4 0 8 0
knotepl 112 573 0 499 3 0 3 3 0 8 0
kqueuepl 320 10 0 0 1 0 1 1 0 8 0
pipepl 120 236 0 236 1 0 1 1 0 8 1
fdescpl 440 298 0 269 4 0 4 4 0 8 0
filepl 120 2449 0 2317 5 0 5 5 0 8 0
lockfpl 88 14 0 14 1 0 1 1 0 8 1
pcredpl 24 315 0 268 1 0 1 1 0 8 0
sessionpl 64 15 0 0 1 0 1 1 0 8 0
pgrppl 40 15 0 0 1 0 1 1 0 8 0
ucredpl 80 239 0 216 1 0 1 1 0 8 0
zombiepl 144 269 0 268 1 0 1 1 0 8 0
processpl 560 315 0 268 7 0 7 7 0 8 0
procpl 616 315 0 268 8 0 8 8 0 8 0
sockpl 472 212 0 122 16 0 16 16 0 8 0
mcl2k 2048 203 0 195 49 0 49 49 4 3072 45
mtagpl 72 1 0 1 1 0 1 1 0 8 1
mbpl 256 759 0 731 7 0 7 7 1 384 5
bufpl 272 1589 0 223 92 0 92 92 0 8 0
anonpl 16 24929 0 13289 47 0 47 47 0 15 0
amappl 72 14688 0 12986 32 0 32 32 0 75 0
dma4096 4096 3 0 3 1 0 1 1 0 8 1
dma512 512 8 0 5 1 0 1 1 0 8 0
dma256 256 22 0 22 1 0 1 1 0 8 1
dma128 128 3 0 3 1 0 1 1 0 8 1
dma64 64 9 0 9 1 0 1 1 0 8 1
dma32 32 19 0 19 1 0 1 1 0 8 1
dma16 16 3 0 3 1 0 1 1 0 8 1
aobjpl 64 1 0 0 1 0 1 1 0 8 0
uaddrrnd 40 298 0 269 1 0 1 1 0 8 0
uaddrbestfit 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 298 0 269 1 0 1 1 0 8 0
vmmpekpl 168 921 0 918 1 0 1 1 0 8 0
vmmpepl 168 28627 0 25809 126 0 126 126 0 357 2
vmsppl 224 297 0 269 2 0 2 2 0 8 0
pdppl 4096 297 0 269 30 0 30 30 0 8 2
pvpl 32 66216 0 59302 77 0 77 77 0 265 20
pmappl 152 297 0 269 2 0 2 2 0 8 0
extentpl 40 59 0 35 1 0 1 1 0 8 0
phpool 104 422 0 0 12 0 12 12 0 8 0
ddb{0}> show proc
PROC (smtpd) pid=8318 stat=onproc
flags process=10<SUGID> proc=480<SINTR,TIMEOUT>
pri=24, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xfffffe800afa6030,0xfffffe800afa6510
process=0xfffffe800b82e488 user=0xffff8000072d8000, vmspace=0xfffffe800b843
1c8
estcpu=0, cpticks=0, pctcpu=0.0, swtime=5
user=0, sys=0, intr=0
ddb{0}> show bcstats
Current Buffer Cache status:
numbufs 1366 busymapped 1, delwri 155
kvaslots 748 avail kva slots 747
bufpages 5332, dirtypages 615
pendingreads 0, pendingwrites 0
ddb{0}> boot sync
### ddb session 2 ###
starting network daemons:NMI ... going to debugger
Stopped at __mp_lock+0x59: testq %rax,%rax
ddb{0}> CL0//
No such command
ddb{0}> show registers
ds 0x8e00 acpi_pdirpa+0x48a0
es 0xcb40 acpi_pdirpa+0x85e0
fs 0x78c0 acpi_pdirpa+0x3360
gs 0x6a80 acpi_pdirpa+0x2520
rdi 0xffffffff81d36950 kernel_lock
rsi 0x1
rbp 0xffff800007248e08
rbx 0x1
rdx 0xffff800000148000
rcx 0x202
rax 0x2
r8 0
r9 0
r10 0xfffffe800f64c2a0
r11 0xfffffe800f5c1c18
r12 0x1
r13 0xffffffff81d36950 kernel_lock
r14 0xffff800000148010
r15 0x1
rip 0xffffffff81337ae9 __mp_lock+0x59
cs 0x8
rflags 0x202
rsp 0xffff800007248e08
ss 0
__mp_lock+0x59: testq %rax,%rax
ddb{0}> trace
__mp_lock() at __mp_lock+0x59
__mp_acquire_count() at __mp_acquire_count+0x20
mi_switch() at mi_switch+0x1de
sleep_finish() at sleep_finish+0x9b
tsleep() at tsleep+0x9f
pf_purge_thread() at pf_purge_thread+0x39
end trace frame: 0x0, count: -6
ddb{0}> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
21285 16556 16556 0 2 0x3 sh
18950 0 0 0 3 0x100280 nfsidl nfsio
14703 0 0 0 3 0x100280 nfsidl nfsio
23969 0 0 0 3 0x100280 nfsidl nfsio
8657 0 0 0 3 0x100280 nfsidl nfsio
17565 1 17565 0 3 0x80 poll ntpd
29938 19755 29938 83 3 0x90 poll ntpd
19755 1 19755 83 3 0x90 poll ntpd
17071 31912 31912 74 7 0x10 pflogd
31912 1 31912 0 3 0x80 netio pflogd
11118 11277 11277 73 2 0x90 syslogd
11277 1 11277 0 3 0x80 netio syslogd
7024 1 7024 77 3 0x90 poll dhclient
12201 1 12201 0 3 0x80 poll dhclient
4380 1 4380 0 3 0x80 mfsidl mount_mfs
16556 1 16556 0 3 0x8b pause sh
15 0 0 0 3 0x100200 aiodoned aiodoned
14 0 0 0 3 0x100200 syncer update
13 0 0 0 3 0x100200 cleaner cleaner
12 0 0 0 3 0x100200 reaper reaper
11 0 0 0 3 0x100200 pgdaemon pagedaemon
10 0 0 0 3 0x100200 bored crypto
* 9 0 0 0 7 0x100600 pfpurge
8 0 0 0 3 0x100200 usbtsk usbtask
7 0 0 0 3 0x100200 usbatsk usbatsk
6 0 0 0 3 0x40100200 acpi0 acpi0
5 0 0 0 3 0x40100200 idle1
4 0 0 0 3 0x100200 bored systq
3 0 0 0 3 0x100200 bored syswq
2 0 0 0 3 0x40100200 idle0
1 0 1 0 3 0x82 wait init
0 -1 0 0 3 0x200 scheduler swapper
14548 21285 16556 0 5 0x200b id
ddb{0}> callout
ticks now: 1249
ticks wheel arg func
50 0d/19 d 0xffffffff81cd9300 pfslowtimo
100 0d/69 d 0xffffffff81cd9440 if_slowtimo
100 0d/69 d 0xffffffff81d2bb00 pckbc_poll
100 0d/69 d 0x0 nd6_timer
100 0d/69 d 0xffffffff81cd9560 rt_timer_timer
100 0d/69 d 0xffffffff81cd9000 schedcpu
1 0d/226 d 0xffffffff81cd9340 pffasttimo
1 0d/226 d 0x0 m_cltick
14 0d/239 d 0xffff800000184120 vio_txtick
335 1d/262 d 0xfffffe800bfb84f0 endtsleep
751 1d/263 d 0xffff8000000ff400 acpi_poll
2548 1d/270 d 0xfffffe800c212478 realitexpire
5687 1d/283 d 0xfffffe800f5b66a0 realitexpire
29323 1d/375 d 0xffffffff81cd95a0 arptimer
58751 1d/490 d 0x0 arc4_reinit
358752 2d/517 d 0x0 nd6_slowtimo
8639650 2d/643 d 0xfffffe800cdca4e8 endtsleep
ddb{0}> show extents
extent `swap0x0000' (0x0 - 0x7ce91), flags=0
0x0 - 0x0
0x7ce90 - 0x7ce90
extent `swapmap' (0x1 - 0x7fffffff), flags=0
0x1 - 0x7ce92
extent `pcibus' (0x0 - 0xff), flags=0
0x0 - 0x0
extent `pcimem' (0x0 - 0xffffffffffffffff), flags=0
0x0 - 0xfffffff
0xe0000000 - 0xe0ffffff
0xf0000000 - 0xf0407fff
0xfffc0000 - 0xffffffff
0x1000000000 - 0xffffffffffffffff
extent `pciio' (0x0 - 0xffffffff), flags=0
0xd000 - 0xd00f
0xd020 - 0xd05f
0xd100 - 0xd249
0xd250 - 0xd259
0xd260 - 0xd26f
0x10000 - 0xffffffff
extent `iomem' (0x0 - 0xffffffffffff), flags=3<NOCOALESCE,FIXED>
0x14000 - 0x9efff
0xa0000 - 0xbffff
0x100000 - 0xffffff
0x1000000 - 0xffeffff
0xf0404000 - 0xf0404fff
0xf0405000 - 0xf0405fff
0xf0406000 - 0xf0407fff
extent `ioport' (0x0 - 0xffff), flags=3<NOCOALESCE,FIXED>
0x0 - 0xb
0x40 - 0x43
0x60 - 0x60
0x61 - 0x61
0x64 - 0x64
0x80 - 0x8e
0xc0 - 0xd7
0x170 - 0x177
0x1f0 - 0x1f7
0x376 - 0x376
0x3c0 - 0x3cf
0x3d0 - 0x3df
0x3f6 - 0x3f6
0x3f8 - 0x3ff
0x4000 - 0x4001
0x4002 - 0x4003
0x4004 - 0x4005
0x4008 - 0x400b
0x4020 - 0x4020
0x4021 - 0x4021
0x442e - 0x442e
0xd000 - 0xd00f
0xd020 - 0xd03f
0xd100 - 0xd1ff
0xd200 - 0xd23f
ddb{0}> show uvmexp
Current UVM status:
pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
59887 VM pages: 10237 active, 1221 inactive, 1 wired, 40081 free
min 10% (25) anon, 10% (25) vnode, 5% (12) vtext
pages 0 anon, 0 vnode, 0 vtext
freemin=1996, free-target=2661, inactive-target=0, wired-max=19962
faults=40029, traps=39728, intrs=969, ctxswitch=3471 fpuswitch=6
softint=1305, syscalls=332098, kmapent=13
fault counts:
noram=0, noanon=0, pgwait=0, pgrele=0
ok relocks(total)=1677(1677), anget(retries)=18883(0), amapcopy=14958
neighbor anon/obj pg=1333/14196, gets(lock/unlock)=6509/1677
cases: anon=14573, anoncow=4310, obj=5915, prcopy=594, przero=14637
daemon and swap counts:
woke=0, revs=0, scans=0, obscans=0, anscans=0
busy=0, freed=0, reactivate=0, deactivate=0
pageouts=0, pending=0, nswget=0
nswapdev=1, nanon=0, nanonneeded=0 nfreeanon=0
swpages=511633, swpginuse=0, swpgonly=0 paging=0
kernel pointers:
objs(kern)=0xffffffff81cfdf20
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
inpcbpl 360 52 0 39 2 0 2 2 0 8 0
plimitpl 152 7 0 2 1 0 1 1 0 8 0
tcpcbpl 560 1 0 1 1 0 1 1 0 8 1
rtentpl 200 34 0 0 2 0 2 2 0 8 0
pfosfp 40 840 0 420 5 0 5 5 0 8 0
pfosfpen 112 1420 0 710 34 13 21 21 0 8 0
pfstateitempl 24 27 0 0 1 0 1 1 0 8 0
pfstatekeypl 104 27 0 0 1 0 1 1 0 8 0
pfstatepl 312 27 0 0 3 0 3 3 0 8 0
pfrulepl 1328 14 0 10 5 0 5 5 0 8 2
nfsnodepl 472 3 0 0 1 0 1 1 0 8 0
dirhash 1024 29 0 0 8 0 8 8 0 8 0
dirrempl 64 21 0 3 1 0 1 1 0 8 0
mkdirpl 56 2 0 0 1 0 1 1 0 8 0
diraddpl 56 17 0 3 1 0 1 1 0 8 0
freeblkspl 192 8 0 5 1 0 1 1 0 8 0
freefragpl 64 1 0 1 1 0 1 1 0 8 1
allocindirpl 104 83 0 0 3 0 3 3 0 8 0
indirdeppl 56 1 0 0 1 0 1 1 0 8 0
allocdirectpl 128 42 0 12 2 0 2 2 0 8 0
bmsafemappl 64 11 0 5 1 0 1 1 0 8 0
newblkpl 64 125 0 125 1 0 1 1 0 8 1
inodedeppl 152 42 0 5 2 0 2 2 0 8 0
pagedeppl 128 9 0 0 1 0 1 1 0 8 0
dino1pl 128 1699 0 1 55 0 55 55 0 8 0
ffsino 216 1699 0 1 95 0 95 95 0 8 0
nchpl 144 2761 0 39 101 0 101 101 0 8 0
vnodes 264 1722 0 0 115 0 115 115 0 8 0
namei 1024 4653 0 4653 1 0 1 1 0 8 1
nfsreqpl 96 6 0 6 1 0 1 1 0 8 1
scxspl 192 1334 0 1334 1 0 1 1 0 8 1
wdcspl 176 12 0 12 1 0 1 1 0 8 1
ifaddritempl 64 10 0 0 1 0 1 1 0 8 0
wqtasks 40 5 0 5 1 0 1 1 0 8 1
sigapl 432 209 0 196 2 0 2 2 0 8 0
pipepl 120 144 0 144 1 0 1 1 0 8 1
fdescpl 440 210 0 196 2 0 2 2 0 8 0
filepl 120 1684 0 1633 2 0 2 2 0 8 0
lockfpl 88 14 0 14 1 0 1 1 0 8 1
pcredpl 24 227 0 195 1 0 1 1 0 8 0
sessionpl 64 10 0 0 1 0 1 1 0 8 0
pgrppl 40 10 0 0 1 0 1 1 0 8 0
ucredpl 80 166 0 157 1 0 1 1 0 8 0
zombiepl 144 196 0 195 1 0 1 1 0 8 0
processpl 560 227 0 195 5 0 5 5 0 8 0
procpl 616 227 0 195 6 0 6 6 0 8 0
sockpl 472 100 0 69 4 0 4 4 0 8 0
mcl2k 2048 149 0 142 49 0 49 49 4 3072 45
mtagpl 72 1 0 1 1 0 1 1 0 8 1
mbpl 256 528 0 512 7 0 7 7 1 384 5
bufpl 272 1172 0 173 67 0 67 67 0 8 0
anonpl 16 19541 0 9760 42 0 42 42 0 15 2
amappl 72 10776 0 9811 27 0 27 27 0 75 8
dma4096 4096 3 0 3 1 0 1 1 0 8 1
dma512 512 8 0 5 1 0 1 1 0 8 0
dma256 256 22 0 22 1 0 1 1 0 8 1
dma128 128 3 0 3 1 0 1 1 0 8 1
dma64 64 9 0 9 1 0 1 1 0 8 1
dma32 32 19 0 19 1 0 1 1 0 8 1
dma16 16 3 0 3 1 0 1 1 0 8 1
aobjpl 64 1 0 0 1 0 1 1 0 8 0
uaddrrnd 40 210 0 196 1 0 1 1 0 8 0
uaddrbestfit 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 210 0 196 1 0 1 1 0 8 0
vmmpekpl 168 630 0 627 1 0 1 1 0 8 0
vmmpepl 168 20000 0 18797 75 0 75 75 0 357 19
vmsppl 224 209 0 196 1 0 1 1 0 8 0
pdppl 4096 209 0 196 15 0 15 15 0 8 2
pvpl 32 46193 0 44294 77 0 77 77 0 265 60
pmappl 152 209 0 196 1 0 1 1 0 8 0
extentpl 40 59 0 35 1 0 1 1 0 8 0
phpool 104 344 0 0 10 0 10 10 0 8 0
ddb{0}> show proc
PROC (pfpurge) pid=9 stat=onproc
flags process=0 proc=100600<SYSTEM,TIMEOUT,NOZOMBIE>
pri=32, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xfffffe800f62a270,0xfffffe800f62a750
process=0xfffffe800f624238 user=0xffff800007244000, vmspace=0xffffffff81d35
be0
estcpu=0, cpticks=0, pctcpu=0.0, swtime=12
user=0, sys=0, intr=0
ddb{0}> show bcstats
Current Buffer Cache status:
numbufs 999 busymapped 1, delwri 141
kvaslots 748 avail kva slots 747
bufpages 3864, dirtypages 538
pendingreads 0, pendingwrites 0
ddb{0}> boot reboot
### dmesg + startup ###
>> OpenBSD/amd64 BOOT 3.24
Region 0: type 1 at 0x0 for 639KB(+639K@0x0)
Region 1: type 2 at 0x9fc00 for 1KB(+1K@0x9fc00)
Region 2: type 2 at 0xf0000 for 64KB(+64K@0xf0000)
Region 3: type 1 at 0x100000 for 261056KB(+261056K@0x100000)
Region 4: type 3 at 0xfff0000 for 64KB(+64K@0xfff0000)
Region 5: type 2 at 0xfffc0000 for 256KB(+256K@0xfffc0000)
Low ram: 639KB High ram: 261056KB
Total free memory: 261695KB
boot> boot bsd.mp-new
booting hd0a:/bsd.mp-new: 6536540+1647180+1080464+0+620384
[80+553728+369039]=0xe4ef40
entry point at 0x10001e0 [7205c766, 34000004, 24448b12, 5958a304]
[ using 923616 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 5.4-current (GENERIC.MP) #27: Wed Dec 4 13:56:23 EST 2013
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 251592704 (239MB)
avail mem = 236879872 (225MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (10 entries)
bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.78 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,SSSE3,NXE,LONG,LAHF,PERF
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 1000MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.40 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,SSSE3,NXE,LONG,LAHF,PERF
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpibat0 at acpi0: BAT0 not present
acpiac0 at acpi0: AC unit online
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <VBOX, CD-ROM, 1.0> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00: Virtio
Network Device
vio0 at virtio0: address 08:00:27:06:9c:b4
virtio0: apic 2 int 19
"InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0 not
configured
auich0 at pci0 dev 5 function 0 "Intel 82801AA AC97" rev 0x01: apic 2 int 21,
ICH AC97
ac97: codec id 0x83847600 (SigmaTel STAC9700)
audio0 at auich0
ohci0 at pci0 dev 6 function 0 "Apple Intrepid USB" rev 0x00: apic 2 int 22,
version 1.0
piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: SMBus disabled
ehci0 at pci0 dev 11 function 0 "Intel 82801FB USB" rev 0x00: apic 2 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ahci0 at pci0 dev 13 function 0 "Intel 82801HBM AHCI" rev 0x02: apic 2 int 21,
AHCI 1.1
ahci0: device on port 0 didn't come ready, TFD: 0x171<ERR>
ahci0: device on port 1 didn't come ready, TFD: 0x171<ERR>
ahci0: device on port 2 didn't come ready, TFD: 0x171<ERR>
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, VBOX HARDDISK, 1.0> SCSI3 0/direct fixed
t10.ATA_VBOX_HARDDISK_VBbcc99a08-744eefa6_
sd0: 12288MB, 512 bytes/sector, 25165824 sectors
sd1 at scsibus1 targ 1 lun 0: <ATA, VBOX HARDDISK, 1.0> SCSI3 0/direct fixed
t10.ATA_VBOX_HARDDISK_VB9da9db2b-7414c638_
sd1: 20480MB, 512 bytes/sector, 41943040 sectors
sd2 at scsibus1 targ 2 lun 0: <ATA, VBOX HARDDISK, 1.0> SCSI3 0/direct fixed
t10.ATA_VBOX_HARDDISK_VBdaa85231-cc9edc4a_
sd2: 511978MB, 512 bytes/sector, 1048530944 sectors
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "Apple OHCI root hub" rev 1.00/1.00 addr 1
mtrr: CPU supports MTRRs but not enabled by BIOS
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (81831238603d6adb.a) swap on sd0b dump on sd0b
Fast boot: skipping disk checks.
setting tty flags
pf enabled
ddb.panic: 1 -> 1
ddb.console: 0 -> 1
ddb.max_line: 24 -> 0
machdep.allowaperture: 0 -> 2
starting network
DHCPREQUEST on vio0 to 255.255.255.255 port 67
DHCPACK from 10.1.2.18 (14:da:e9:b5:84:cf)
bound to 10.1.2.143 -- renewal in 302400 seconds.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.