Date: Fri, 9 Feb 2001 14:05:01 +0100 (CET) From: Alexander Leidinger <Alexander@Leidinger.net> To: bde@zeta.org.au Cc: current@FreeBSD.ORG Subject: Re: kernel trap 12 with interrupts disabled Message-ID: <200102091305.f19D52T02449@Magelan.Leidinger.net> In-Reply-To: <Pine.BSF.4.21.0102091633220.12261-100000@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9 Feb, Bruce Evans wrote:
> Pagefaults occur in copyin() (called from addupc_task() which is called
> from ast()) while sched_lock is held. This is not good. Incrementing
> the profiling counters is supposed to be pushed to ordinary process
> context so that things like copyin() can work (they have to be able
> to fault in pages, so they have to be able to sleep...), so using
> sched_lock to lock things here is wrong.
Are we talking about /sys/kern/kern_clock.c: statclock()? I'm not
familiar with the kernel and that's the only place I find something
related to profiling if I grep for "profil" and look at the results. If
yes, what is to to?
>> If I run it withhin X11, the machine deadlocks hard (no response from
>> the numlock led on the keyboard), withhin a virtual console I get a lot
>> of "kernel trap ..." and the program runs fine.
>
> It's surprising that it doesn't always deadlock.
First I thought I have a hardware problem, I was able to profile the
program 4-5 times withhin X11 at a day before. Without changing anything
except the options to the program I wasn't able to profile it later.
Bye,
Alexander.
--
Loose bits sink chips.
http://www.Leidinger.net Alexander @ Leidinger.net
GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102091305.f19D52T02449>
