[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE: keyboard freeze with one percent CPU load
- To: rtl@rtlinux.org
- Subject: Re: RE: keyboard freeze with one percent CPU load
- From: Marvin Germain <megermain@earthlink.net>
- Date: Wed, 01 Aug 2001 08:59:50 -0700
- Organization: Zygo Corporation
- References: <3B65EAA0.19963CD2@earthlink.net> <3B675DF6.F98FC2E@earthlink.net>
- Sender: mgermain@earthlink.net
Hi, Rich.
I calculated the CPU load by timing the ISR (50 us, not ms),
and comparing this with the time between interrupts. The computations
are actually commented out for now, so all the second module is doing
is pthread_suspend_np(). The operating system is definately not frozen,
because I can regain control by pulling the plug on the external
data clock, thereby stopping the interrupts. I think the problem is
with the scheduler, based on the results in my follow-up post. To re-
iterate, I put a call to rtl_schedule() in a periodic task, which
seemed to fix the problem. This implies that user-space tasks are
simply not being scheduled when the interrupts arrive once every five
mill-seconds.
Marvin
-
*********************************************
* Dr. Marvin E. Germain *
* Zygo Corporation - Tucson AZ *
* megermain@earthlink.net *
*********************************************