help linux timers

From: Giacomo (jacum_at_libero.it)
Date: 10/29/05

  • Next message: Kasper Dupont: "Re: help linux timers"
    Date: Sat, 29 Oct 2005 09:07:48 GMT
    
    

    Good morning, in my kernel code, which handles timeouts for connection
    tables in a linked list, i do:

    inline void update_timer_of_state_entry(struct state_table *sttable)
    {
     if (sttable->state.state == ESTABLISHED)
      mod_timer(&sttable->timer_statelist,
         jiffies + HZ * state_lifetime);
     else
      mod_timer(&sttable->timer_statelist,
         jiffies + HZ * setup_shutd_state_lifetime);
    }

    sttable is a structure which contains a struct timer_list.

    In:

    mod_timer(&sttable->timer_statelist,
         jiffies + HZ * state_lifetime);

    i update the timeout for the structures, so that when timer expires,
    structure is removed from linked list.

    The problem is that when state lifetime is long, let's say 2592000 for
    instance, kernel goes in panic!

    If the value is low, say 300, or higher 259200000, ok!

    I suspect a problem of overflow .. is it possible?

    What can be wrong?

    Thanks a lot for any hint!

    Giacomo.


  • Next message: Kasper Dupont: "Re: help linux timers"

    Relevant Pages

    • help linux timers
      ... Good morning, in my kernel code, which handles timeouts for connection ... The problem is that when state lifetime is long, ...
      (comp.os.linux.networking)
    • Re: timout error on server running vb .net routine
      ... > There are two timeouts in SQL Server that you want to think about. ... > Connection Timeouts and Command Timeouts. ... > thing that causes Command Timeouts, there are tons of things it could be. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: timout error on server running vb .net routine
      ... There are two timeouts in SQL Server that you want to think about. ... Connection Timeouts and Command Timeouts. ... thing that causes Command Timeouts, there are tons of things it could be. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Randomly get timeout on SqlClient hitting localhost
      ... of timeouts that occur: Connection timeouts and Command timeouts. ... Hitchhiker's Guide to Visual Studio and SQL Server ...
      (microsoft.public.dotnet.framework.adonet)
    • Re: Randomly get timeout on SqlClient hitting localhost
      ... the timeouts can occur on any system. ... Connection timeouts and Command timeouts. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ...
      (microsoft.public.dotnet.framework.adonet)