question about the exchanges of td->td_lock and mtx in sched_switch() of sched_ule

2011-10-13 Thread Haozhong Zhang
Hi, I'm recently reading the code of sched_ule in freebsd 8.2.0 and have two questions. 1. sched_switch() (in sched_ule.c) invokes cpu_switch() (at line 1852) and thread_unblock_switch() (at line 1867). These two functions exchange td->td_lock and mtx. What are the purposes of these exchanges? 2

kernel panic on free in FreeBSD 7.2

2011-10-13 Thread Filippo Sironi
Hi guys, I have an odd problem regarding memory. The (slightly) modified kernel of FreeBSD 7.2 I'm using panics with this error: "panic: smp_tlb_shootdown: interrupts disabled" upon calling free() on three out of four memory buffers I allocate using malloc() in M_TEMP. Unfortunately no informat

Re: kernel panic on free in FreeBSD 7.2

2011-10-13 Thread Andriy Gapon
on 13/10/2011 17:47 Filippo Sironi said the following: > Hi guys, > > I have an odd problem regarding memory. > The (slightly) modified kernel of FreeBSD 7.2 I'm using panics with this > error: "panic: smp_tlb_shootdown: interrupts disabled" upon calling free() on > three out of four memory buff

Re: Does anyone use nscd?

2011-10-13 Thread Andrey Zonov
Nope, because of http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/130749 -- Andrey Zonov 04.10.2011 19:20, Dag-Erling Smørgrav пишет: Does anyone actually use nscd? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinf