Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 02:58:16 +0000 (GMT)
From:      Mike Silbersack <silby@silby.com>
To:        current@freebsd.org
Subject:   Newbie ddb question
Message-ID:  <20020214025151.E9922-100000@patrocles.silby.com>

next in thread | raw e-mail | index | archive | help

I've been poking around in ddb in an attempt to work on some forkbomb/low
memory problems, and I've found it extremely useful.  There's one thing I
can't figure out how to do that would be useful, though.  Say that I have
a process of interest tsleeping.  Is there some way for me to get a
backtrace of that process at the time it entered tsleep?  In the case I'm
creating, many processes are tsleeping on vmwait.  As there are multiple
places where such a wait can occur, I'd really like to see which codepaths
are causing processes to enter that state.

The trace command doesn't seem to have the necessary functionality to do
this, so I was thinking that I might be able to simulate such an effect by
putting a null pointer reference right before such calls, thereby creating
a panic.  Is this the best way to go, or is there some easier way to
accomplish a similar effect?

Thanks,

Mike "Silby' Silbersack


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?20020214025151.E9922-100000>