Re: Process accounting/timing has broken recently

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Mon, 06 Dec 2010 21:00:54 +0200
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
Received on Mon Dec 06 2010 - 18:01:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:09 UTC