Date: Wed, 17 Aug 2011 15:56:31 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Steven Hartland <killing@multiplay.co.uk> Cc: freebsd-stable@FreeBSD.org Subject: Re: debugging frequent kernel panics on 8.2-RELEASE Message-ID: <4E4BBA7F.30907@FreeBSD.org> In-Reply-To: <581C95046B0948FC82D6F2E86948F87B@multiplay.co.uk> References: <47F0D04ADF034695BC8B0AC166553371@multiplay.co.uk><A71C3ACF01EC4D36871E49805C1A5321@multiplay.co.uk><4E4380C0.7070908@FreeBSD.org><EBC06A239BAB4B3293C28D793329F9CA@multiplay.co.uk> <4E43E272.1060204@FreeBSD.org> <62BF25D0ED914876BEE75E2ADF28DDF7@multiplay.co.uk> <4E440865.1040500@FreeBSD.org> <6F08A8DE780545ADB9FA93B0A8AA4DA1@multiplay.co.uk> <4E441314.6060606@FreeBSD.org> <2C4B0D05C8924F24A73B56EA652FA4B0@multiplay.co.uk> <4E48D967.9060804@FreeBSD.org> <9D034F992B064E8092E5D1D249B3E959@multiplay.co.uk> <4E490DAF.1080009@FreeBSD.org> <796FD5A096DE4558B57338A8FA1E125B@multiplay.co.uk> <4E491D01.1090902@FreeBSD.org> <570C5495A5E242F7946E806CA7AC5D68@multiplay.co.uk> <4E4AD35C.7020504@FreeBSD.org> <6A7238AED44542A880B082A40304D940@multiplay.co.uk> <4E4BA21F.6010805@FreeBSD.org> <581C95046B0948FC82D6F2E86948F87B@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
on 17/08/2011 15:15 Steven Hartland said the following: >> define allpcpu >> set $i = 0 >> while ($i <= mp_maxid) >> p *cpuid_to_pcpu[$i] >> set $i = $i + 1 >> end >> end >> allpcpu > > Here's the output. [snip] > $3 = {pc_curthread = 0xffffff06b7f9c000, pc_idlethread = 0xffffff0012d85460, > pc_fpcurthread = 0x0, pc_deadthread = 0x0, pc_curpcb = 0xffffff8d8f35ad00, > pc_switchtime = 564139963042291, pc_switchticks = 247796550, pc_cpuid = 2, > pc_cpumask = 4, pc_other_cpus = 16777211, pc_allcpu = {sle_next = > 0xffffffff808af680}, pc_spinlocks = 0x0, pc_cnt = {v_swtch = 1005391948, v_trap = > 95927887, v_syscall = 2033274537, v_intr = 137253, v_soft = 151981308, > v_vm_faults = 14199910, v_cow_faults = 1468132, v_cow_optim = 533, v_zfod = > 11032593, v_ozfod = 0, v_swapin = 0, v_swapout = 0, v_swappgsin = 0, v_swappgsout > = 0, v_vnodein = 17238, v_vnodeout = 48, v_vnodepgsin = 17238, > v_vnodepgsout = 378, v_intrans = 6753, v_reactivated = 0, v_pdwakeups = 0, > v_pdpages = 0, v_tcached = 0, v_dfree = 0, v_pfree = 0, v_tfree = 15435380, > v_page_size = 0, v_page_count = 0, v_free_reserved = 0, > v_free_target = 0, v_free_min = 0, v_free_count = 0, v_wire_count = 0, > v_active_count = 0, v_inactive_target = 0, v_inactive_count = 0, v_cache_count = > 0, v_cache_min = 0, v_cache_max = 0, v_pageout_free_min = 0, > v_interrupt_free_min = 0, v_free_severe = 0, v_forks = 24041, v_vforks = 16857, > v_rforks = 0, v_kthreads = 0, v_forkpages = 6281292, v_vforkpages = 3606842, > v_rforkpages = 0, v_kthreadpages = 0}, pc_cp_time = {8629094, > 693, 594838, 24425, 23707811}, pc_device = 0xffffff0012da2500, pc_netisr = 0x0, > pc_rm_queue = {rmq_next = 0xffffffff808afa50, rmq_prev = 0xffffffff808afa50}, > pc_dynamic = 18446743526093326592, > pc_monitorbuf = '\0' <repeats 127 times>, pc_prvspace = 0xffffffff808af900, > pc_curpmap = 0xffffffff8083ea50, pc_tssp = 0xffffffff808ae7d0, pc_commontssp = > 0xffffffff808ae7d0, pc_rsp0 = -491518579456, > pc_scratch_rsp = 140737488347240, pc_apic_id = 2, pc_acpi_id = 2, pc_fs32p = > 0xffffffff808ad600, pc_gs32p = 0xffffffff808ad608, pc_ldt = 0xffffffff808ad648, > pc_tss = 0xffffffff808ad638, pc_cmci_mask = 8} [snip] Thank you. A few more questions: 1. more kgdb info for the core: p *(cpuid_to_pcpu[2]->pc_curthread) p *(cpuid_to_pcpu[2]->pc_curthread->td_proc) p *(cpuid_to_pcpu[2]->pc_curthread->td_proc->p_limit) 2. do you have any additional patches in your source tree besides those debugging patches that I provided to you? 3. do you have any thirdparty/out-of-tree kernel modules? 4. could you please send me your kernel config? -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E4BBA7F.30907>