From owner-freebsd-stable@FreeBSD.ORG Wed Aug 17 12:56:35 2011 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8075106566B for ; Wed, 17 Aug 2011 12:56:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id DF6458FC18 for ; Wed, 17 Aug 2011 12:56:34 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA24369; Wed, 17 Aug 2011 15:56:32 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4E4BBA7F.30907@FreeBSD.org> Date: Wed, 17 Aug 2011 15:56:31 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110705 Thunderbird/5.0 MIME-Version: 1.0 To: Steven Hartland References: <47F0D04ADF034695BC8B0AC166553371@multiplay.co.uk><4E4380C0.7070908@FreeBSD.org> <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> In-Reply-To: <581C95046B0948FC82D6F2E86948F87B@multiplay.co.uk> X-Enigmail-Version: 1.2pre Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org Subject: Re: debugging frequent kernel panics on 8.2-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 12:56:35 -0000 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' , 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