[lkml]   [2002]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectjiffies rollover, uptime etc.

    yes, I know this is defenitely no new issue (maybe its none to you
    anyway), since I found posts about this dating from 1998: the
    jiffies counter rolls over after approx. 497 days uptime, which
    causes the uptime to roll over as well, and seems to cause some
    other irretation in the system itself (my pc speaker starting
    beeping constantely...)

    I noticed this on a couple of servers just having had 500 days of
    uptime, and so I starting looking at the kernel code and played
    around with a tiny jiffie manipulating kernel module. Since jiffies
    is unsigned long (being 32 bits wide on x86) and counts 1/100th
    seconds, it can only hold about 497 days...

    This seems to be true for both 2.2 and 2.4, at least for 2.2.16 and
    2.4.17, which I tested...

    The uptime thingy could IMHO be solved with some kind of rollover
    counter, and I'm currently digging into that area... Stuff like a pc
    speaker driver going wild bothers me a bit more...

    Could anybody perhaps tell me why he/she doesn't consider this a
    problem? And is there a fundamental problem with solving this in
    general? (I do see a problem with defining jiffies long long on x86,
    because it might break a lot of things and probably wouldnt perform
    as often as jiffies is touched... And you might sense I haven't
    been into kernel hacking much...)

    My first post here, sorry :)



    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:18    [W:0.020 / U:1.836 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site