Skip navigation.
 
mlRe: limiting CPU usage
FROM : Alexander Cohen
DATE : Fri Nov 30 21:19:59 2007

On 30-Nov-07, at 3:05 PM, Murat Konar wrote:

>
> On Nov 30, 2007, at 8:36 AM, Alexander Cohen wrote:
>

>> In that case, maybe you have an idea for me. I have a daemon that 
>> runs and indexes all the images on a system. For each image, it 
>> needs to open it up, get some info, close it and store that info. 
>> This is very CPU consuming and can pretty much bring the system to 
>> a halt after a while.

>
> That doesn't seem right. Your daemon shouldn't be able to monopolize 
> the CPU. Are you sure that's what's going on?
>
> I wonder if what is really happening is that you're memory usage is 
> getting out of hand and causing virtual memory thrashing.


What im doing is pretty simple. I have a loop that for each iteration, 
opens an image, gets some info, then closes it down ( using CG of 
course ). Everything is released correctly and there are no leaks. BUt 
after a while, the system gets unresponsive.

AC

Related mailsAuthorDate
mllimiting CPU usage Alexander Cohen Nov 30, 14:53
mlRe: limiting CPU usage Thomas Davie Nov 30, 15:41
mlRe: limiting CPU usage Alexander Cohen Nov 30, 17:36
mlRe: limiting CPU usage Gammah Radiation Nov 30, 18:00
mlRe: limiting CPU usage Alastair Houghton Nov 30, 19:01
mlRe: limiting CPU usage Murat Konar Nov 30, 21:05
mlRe: limiting CPU usage Alexander Cohen Nov 30, 21:19
mlRe: limiting CPU usage Shawn Erickson Nov 30, 21:30
mlRe: limiting CPU usage Murat Konar Nov 30, 22:07