tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: zero runtime when negative



On 6/26/2012 8:12 PM, Adam Hoka wrote:
> On 6/24/2012 10:23 AM, Adam Hoka wrote:
>> Hi!
>>
>> Can you guys please check if the following makes sense:
>>
>> http://www.netbsd.org/~ahoka/patches/timebackwards.diff      
>>
>> The use case is the following:
>>
>> After starting NetBSD in vmware I see a lot of RLIMIT_CPU reached
>> messages overflowing my dmesg. At some time during the boot one or more
>> processes calculate a negative runtime, but as nothing resets them to
>> zero they keep reaching the cpu limit and the printouts are spamming the
>> console. Also the printout is bogus, because they are not really killed
>> in this case.
>>
>> Any comments?
>>
>>
>> Cheers,
>> Adam
> 
> As someone pointed out, there was some mistake in the original patch,
> heres the fixed version:
> 
> http://www.netbsd.org/~ahoka/patches/timebackwards2.diff
> 


I plan to commit this if there are no good reasons or suggestions for an
alternative solution.

I think it doesn't hide the problem, as it still prints a warning as it
used to. The only thing it removes is the bogus message about killing
the process.



Home | Main Index | Thread Index | Old Index