Re: gettimeofday non-monotonic on SMP 2.3.47

From: Boris Okun (bokun@home.com)
Date: Fri Mar 03 2000 - 15:06:29 EST


Andrea Arcangeli wrote:
 
> Try to run this proggy in all CPUs at the same time while timetest is

How do I force this? I made the following program called cli
and then
[root@Ci313467-A marina]# cli & cli
or
[root@Ci313467-A marina]# cli & cli & cli & cli

  main ()
{

        volatile long i = 500000;
        int j=1000 ;
        while(j--){ i = 500000;
        printf("%i",iopl(3));
        __asm__("cli");
        while(i--);
        __asm__("sti");
        i = 300000;
        while(i--);
        printf("%i",i);
        }
}

I don't see any back's from timetest. I need i=500000 to get 6msec.
I sometiems get a couple of backs if I put i=1000000

What does it mean?

Boris

-
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/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:15 EST