Process accounting/timing has broken recently

Alexander Motin mav at FreeBSD.org
Mon Dec 6 19:01:00 UTC 2010


On 06.12.2010 20:49, Steve Kargl wrote:
> On Mon, Dec 06, 2010 at 08:46:15PM +0200, Andriy Gapon wrote:
>> on 06/12/2010 20:43 Steve Kargl said the following:
>>> The 7-10 days is an estimate.  I upgraded world/kernel on
>>> Saturday.  The previous world/kernel could have been older
>>> than I'm guessing.  It could be upto 4 weeks old because
>>> my laptop tends to lag behind the upgrades to my servers.
>>
>> I see.
>>
>>> I would normally use gprof to measure execution times
>>> for the functions I'm writing, but in some quick
>>> testing last night gprof appears to be broken.  I'm
>>> seeing a larger variation that I would expect in
>>> self-seconds for the accumulated time for execution
>>> of expf.
>>
>> Just guessing - could you try setting sysctl kern.eventtimer.periodic=1 if it's
>> not 1 already?
>>
>> And cc-ing Alexander, just in case.
>
> Thanks for the suggestion.  I'll try this tonight (I left the
> laptop at home) and will report back here.

Unless your application utilizes all CPUs all the time, you can also try 
to set sysctl kern.eventtimer.idletick=1.

-- 
Alexander Motin


More information about the freebsd-current mailing list