[LRUG] cpu load with autotest
Ed Davey
ed at veryreal.co.uk
Mon Feb 4 09:38:50 PST 2008
I recently made a huge further improvement in autotest's cpu usage
(now about 2.5%, down from 15%, down from 30%!) by following this tip:
http://www.railsontherun.com/2008/1/30/misc-tips-and-tricks
in which you exclude directories which don't need monitoring.
ED
On 11 Dec 2007, at 17:49, Ed Davey wrote:
> this has cut the dormant cpu peak usage in half to around 15% which
> seems fine.
>
> thanks!
>
> ED
>
> On 10 Dec 2007, at 18:10, Robert McKinnon wrote:
>
>> You can reduce the frequency at which autotest checks for changes on
>> your file system by editing the @sleep attribute on the Autotest
>> class.
>> For ZenTest 3.6.1 I was able to open up autotest.rb in an editor:
>>
>> sudo vi +145
>> /usr/lib/ruby/gems/1.8/gems/ZenTest-3.6.1/lib/autotest.rb
>>
>> and increase the sleep time between checks from 1 second to 5
>> seconds,
>> by changing the @sleep value:
>>
>> @sleep = 5
>>
>> Now autotest is much better behaved, and carbon friendlier too!
>>
>> -Rob
>>
>> --- Ed Davey <ed at veryreal.co.uk> wrote:
>>
>>> Hi there,
>>>
>>> I've finally started using autotest which I find to be a great
>>> way of
>>>
>>> working.
>>>
>>> I notice that it consumes between 15 and 30% of my CPU at any given
>>> time which is slowing my machine down significantly as I usually
>>> have
>>>
>>> other demanding apps such as Photoshop and VMWare Fusion running
>>> also.
>>>
>>> Is this normal / workable for others?
>>>
>>> Thanks
>>>
>>> ED
>>>
>>>
>>> _______________________________________________
>>> Chat mailing list
>>> Chat at lists.lrug.org
>>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>>>
>>
>>
>>
>>
>> _____________________________________________________________________
>> _
>> ______________
>> Be a better friend, newshound, and
>> know-it-all with Yahoo! Mobile. Try it now. http://
>> mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>>
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
More information about the Chat
mailing list