Skip to content

Instantly share code, notes, and snippets.

View mattmacy's full-sized avatar

Matthew Macy mattmacy

View GitHub Profile
mmacy@VogonPoetry [~/devel/freebsd|0:04|17] git diff
diff --git a/usr.sbin/makefs/ffs.c b/usr.sbin/makefs/ffs.c
index 14d7714b8db..a22a89bb5a8 100644
--- a/usr.sbin/makefs/ffs.c
+++ b/usr.sbin/makefs/ffs.c
@@ -115,16 +115,14 @@ __FBSDID("$FreeBSD$");
/*
* Various file system defaults (cribbed from newfs(8)).
*/
-#define DFL_FRAGSIZE 1024 /* fragment size */
sdb-sde are 64G zvols on a striped zpool of 8 mirrors
fio was created by:
lvcreate -L 240G -i4 -I64 -n fio TestVolGroup
guest command:
doas cpuset -c -l 16-31 -n ft:1 -- grub-bhyve -S -m /chyves/storage/guests/ubi0/device.map -r hd0,msdos1 -c /dev/nmdm52A -M 32G chy-ubi0; doas cpuset -c -l 16-31 -n ft:1 -- bhyve -A -H -P -S -c 16 -U ec30b988-f5aa-11e7-a76c-ac1f6b0a8cd2 -m 32G -s 0,hostbridge -s
4,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk0 -s 5,virtio-net,tap52 -s 6,kvirtio-net,mtu=1500,queues=4,intf=cc0,mac=00:07:43:3d:92:d1 -s 7,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk1 -s 8,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk2 -s 9,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk3 -s 10,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk4 -l com1,/dev/nmdm52A -s 31,lpc chy-ubi0
ARC MAX 8G (in use 8G)
--------------------------------------------------------------
>>> Kernel build for BHYVE started on Thu Feb 22 15:12:20 PST 2018
--------------------------------------------------------------
===> BHYVE
--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
Kernel build directory is /usr/home/mmacy/devel/build/usr/home/mmacy/devel/networking/amd64.amd64/sys/BHYVE
--------------------------------------------------------------
>>> Kernel build for BHYVE started on Thu Feb 22 15:12:20 PST 2018
--------------------------------------------------------------
===> BHYVE
--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
Kernel build directory is /usr/home/mmacy/devel/build/usr/home/mmacy/devel/networking/amd64.amd64/sys/BHYVE
da0: 14663MB (30031250 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
panic: Unholding 4 with cnt = 0
cpuid = 60
time = 1519256740
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe04d453a320
vpanic() at vpanic+0x18d/frame 0xfffffe04d453a380
panic() at panic+0x43/frame 0xfffffe04d453a3e0
daprobedone() at daprobedone+0x3b1/frame 0xfffffe04d453a480
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
index cea9191ae7a..b656fc1a4f3 100644
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -167,9 +167,32 @@ struct vt_device {
#define VD_PASTEBUFSZ(vd) ((vd)->vd_pastebuf.vpb_bufsz)
#define VD_PASTEBUFLEN(vd) ((vd)->vd_pastebuf.vpb_len)
-#define VT_LOCK(vd) mtx_lock(&(vd)->vd_lock)
-#define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock)
diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c
index dfaf466d2ca..7c3eab59c08 100644
--- a/sys/kern/subr_kdb.c
+++ b/sys/kern/subr_kdb.c
@@ -671,6 +671,7 @@ kdb_trap(int type, int code, struct trapframe *tf)
intr = intr_disable();
#ifdef SMP
+ printf("stopping all cpus\n");
if (!SCHEDULER_STOPPED()) {
Fatal trap 12: page fault while in kernel mode
cpuid = 31; apic id = 6d
fault virtual address = 0x0
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80ff7e79
stack pointer = 0x28:0xfffffe00c9198dc0
frame pointer = 0x28:0xfffffe00c9198dc0
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
Fatal trap 12: page fault while in kernel mode
cpuid = 31; apic id = 6d
fault virtual address = 0x0
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80ff7db9
stack pointer = 0x28:0xfffffe00c9198dc0
frame pointer = 0x28:0xfffffe00c9198dc0
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
Fatal trap 12: page fault while in kernel mode
cpuid = 31; apic id = 6d
fault virtual address = 0x0
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80acd2b9
stack pointer = 0x28:0xfffffe01ab43b070
frame pointer = 0x28:0xfffffe01ab43b070
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0