Skip to content

Instantly share code, notes, and snippets.

@ivan4th
Created February 3, 2017 18:52
Show Gist options
  • Save ivan4th/d031a21b5d1043d04f4b74108b4474ff to your computer and use it in GitHub Desktop.
Save ivan4th/d031a21b5d1043d04f4b74108b4474ff to your computer and use it in GitHub Desktop.
gp details for kube-proxy
(dlv) thread 14
Switched from 34689 to 14
(dlv) print gp
*runtime.g {
stack: runtime.stack {lo: 842350829568, hi: 842350831584},
stackguard0: 18446744073709550302,
stackguard1: 18446744073709551615,
_panic: *runtime._panic nil,
_defer: *runtime._defer nil,
m: *runtime.m {
g0: *(*runtime.g)(0xc420492ea0),
morebuf: (*runtime.gobuf)(0xc420504008),
divmod: 0,
procid: 22,
gsignal: *(*runtime.g)(0xc420492d00),
sigmask: runtime.sigset [0,0],
tls: [6]uintptr [0,0,0,0,0,0],
mstartfn: runtime.mhelpgc,
curg: *runtime.g nil,
caughtsig: 0,
p: 842350586368,
nextp: 0,
id: 17,
mallocing: 0,
throwing: 0,
preemptoff: "",
locks: 0,
softfloat: 0,
dying: 0,
profilehz: 0,
helpgc: 9,
spinning: false,
blocked: false,
inwb: false,
newSigstack: true,
printlock: 0,
fastrand: 1263498102,
ncgocall: 0,
ncgo: 0,
cgoCallersUse: 0,
cgoCallers: *runtime.cgoCallers [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
park: (*runtime.note)(0xc420504110),
alllink: *(*runtime.m)(0xc420412400),
schedlink: 842355148800,
mcache: *(*runtime.mcache)(0x7f4965e3c580),
lockedg: *runtime.g nil,
createstack: [32]uintptr [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freglo: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freghi: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
fflag: 0,
locked: 0,
nextwaitm: 0,
gcstats: (*runtime.gcstats)(0xc4205042c8),
needextram: false,
traceback: 2,
waitunlockf: unsafe.Pointer(0x0),
waitlock: unsafe.Pointer(0x0),
waittraceev: 20,
waittraceskip: 0,
startingtrace: false,
syscalltick: 116358,
thread: 0,
libcall: (*runtime.libcall)(0xc420504328),
libcallpc: 0,
libcallsp: 0,
libcallg: 0,
syscall: (*runtime.libcall)(0xc420504370),
runtime.mOS: runtime.mOS {},},
stackAlloc: 2048,
sched: runtime.gobuf {sp: 0, pc: 4403322, g: 842352694144, ctxt: unsafe.Pointer(0x0), ret: 0, lr: 0, bp: 0},
syscallsp: 0,
syscallpc: 0,
stkbar: []runtime.stkbar len: 0, cap: 2, [],
stkbarPos: 0,
stktopsp: 842350831544,
param: unsafe.Pointer(0x0),
atomicstatus: 2,
stackLock: 0,
goid: 22,
waitsince: 0,
waitreason: "GC worker (idle)",
schedlink: 0,
preempt: true,
paniconfault: false,
preemptscan: true,
gcscandone: false,
gcscanvalid: false,
throwsplit: false,
raceignore: 0,
sysblocktraced: false,
sysexitticks: 0,
traceseq: 0,
tracelastp: 0,
lockedm: *runtime.m nil,
sig: 0,
writebuf: []uint8 len: 0, cap: 0, [],
sigcode0: 0,
sigcode1: 0,
sigpc: 0,
gopc: 4317976,
startpc: 4318048,
racectx: 0,
waiting: *runtime.sudog nil,
cgoCtxt: []uintptr len: 0, cap: 0, [],
gcRescan: 2,
gcAssistBytes: 0,}
(dlv) thread 15
Switched from 14 to 15
(dlv) frame 1 print gp
*runtime.g {
stack: runtime.stack {lo: 842350827520, hi: 842350829536},
stackguard0: 18446744073709550302,
stackguard1: 18446744073709551615,
_panic: *runtime._panic nil,
_defer: *runtime._defer nil,
m: *runtime.m {
g0: *(*runtime.g)(0xc4204844e0),
morebuf: (*runtime.gobuf)(0xc420482408),
divmod: 0,
procid: 14,
gsignal: *(*runtime.g)(0xc420484340),
sigmask: runtime.sigset [0,0],
tls: [6]uintptr [0,0,0,0,0,0],
mstartfn: runtime.mspinning,
curg: *runtime.g nil,
caughtsig: 0,
p: 842350553600,
nextp: 0,
id: 9,
mallocing: 0,
throwing: 0,
preemptoff: "",
locks: 0,
softfloat: 0,
dying: 0,
profilehz: 0,
helpgc: 3,
spinning: false,
blocked: false,
inwb: false,
newSigstack: true,
printlock: 0,
fastrand: 1278527238,
ncgocall: 0,
ncgo: 0,
cgoCallersUse: 0,
cgoCallers: *runtime.cgoCallers [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
park: (*runtime.note)(0xc420482510),
alllink: *(*runtime.m)(0xc420490000),
schedlink: 842355190784,
mcache: *(*runtime.mcache)(0x7f4965e3a960),
lockedg: *runtime.g nil,
createstack: [32]uintptr [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freglo: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freghi: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
fflag: 0,
locked: 0,
nextwaitm: 0,
gcstats: (*runtime.gcstats)(0xc4204826c8),
needextram: false,
traceback: 2,
waitunlockf: unsafe.Pointer(0x0),
waitlock: unsafe.Pointer(0x0),
waittraceev: 20,
waittraceskip: 0,
startingtrace: false,
syscalltick: 18237,
thread: 0,
libcall: (*runtime.libcall)(0xc420482728),
libcallpc: 0,
libcallsp: 0,
libcallg: 0,
syscall: (*runtime.libcall)(0xc420482770),
runtime.mOS: runtime.mOS {},},
stackAlloc: 2048,
sched: runtime.gobuf {sp: 0, pc: 4289360, g: 842352693728, ctxt: unsafe.Pointer(0x0), ret: 0, lr: 0, bp: 0},
syscallsp: 0,
syscallpc: 0,
stkbar: []runtime.stkbar len: 0, cap: 2, [],
stkbarPos: 0,
stktopsp: 842350829496,
param: unsafe.Pointer(0x0),
atomicstatus: 2,
stackLock: 0,
goid: 21,
waitsince: 0,
waitreason: "GC worker (idle)",
schedlink: 0,
preempt: true,
paniconfault: false,
preemptscan: true,
gcscandone: false,
gcscanvalid: false,
throwsplit: false,
raceignore: 0,
sysblocktraced: false,
sysexitticks: 0,
traceseq: 0,
tracelastp: 0,
lockedm: *runtime.m nil,
sig: 0,
writebuf: []uint8 len: 0, cap: 0, [],
sigcode0: 0,
sigcode1: 0,
sigpc: 0,
gopc: 4317976,
startpc: 4318048,
racectx: 0,
waiting: *runtime.sudog nil,
cgoCtxt: []uintptr len: 0, cap: 0, [],
gcRescan: 1,
gcAssistBytes: 0,}
(dlv) thread 18
Switched from 15 to 18
(dlv) print gp
Command failed: could not find FDE for PC 0x7ffca1702b62
(dlv) frame 2 print gp
Command failed: could not find FDE for PC 0x7ffca1702b62
(dlv) c
received SIGINT, stopping process (will not forward signal)> runtime.usleep() .usr/local/go/src/runtime/sys_linux_amd64.s:95 (PC: 0x464d07)
(dlv) thread 18
Switched from 1 to 18
(dlv) print gp
Command failed: could not find symbol value for gp
(dlv) frame 1 print gp
*runtime.g {
stack: runtime.stack {lo: 842355034112, hi: 842355036128},
stackguard0: 18446744073709550302,
stackguard1: 18446744073709551615,
_panic: *runtime._panic nil,
_defer: *runtime._defer nil,
m: *runtime.m {
g0: *(*runtime.g)(0xc420099a00),
morebuf: (*runtime.gobuf)(0xc4200cd808),
divmod: 0,
procid: 18,
gsignal: *(*runtime.g)(0xc420099860),
sigmask: runtime.sigset [0,0],
tls: [6]uintptr [0,0,0,0,0,0],
mstartfn: runtime.mhelpgc,
curg: *runtime.g nil,
caughtsig: 0,
p: 842350569984,
nextp: 0,
id: 13,
mallocing: 0,
throwing: 0,
preemptoff: "",
locks: 0,
softfloat: 0,
dying: 0,
profilehz: 0,
helpgc: 6,
spinning: false,
blocked: false,
inwb: false,
newSigstack: true,
printlock: 0,
fastrand: 1614336076,
ncgocall: 0,
ncgo: 0,
cgoCallersUse: 0,
cgoCallers: *runtime.cgoCallers [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
park: (*runtime.note)(0xc4200cd910),
alllink: *(*runtime.m)(0xc4204f2c00),
schedlink: 842358464512,
mcache: *(*runtime.mcache)(0x7f4965e3b770),
lockedg: *runtime.g nil,
createstack: [32]uintptr [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freglo: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freghi: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
fflag: 0,
locked: 0,
nextwaitm: 0,
gcstats: (*runtime.gcstats)(0xc4200cdac8),
needextram: false,
traceback: 2,
waitunlockf: unsafe.Pointer(0x0),
waitlock: unsafe.Pointer(0x0),
waittraceev: 20,
waittraceskip: 0,
startingtrace: false,
syscalltick: 115580,
thread: 0,
libcall: (*runtime.libcall)(0xc4200cdb28),
libcallpc: 0,
libcallsp: 0,
libcallg: 0,
syscall: (*runtime.libcall)(0xc4200cdb70),
runtime.mOS: runtime.mOS {},},
stackAlloc: 2048,
sched: runtime.gobuf {sp: 0, pc: 4403322, g: 842352696224, ctxt: unsafe.Pointer(0x0), ret: 0, lr: 0, bp: 0},
syscallsp: 0,
syscallpc: 0,
stkbar: []runtime.stkbar len: 0, cap: 2, [],
stkbarPos: 0,
stktopsp: 842355036088,
param: unsafe.Pointer(0x0),
atomicstatus: 2,
stackLock: 0,
goid: 27,
waitsince: 0,
waitreason: "GC worker (idle)",
schedlink: 0,
preempt: true,
paniconfault: false,
preemptscan: true,
gcscandone: false,
gcscanvalid: false,
throwsplit: false,
raceignore: 0,
sysblocktraced: false,
sysexitticks: 0,
traceseq: 0,
tracelastp: 0,
lockedm: *runtime.m nil,
sig: 0,
writebuf: []uint8 len: 0, cap: 0, [],
sigcode0: 0,
sigcode1: 0,
sigpc: 0,
gopc: 4317976,
startpc: 4318048,
racectx: 0,
waiting: *runtime.sudog nil,
cgoCtxt: []uintptr len: 0, cap: 0, [],
gcRescan: 7,
gcAssistBytes: 0,}
(dlv) thread 27
Switched from 18 to 27
(dlv) print gp
Command failed: could not find symbol value for gp
(dlv) frame 1 print gp
*runtime.g {
stack: runtime.stack {lo: 842350831616, hi: 842350833632},
stackguard0: 18446744073709550302,
stackguard1: 18446744073709551615,
_panic: *runtime._panic nil,
_defer: *runtime._defer nil,
m: *runtime.m {
g0: *(*runtime.g)(0xc42027c1a0),
morebuf: (*runtime.gobuf)(0xc420504808),
divmod: 0,
procid: 26,
gsignal: *(*runtime.g)(0xc42027c000),
sigmask: runtime.sigset [0,0],
tls: [6]uintptr [0,0,0,0,0,0],
mstartfn: runtime.mhelpgc,
curg: *runtime.g nil,
caughtsig: 0,
p: 842350580992,
nextp: 0,
id: 21,
mallocing: 0,
throwing: 0,
preemptoff: "",
locks: 0,
softfloat: 0,
dying: 0,
profilehz: 0,
helpgc: 8,
spinning: false,
blocked: false,
inwb: false,
newSigstack: true,
printlock: 0,
fastrand: 1158190058,
ncgocall: 0,
ncgo: 0,
cgoCallersUse: 0,
cgoCallers: *runtime.cgoCallers [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
park: (*runtime.note)(0xc420504910),
alllink: *(*runtime.m)(0xc420482c00),
schedlink: 842355720192,
mcache: *(*runtime.mcache)(0x7f4965e3c0d0),
lockedg: *runtime.g nil,
createstack: [32]uintptr [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freglo: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freghi: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
fflag: 0,
locked: 0,
nextwaitm: 0,
gcstats: (*runtime.gcstats)(0xc420504ac8),
needextram: false,
traceback: 2,
waitunlockf: unsafe.Pointer(0x0),
waitlock: unsafe.Pointer(0x0),
waittraceev: 20,
waittraceskip: 0,
startingtrace: false,
syscalltick: 70995,
thread: 0,
libcall: (*runtime.libcall)(0xc420504b28),
libcallpc: 0,
libcallsp: 0,
libcallg: 0,
syscall: (*runtime.libcall)(0xc420504b70),
runtime.mOS: runtime.mOS {},},
stackAlloc: 2048,
sched: runtime.gobuf {sp: 0, pc: 4334384, g: 842352694560, ctxt: unsafe.Pointer(0x0), ret: 0, lr: 0, bp: 0},
syscallsp: 0,
syscallpc: 0,
stkbar: []runtime.stkbar len: 0, cap: 2, [],
stkbarPos: 0,
stktopsp: 842350833592,
param: unsafe.Pointer(0x0),
atomicstatus: 2,
stackLock: 0,
goid: 23,
waitsince: 0,
waitreason: "GC worker (idle)",
schedlink: 0,
preempt: true,
paniconfault: false,
preemptscan: true,
gcscandone: false,
gcscanvalid: false,
throwsplit: false,
raceignore: 0,
sysblocktraced: false,
sysexitticks: 0,
traceseq: 0,
tracelastp: 0,
lockedm: *runtime.m nil,
sig: 0,
writebuf: []uint8 len: 0, cap: 0, [],
sigcode0: 0,
sigcode1: 0,
sigpc: 0,
gopc: 4317976,
startpc: 4318048,
racectx: 0,
waiting: *runtime.sudog nil,
cgoCtxt: []uintptr len: 0, cap: 0, [],
gcRescan: 3,
gcAssistBytes: 0,}
(dlv) thread 4959
Switched from 27 to 4959
(dlv) frame 1 print gp
*runtime.g {
stack: runtime.stack {lo: 842355036160, hi: 842355038176},
stackguard0: 18446744073709550302,
stackguard1: 18446744073709551615,
_panic: *runtime._panic nil,
_defer: *runtime._defer nil,
m: *runtime.m {
g0: *(*runtime.g)(0xc42092c4e0),
morebuf: (*runtime.gobuf)(0xc420478808),
divmod: 0,
procid: 32,
gsignal: *(*runtime.g)(0xc42092c340),
sigmask: runtime.sigset [0,0],
tls: [6]uintptr [0,0,0,0,0,0],
mstartfn: runtime.mhelpgc,
curg: *runtime.g nil,
caughtsig: 0,
p: 842350592000,
nextp: 0,
id: 27,
mallocing: 0,
throwing: 0,
preemptoff: "",
locks: 0,
softfloat: 0,
dying: 0,
profilehz: 0,
helpgc: 10,
spinning: false,
blocked: false,
inwb: false,
newSigstack: true,
printlock: 0,
fastrand: 1453223912,
ncgocall: 0,
ncgo: 0,
cgoCallersUse: 0,
cgoCallers: *runtime.cgoCallers [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
park: (*runtime.note)(0xc420478910),
alllink: *(*runtime.m)(0xc4200cc800),
schedlink: 842355191808,
mcache: *(*runtime.mcache)(0x7f4965e3ca30),
lockedg: *runtime.g nil,
createstack: [32]uintptr [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freglo: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freghi: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
fflag: 0,
locked: 0,
nextwaitm: 0,
gcstats: (*runtime.gcstats)(0xc420478ac8),
needextram: false,
traceback: 2,
waitunlockf: unsafe.Pointer(0x0),
waitlock: unsafe.Pointer(0x0),
waittraceev: 20,
waittraceskip: 0,
startingtrace: false,
syscalltick: 925745,
thread: 0,
libcall: (*runtime.libcall)(0xc420478b28),
libcallpc: 0,
libcallsp: 0,
libcallg: 0,
syscall: (*runtime.libcall)(0xc420478b70),
runtime.mOS: runtime.mOS {},},
stackAlloc: 2048,
sched: runtime.gobuf {sp: 0, pc: 4403322, g: 842352696640, ctxt: unsafe.Pointer(0x0), ret: 0, lr: 0, bp: 0},
syscallsp: 0,
syscallpc: 0,
stkbar: []runtime.stkbar len: 0, cap: 2, [],
stkbarPos: 0,
stktopsp: 842355038136,
param: unsafe.Pointer(0x0),
atomicstatus: 2,
stackLock: 0,
goid: 28,
waitsince: 0,
waitreason: "GC worker (idle)",
schedlink: 0,
preempt: true,
paniconfault: false,
preemptscan: true,
gcscandone: false,
gcscanvalid: false,
throwsplit: false,
raceignore: 0,
sysblocktraced: false,
sysexitticks: 0,
traceseq: 0,
tracelastp: 0,
lockedm: *runtime.m nil,
sig: 0,
writebuf: []uint8 len: 0, cap: 0, [],
sigcode0: 0,
sigcode1: 0,
sigpc: 0,
gopc: 4317976,
startpc: 4318048,
racectx: 0,
waiting: *runtime.sudog nil,
cgoCtxt: []uintptr len: 0, cap: 0, [],
gcRescan: 8,
gcAssistBytes: 0,}
(dlv) thread 34689
Switched from 4959 to 34689
(dlv) frame 1 print gp
*runtime.g {
stack: runtime.stack {lo: 842355032064, hi: 842355034080},
stackguard0: 18446744073709550302,
stackguard1: 18446744073709551615,
_panic: *runtime._panic nil,
_defer: *runtime._defer nil,
m: *runtime.m {
g0: *(*runtime.g)(0xc4204769c0),
morebuf: (*runtime.gobuf)(0xc420482c08),
divmod: 0,
procid: 25,
gsignal: *(*runtime.g)(0xc420476820),
sigmask: runtime.sigset [0,0],
tls: [6]uintptr [0,0,0,0,0,0],
mstartfn: runtime.mhelpgc,
curg: *runtime.g nil,
caughtsig: 0,
p: 842350559232,
nextp: 0,
id: 20,
mallocing: 0,
throwing: 0,
preemptoff: "",
locks: 0,
softfloat: 0,
dying: 0,
profilehz: 0,
helpgc: 4,
spinning: false,
blocked: false,
inwb: false,
newSigstack: true,
printlock: 0,
fastrand: 1786754868,
ncgocall: 0,
ncgo: 0,
cgoCallersUse: 0,
cgoCallers: *runtime.cgoCallers [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
park: (*runtime.note)(0xc420482d10),
alllink: *(*runtime.m)(0xc420482800),
schedlink: 842358465536,
mcache: *(*runtime.mcache)(0x7f4965e3ae10),
lockedg: *runtime.g nil,
createstack: [32]uintptr [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freglo: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
freghi: [16]uint32 [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
fflag: 0,
locked: 0,
nextwaitm: 0,
gcstats: (*runtime.gcstats)(0xc420482ec8),
needextram: false,
traceback: 2,
waitunlockf: unsafe.Pointer(0x0),
waitlock: unsafe.Pointer(0x0),
waittraceev: 20,
waittraceskip: 0,
startingtrace: false,
syscalltick: 1567030,
thread: 0,
libcall: (*runtime.libcall)(0xc420482f28),
libcallpc: 0,
libcallsp: 0,
libcallg: 0,
syscall: (*runtime.libcall)(0xc420482f70),
runtime.mOS: runtime.mOS {},},
stackAlloc: 2048,
sched: runtime.gobuf {sp: 0, pc: 4289360, g: 842352695808, ctxt: unsafe.Pointer(0x0), ret: 0, lr: 0, bp: 0},
syscallsp: 0,
syscallpc: 0,
stkbar: []runtime.stkbar len: 0, cap: 2, [],
stkbarPos: 0,
stktopsp: 842355034040,
param: unsafe.Pointer(0x0),
atomicstatus: 2,
stackLock: 0,
goid: 26,
waitsince: 0,
waitreason: "GC worker (idle)",
schedlink: 0,
preempt: true,
paniconfault: false,
preemptscan: true,
gcscandone: false,
gcscanvalid: false,
throwsplit: false,
raceignore: 0,
sysblocktraced: false,
sysexitticks: 0,
traceseq: 0,
tracelastp: 0,
lockedm: *runtime.m nil,
sig: 0,
writebuf: []uint8 len: 0, cap: 0, [],
sigcode0: 0,
sigcode1: 0,
sigpc: 0,
gopc: 4317976,
startpc: 4318048,
racectx: 0,
waiting: *runtime.sudog nil,
cgoCtxt: []uintptr len: 0, cap: 0, [],
gcRescan: 6,
gcAssistBytes: 0,}
(dlv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment