[lkml]   [2002]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectgettimeofday() cripples notsc system

    Running a large application that issues many gettimeofday()
    system calls on a kernel running with notsc, results in time
    slowing way down. I've seen the system time advance only
    three minutes over a 30 minute period. The following program,
    executed twice demonstrates the problem. Three instances running
    in parallel made a 16 processor machine completely unusable.

    #include <sys/time.h>

    struct timeval tv;
    struct timezone tz;
    while (1)
    if (gettimeofday(&tv, &tz))

    I've recreated on 2.5.30, 2.5.44, and 2.5.47. Running a system that
    is using the tsc I've tried 100 instances of this test running in
    parallel with no problems - other than the normal incorrect time due
    to tsc skew. At least no time slowdowns or hangs. The system I'm
    using is a 4 node NUMAQ (x86) box.

    I assume there is a lock starvation problem happening here, correct?
    Any chance of fixing this?

    Michael Hohnbaum 503-578-5486 T/L 775-5486

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:31    [W:0.020 / U:27.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site