public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: linux timer performance ?
  2001-04-19 20:40 linux timer performance ? Praveen Rajendran
@ 2001-04-19 16:19 ` Jeremy Jackson
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Jackson @ 2001-04-19 16:19 UTC (permalink / raw)
  To: Praveen Rajendran; +Cc: linux-kernel

Praveen Rajendran wrote:

> hi
>
> I am working on a kernel module which requires the addition of a large
> number of kernel timers  to expire statistical values ( including time
> ) maintained in a table.
>
> One alternative would be to use a single timer and traverse the entire
> table and use the existing system time to expire the values ( comparing
> it with the time already stored in the table )when the timer expires .

Most versions of cron claim to be very scalable, and use an optimized
algorithm to do the second option.  (avoiding linear scan) You could likely
just cut and paste
the code.  Problem solved?

>
>
> Following the method I describe first I would have to add a large number
> of timers ( around 2000) ... would this cause any significant
> performance drop  ? which method should I use ?
>
> thanks in advance
>
> Praveen
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* linux timer performance ?
@ 2001-04-19 20:40 Praveen Rajendran
  2001-04-19 16:19 ` Jeremy Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: Praveen Rajendran @ 2001-04-19 20:40 UTC (permalink / raw)
  To: linux-kernel

hi

I am working on a kernel module which requires the addition of a large
number of kernel timers  to expire statistical values ( including time
) maintained in a table.

One alternative would be to use a single timer and traverse the entire
table and use the existing system time to expire the values ( comparing
it with the time already stored in the table )when the timer expires .

Following the method I describe first I would have to add a large number
of timers ( around 2000) ... would this cause any significant
performance drop  ? which method should I use ?

thanks in advance

Praveen





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-19 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19 20:40 linux timer performance ? Praveen Rajendran
2001-04-19 16:19 ` Jeremy Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox