lkml.org 
[lkml]   [1999]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectReal time scheduling and 2.2.2 SMP
I have a dual Pentium II 450Mhz with 128M.  I tested the real-time scheduling on
the kernel 2.2.2 and got unexpected results. I ran the following test program.
On a kernel 2.0.36, the process takes all the cpu time on one cpu, but because I
have 2 cpu, the computer sill responds very well. If I do the same test on an
kernel 2.2.2, the computer reacts like I would have only one cpu. TOP shows
that the other cpu is 100% idle. Has someone ever had the same problem?

#include <sched.h>
main()
{
struct sched_param sparam;

sparam.sched_priority = 99;
sched_setscheduler(0,SCHED_FIFO,&sparam);

while(1){}
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.030 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site