public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Clipper idle mode, usleep and alrm
@ 2004-05-14 19:30 Maximiliano Curia
  2004-06-04  7:52 ` Miroslav Mickey Lazarevic
  0 siblings, 1 reply; 3+ messages in thread
From: Maximiliano Curia @ 2004-05-14 19:30 UTC (permalink / raw)
  To: linux-msdos

Hello,

I'm still working out a way to limit the cpu utilization of clipper
programs.

The problem I'm looking now is that even if the usleep parameter is high
enough (say JIFFIE_TIME*100), the process never stops eating cpu, nor
does completes it's sleep time.

Doing an strace I see a lot of SIGALRM which, I presume, are waking it
up all the time. Could it be?

I'm sure I'm missing something.

-- 
Saludos
/\/\ /\ >< `/

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Clipper idle mode, usleep and alrm
@ 2004-05-14 20:59 Stas Sergeev
  0 siblings, 0 replies; 3+ messages in thread
From: Stas Sergeev @ 2004-05-14 20:59 UTC (permalink / raw)
  To: linux-msdos

Hello.

Maximiliano Curia wrote:
> Doing an strace I see a lot of SIGALRM which, I presume, are waking it
> up all the time. Could it be?
Yes. For the apps that do the polling
in a tight loop, this doesn't hurt
however, as they'll fall asleep again
immediately.
Clipper calls the interrupts that sleep,
very infrequently, that's why SIGALRM
makes it difficult to release the CPU
in that case.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-04  7:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14 19:30 Clipper idle mode, usleep and alrm Maximiliano Curia
2004-06-04  7:52 ` Miroslav Mickey Lazarevic
  -- strict thread matches above, loose matches on Subject: below --
2004-05-14 20:59 Stas Sergeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox