Gavin Maltby wrote:
> Hi,
>
> Joachim Worringen wrote:
>
>>> Way back, msgbuf was a buffer of fixed size like 8K. These days
>>> it it the console streams logging device - see the source in
>>> uts/common/os/printf.c and uts/common/os/logsubr.c.
>>
>> O.k., thanks, but is there a way to increase the backlog of messages
>> in a kernel core dump? I actually do not care too much on how it's
>> implemented...
>
> That was an exercise for the reader :-) (Another way of saying
> I have never had to raise the limit - in fact I've seen
> dumps with acres of messages).
Just to illustrate my requirement - below a ::msgbuf from a recent core
dump, where I would like to have seen some of the older messages (I know
there were older ones). They seem to got replaced by the dump messages
of the OS, although all this is only a few kB.
This all applies to snv_84. Anyway, I succeeded in fixing the issue
below although with this limitation, so it's not a showstopper, but it
would be nice to be able to get more if necessary.
Joachim
> ::msgbuf
MESSAGE
__get_local_addr: local 192.168.1.101 (valid 1, mask 0xffffff), rmt
192.168.1.102
__find_sockmap_match: addr1: c0a80165, addr2: c0a80166
__find_sockmap_match: addr1: c0a80166, addr2: c0a80166
(stream_connecter_thread:455): find_route returned 0 for 192.168.1.102
AF_SCI_debug_print_route: Found route: source: 192.168.1.101, dest:
192.168.1.102, ad: 0x0000, nodeid: [8,0,0]
AF_SCI_make_sciconn_client called
send_admin_command 0 [0x3ee39,0x5ead0080] via 0x0000 to node [8,0,0]
(0x4541/0xffff)
WARNING: AF_SCI_send_admin_cmd: could not connect to admin segment
(0x40000a01)
AF_SCI_make_sciconn_client: make_sciconn_client_closed failed (connn
0xffffff014cdaabc0 rc 11 state 1)
> AF_SCI_reset_client_conn sciconn[ffffff014cdaabc0]
< AF_SCI_reset_client_conn sciconn[ffffff014cdaabc0]
NOTICE: SCI Adapter 0 : Session for node 8 is deleted - Status = 0xa
AF_SCI_make_sciconn_client done (145)
(stream_connecter_thread:541): scisock[ffffff015031fd00] connected:
FALLBACK_ACTIVE
(stream_connecter_thread:566): wake_connect for
scisock[ffffff015031fd00] with reason 0
(stream_wake_connect:168): scisock: ffffff015031fd00 status: 0
stream_connecter_thread done
AF_SCI_stream_connect done, rc=0
(ssocks_stream_sendmsg:496): iov=0xffffff00048f2e60 iovcnt=1,
iov[0].base=0xfffffd7fffdff200, iov[0].len=0x4, total=0x8201f3a0, osif_f
lags=0x20000000
stream_wait_for_link: scisock->state: 10
(osif_socket_vsend:570): sock[0xffffff014d17e300], iovlen 1, iov
0xfffffd7fffdff200, iov[0]: 0x4,0xa
(osif_socket_vsend:576): sock[0xffffff014d17e300], sent 0x48f2a30, rc
0, iov 0xffffff00048f2e60
AF_SCI_stream_send_vmessage done (0)
(ssocks_stream_sendmsg:496): iov=0xffffff00048f2e61 iovcnt=0,
iov[0].base=0xfffffd7fffdff2, iov[0].len=0x0, total=0x48f2a30, osif_flag
s=0x20000000
stream_wait_for_link: scisock->state: 10
(osif_socket_vsend:570): sock[0xffffff014d17e300], iovlen 0, iov
0xfffffd7fffdff2, iov[0]: 0x6100000000000000,0xa
(osif_socket_vsend:576): sock[0xffffff014d17e300], sent 0x48f2a30, rc
0, iov 0xffffff00048f2e61
AF_SCI_stream_send_vmessage done (0)
panic[cpu0]/thread=ffffff014eeff3c0:
BAD TRAP: type=e (#pf Page fault) rp=ffffff00048f2be0 addr=ffffff0493b95e69
sockperf:
#pf Page fault
Bad kernel fault at addr=0xffffff0493b95e69
pid=100707, pc=0xfffffffff885782d, sp=0xffffff00048f2cd0, eflags=0x10297
cr0: 8005003b<pg,wp,ne,et,ts,mp,pe> cr4: 6f8<xmme,fxsr,pge,mce,pae,pse,de>
cr2: ffffff0493b95e69
cr3: 39445000
cr8: c
rdi: 1 rsi: 0 rdx: 0
rcx: 0 r8: ffffff0493b95e61 r9: 70d5d000
rax: 20000000 rbx: 0 rbp: ffffff00048f2d40
r10: 2000 r11: fffffffffba9be88 r12: ffffff015031e180
r13: ffffff00048f2ea0 r14: ffffff00048f2e70 r15: 1fff6e1aba4
fsb: fffffd7fff190200 gsb: fffffffffbc262b0 ds: 0
es: 0 fs: 0 gs: 0
trp: e err: 0 rip: fffffffff885782d
cs: 30 rfl: 10297 rsp: ffffff00048f2cd0
ss: 38
cpu address timestamp type vc handler pc
0 fffffffffbc4d588 42b4031d6f1
trap e
#pf
ssocks_stream_sendmsg+e5
0 fffffffffbc4d400 42b402faaa7
intr ff
unknown
fakesoftint+23
0 fffffffffbc4d278 42b402aa12e
intr ff
unknown
fakesoftint+23
0 fffffffffbc4d0f0 42b40274254
sysc f0
send
fffffd7ffef65e6a
0 fffffffffbc4cf68 42b40253b8a
sysc f4
getsockname
fffffd7ffef65daa
0 fffffffffbc4cde0 42b4023ab2b
sysc 4d
syslwp_park
feef0c99
0 fffffffffbc4cc58 42b4022da66
sysc b7
pollsys
feef4cd5
0 fffffffffbc4cad0 42b4022ae65
sysc 4d
syslwp_park
feef0cc9
0 fffffffffbc4c948 42b4021fc90
sysc 55
getmsg32
feef48a5
0 fffffffffbc4c7c0 42b401f1d90
sysc 4d
syslwp_park
feef0c99
1 ffffff014f590100 42b401a6d09
intr f0
xc_serv
vgatext_cons_copy+1bd
1 ffffff014f58ff78 42b4018e6a0
intr a0
unknown
vgatext_cons_copy+1bd
1 ffffff014f58fdf0 42b400cf084
intr f0
xc_serv
vgatext_cons_copy+1bd
1 ffffff014f58fc68 42b400b3154
intr 18
e1000g_intr_pciexpress
vgatext_cons_copy+1bd
1 ffffff014f58fae0 42b4005b6c5
intr f0
xc_serv
ip_input+a1b
1 ffffff014f58f958 42b40052020
intr 18
e1000g_intr_pciexpress
vgatext_cons_copy+1bd
1 ffffff014f58f7d0 42b40021489
intr 18
e1000g_intr_pciexpress
vgatext_cons_copy+1bd
1 ffffff014f58f648 42b3ffc2236
intr 18
e1000g_intr_pciexpress
vgatext_cons_copy+1bd
1 ffffff014f58f4c0 42b3ffc02b0
intr f0
xc_serv
vgatext_cons_copy+1bd
1 ffffff014f58f338 42b3ff50500
intr f0
xc_serv
vgatext_cons_copy+1bd
ffffff00048f2aa0 unix:die+f4 ()
ffffff00048f2bd0 unix:trap+160f ()
ffffff00048f2be0 unix:cmntrap+1d0 ()
ffffff00048f2d40 dis_ssocks:ssocks_stream_sendmsg+e5 ()
ffffff00048f2d90 sockfs:socket_sendmsg+5d ()
ffffff00048f2e30 sockfs:sendit+1ac ()
ffffff00048f2ef0 sockfs:send+a3 ()
ffffff00048f2f00 unix:brand_sys_syscall+308 ()
syncing file systems...
done
dumping to /dev/dsk/c1t0d0s1, offset 431030272, content: kernel + curproc
--
Joachim Worringen, Software Architect, Dolphin Interconnect Solutions
phone ++49/(0)228/324 08 17 - http://www.dolphinics.com
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code