On Mon, Nov 22, 2010 at 5:34 AM, Amit Kulkarni <amitk...@gmail.com> wrote:
> Hi,
>
> Could somebody include this in the FAQ? I found Daniel Hartmeier
> personal page which shows how to get stack trace and line numbers. I
> know that the stacktrace info is included somewhere on openbsd.org.
> But the way Daniel presented was much better. That particular
> presentation or a link should be in the FAQ too. They would be really
> useful.

Like this one http://www.openbsd.org/faq/faq2.html#Bugs ? Example on the end
looks exactly like his job.


>
> Thanks
>
>> The "someone" running a profiling kernel to identify the hot spots could be 
>> you.
>>
>> cd /sys/arch/<arch>/config
>> config -p <kernelname>
>> build a kernel from the ../compile/<kernelname>.PROF directory in the usual 
>> way
>> kgmon -b to start profiling
>> (generate some traffic)
>> kgmon -h to stop profiling
>> kgmon -p to dump stats
>> gprof /bsd gmon.out to read stats...
>>
>> Assuming you're interested in routed traffic (rather than queuing traffic
>> generated on a box itself), make sure you run the traffic source and sink
>> on other machines routing through the altq box, don't source/sink traffic
>> on the altq box itself.

Reply via email to