Silent reboots in head @r248550 starting xdm with x11/nvidia-driver
David Wolfskill
david at catwhisker.org
Thu Mar 21 19:32:32 UTC 2013
On Thu, Mar 21, 2013 at 03:58:35PM +0200, Konstantin Belousov wrote:
> ...
> > Script started on Thu Mar 21 06:07:41 2013
> > g1-235(10.0-C)[1] uname -a
> > FreeBSD g1-235.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #845 r248575M/248575: Thu Mar 21 05:35:06 PDT 2013 root at g1-235.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386
> > g1-235(10.0-C)[2] sysctl vfs.unmapped_buf_allowed kern.bio_transient_maxcnt kern.nbuf
> > vfs.unmapped_buf_allowed: 1
> > kern.bio_transient_maxcnt: 697
> > kern.nbuf: 7224
> Could you, please, do some more measurements in the r248575M ?
>
> Please show the kern.nbuf for vfs.unmapped_buf_allowed=0 case.
> Also, from there, run "kgdb /boot/kernel/kernel /dev/mem" and do
> p *buffer_map.
>
> Reboot without applying any unmapped/transient tuning, run the kgdb
> again, and do
> p *buffer_map
> p *bio_transient_map
>
> Reboot with kern.bio_transient_maxcnt tunable set to 256 and again
> print the buffer_map and bio_transient_map from the kgdb.
> ...
OK; sorry about the delay -- I needed to use the machinie for a while
(at work), and then I had a weekly staff meeting....
Anyway... I've attached results of the above. For the first & last, I
did each twice -- once using the "nv" driver, and once using the
"nvidia" driver. (The middle one only got the "nv" driver.)
So the files are:
kib_0_nv
kib_0_nvidia
kib_1_nv
kib_2_nv
kib_2_nvidia
Peace,
david
--
David H. Wolfskill david at catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
Script started on Thu Mar 21 10:39:14 2013
root at d129:~ # uname -a
FreeBSD g1-235.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #845 r248575M/248575: Thu Mar 21 05:35:06 PDT 2013 root at g1-235.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386
root at d129:~ # sysctl vfs.unmapped_buf_allowed
vfs.unmapped_buf_allowed: 0
root at d129:~ # k[Ksyst[Kctl kern.nbuf
kern.nbuf: 7224
root at d129:~ # kgdb /boot/kernel/kernel /dev/mem
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from /boot/kernel/coretemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/coretemp.ko
Reading symbols from /boot/kernel/iwn5000fw.ko...Reading symbols from /boot/kernel/iwn5000fw.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iwn5000fw.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /boot/kernel/tmpfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /boot/kernel/fdescfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
#0 sched_switch (td=0xc1312a70, newtd=0xcd98b900, flags=-1048441924)
at /usr/src/sys/kern/sched_ule.c:1954
1954 cpuid = PCPU_GET(cpuid);
(kgdb) p *buffer_map
$1 = {header = {prev = 0xc19cf288, next = 0xc19cf288, left = 0x0, right = 0x0,
start = 3925868544, end = 4044226560, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xcd8022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xcd802110}, mtx_lock = 4}, nentries = 1,
size = 84590592, timestamp = 5163, needs_wakeup = 0 '\0',
system_map = 1 '\001', flags = 0 '\0', root = 0xc19cf288, pmap = 0xc13279f8,
busy = 0}
Current language: auto; currently minimal
(kgdb) p *bio_transient_map
Error accessing memory address 0x0: Bad address.
(kgdb) root at d129:~ # ^Dexit
Script done on Thu Mar 21 10:40:35 2013
-------------- next part --------------
Script started on Thu Mar 21 10:43:15 2013
root at d129:~ # uname -a
FreeBSD g1-235.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #845 r248575M/248575: Thu Mar 21 05:35:06 PDT 2013 root at g1-235.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386
root at d129:~ # sysctl vfs.unmapped_buf_allowed
vfs.unmapped_buf_allowed: 0
root at d129:~ # sysctl kern.nbuf
kern.nbuf: 7224
root at d129:~ # kgdp[Kb /boot/kernel/kernel /dev/mem
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from /boot/kernel/coretemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/coretemp.ko
Reading symbols from /boot/kernel/iwn5000fw.ko...Reading symbols from /boot/kernel/iwn5000fw.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iwn5000fw.ko
Reading symbols from /boot/modules/nvidia.ko...done.
Loaded symbols for /boot/modules/nvidia.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /boot/kernel/tmpfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /boot/kernel/fdescfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
#0 sched_switch (td=0xc1312a70, newtd=0xce18b900, flags=-1040053316)
at /usr/src/sys/kern/sched_ule.c:1954
1954 cpuid = PCPU_GET(cpuid);
(kgdb) p *buffer_map
$1 = {header = {prev = 0xc21ce630, next = 0xc21ce630, left = 0x0, right = 0x0,
start = 3934257152, end = 4052615168, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xce0022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xce002110}, mtx_lock = 4}, nentries = 1,
size = 85229568, timestamp = 5202, needs_wakeup = 0 '\0',
system_map = 1 '\001', flags = 0 '\0', root = 0xc21ce630, pmap = 0xc13279f8,
busy = 0}
Current language: auto; currently minimal
(kgdb) p *bio_transient_map
Error accessing memory address 0x0: Bad address.
(kgdb) root at d129:~ # ^Dexit
Script done on Thu Mar 21 10:44:35 2013
-------------- next part --------------
Script started on Thu Mar 21 10:46:18 2013
root at d129:~ # uname -a
FreeBSD g1-235.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #845 r248575M/248575: Thu Mar 21 05:35:06 PDT 2013 root at g1-235.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386
root at d129:~ # sysctl vfs.unmapped_buf_allowed
vfs.unmapped_buf_allowed: 1
root at d129:~ # sysctl kern.nbuf
kern.nbuf: 7224
root at d129:~ # kgdb /boot/kernel/kernel /dev/mem
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from /boot/kernel/coretemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/coretemp.ko
Reading symbols from /boot/kernel/iwn5000fw.ko...Reading symbols from /boot/kernel/iwn5000fw.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iwn5000fw.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /boot/kernel/tmpfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /boot/kernel/fdescfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
#0 sched_switch (td=0xc1312a70, newtd=0xcd98b600, flags=-1048441924)
at /usr/src/sys/kern/sched_ule.c:1954
1954 cpuid = PCPU_GET(cpuid);
(kgdb) p *buffer_map
$1 = {header = {prev = 0xc19ceb88, next = 0xc19ceb88, left = 0x0, right = 0x0,
start = 3925868544, end = 4044226560, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xcd8022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xcd802110}, mtx_lock = 4}, nentries = 1,
size = 8765440, timestamp = 535, needs_wakeup = 0 '\0',
system_map = 1 '\001', flags = 0 '\0', root = 0xc19ceb88, pmap = 0xc13279f8,
busy = 0}
Current language: auto; currently minimal
(kgdb) p *bio_transient_map
$2 = {header = {prev = 0xc19c1230, next = 0xc19c1230, left = 0x0, right = 0x0,
start = 4044226560, end = 4135583744, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xcd8022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xcd802110}, mtx_lock = 4}, nentries = 0,
size = 0, timestamp = 0, needs_wakeup = 0 '\0', system_map = 1 '\001',
flags = 0 '\0', root = 0x0, pmap = 0xc13279f8, busy = 0}
(kgdb) root at d129:~ # ^Dexit
Script done on Thu Mar 21 10:47:34 2013
-------------- next part --------------
Script started on Thu Mar 21 10:49:39 2013
root at d129:~ # uname -a
FreeBSD g1-235.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #845 r248575M/248575: Thu Mar 21 05:35:06 PDT 2013 root at g1-235.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386
root at d129:~ # sysctl vfs.unmapped_buf_allowed kern.bio_transient_maxcnt
vfs.unmapped_buf_allowed: 1
kern.bio_transient_maxcnt: 256
root at d129:~ # kgdb /boot/kernel/kernel /dev/mem
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from /boot/kernel/coretemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/coretemp.ko
Reading symbols from /boot/kernel/iwn5000fw.ko...Reading symbols from /boot/kernel/iwn5000fw.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iwn5000fw.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /boot/kernel/tmpfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /boot/kernel/fdescfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
#0 sched_switch (td=0xc1312a70, newtd=0xcd98b600, flags=-1048441924)
at /usr/src/sys/kern/sched_ule.c:1954
1954 cpuid = PCPU_GET(cpuid);
(kgdb) p *buffer_map
$1 = {header = {prev = 0xf64f4750, next = 0xf64f4750, left = 0x0, right = 0x0,
start = 3925868544, end = 4044226560, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xcd8022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xcd802110}, mtx_lock = 4}, nentries = 1,
size = 8814592, timestamp = 538, needs_wakeup = 0 '\0',
system_map = 1 '\001', flags = 0 '\0', root = 0xf64f4750, pmap = 0xc13279f8,
busy = 0}
Current language: auto; currently minimal
(kgdb) p *bio_transienty_ _map
$2 = {header = {prev = 0xc19c1230, next = 0xc19c1230, left = 0x0, right = 0x0,
start = 4044226560, end = 4077780992, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xcd8022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xcd802110}, mtx_lock = 4}, nentries = 0,
size = 0, timestamp = 0, needs_wakeup = 0 '\0', system_map = 1 '\001',
flags = 0 '\0', root = 0x0, pmap = 0xc13279f8, busy = 0}
(kgdb) root at d129:~ # ^Dexit
Script done on Thu Mar 21 10:50:47 2013
-------------- next part --------------
Script started on Thu Mar 21 10:52:46 2013
root at d129:~ # uname -a
FreeBSD g1-235.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #845 r248575M/248575: Thu Mar 21 05:35:06 PDT 2013 root at g1-235.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386
root at d129:~ # sysctl vfs.unmapped_buf_allowed kern.bio_transient_mac[Kxcnt
vfs.unmapped_buf_allowed: 1
kern.bio_transient_maxcnt: 256
root at d129:~ # kgdb /boot/kernel/kernel /dev/meme[K
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from /boot/kernel/coretemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/coretemp.ko
Reading symbols from /boot/kernel/iwn5000fw.ko...Reading symbols from /boot/kernel/iwn5000fw.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/iwn5000fw.ko
Reading symbols from /boot/modules/nvidia.ko...done.
Loaded symbols for /boot/modules/nvidia.ko
Reading symbols from /boot/kernel/tmpfs.ko...Reading symbols from /boot/kernel/tmpfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/tmpfs.ko
Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /boot/kernel/fdescfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/fdescfs.ko
#0 sched_switch (td=0xc1312a70, newtd=0xce18b600, flags=-1040053316)
at /usr/src/sys/kern/sched_ule.c:1954
1954 cpuid = PCPU_GET(cpuid);
(kgdb) p *buffer_map
$1 = {header = {prev = 0xc21cfd80, next = 0xc21cfd80, left = 0x0, right = 0x0,
start = 3934257152, end = 4052615168, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xce0022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xce002110}, mtx_lock = 4}, nentries = 1,
size = 8798208, timestamp = 537, needs_wakeup = 0 '\0',
system_map = 1 '\001', flags = 0 '\0', root = 0xc21cfd80, pmap = 0xc13279f8,
busy = 0}
Current language: auto; currently minimal
(kgdb) p *bio_transient_map
$2 = {header = {prev = 0xc21c1230, next = 0xc21c1230, left = 0x0, right = 0x0,
start = 4052615168, end = 4086169600, avail_ssize = 0, adj_free = 0,
max_free = 0, object = {vm_object = 0x0, sub_map = 0x0}, offset = 0,
eflags = 0, protection = 0 '\0', max_protection = 0 '\0',
inheritance = 0 '\0', read_ahead = 0 '\0', wired_count = 0, next_read = 0,
cred = 0x0}, lock = {lock_object = {lo_name = 0xc0fc6c80 "vm map (user)",
lo_flags = 36896768, lo_data = 0, lo_witness = 0xce0022b0},
sx_lock = 1}, system_mtx = {lock_object = {
lo_name = 0xc0fc6c52 "vm map (system)", lo_flags = 21168128,
lo_data = 0, lo_witness = 0xce002110}, mtx_lock = 4}, nentries = 0,
size = 0, timestamp = 0, needs_wakeup = 0 '\0', system_map = 1 '\001',
flags = 0 '\0', root = 0x0, pmap = 0xc13279f8, busy = 0}
(kgdb) ^Froot at d129:~ # ^Dexit
Script done on Thu Mar 21 10:53:52 2013
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130321/e188600b/attachment.sig>
More information about the freebsd-current
mailing list