* microsecond event scheduling in an application
@ 2009-09-08 14:27 Junhee Lee
2009-09-20 18:26 ` Robert Hancock
0 siblings, 1 reply; 4+ messages in thread
From: Junhee Lee @ 2009-09-08 14:27 UTC (permalink / raw)
To: linux-kernel
I am working on event scheduler which handles events in microsecond level.
Actual this program is a network emulator using simulation codes.
I'd like to expect that network emulator is working as simulation behaviors.
Thus high resolution timer interrupt is required.
But high resolution timer interrupt derived by high tick frequency (jiffies
clock) must effect the system performance.
Are there any comments or ways to support microsecond event scheduling
without performance degradation?
Regards
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: microsecond event scheduling in an application
2009-09-08 14:27 microsecond event scheduling in an application Junhee Lee
@ 2009-09-20 18:26 ` Robert Hancock
2009-09-20 18:30 ` Arjan van de Ven
0 siblings, 1 reply; 4+ messages in thread
From: Robert Hancock @ 2009-09-20 18:26 UTC (permalink / raw)
To: Junhee Lee; +Cc: linux-kernel
On 09/08/2009 08:27 AM, Junhee Lee wrote:
> I am working on event scheduler which handles events in microsecond level.
> Actual this program is a network emulator using simulation codes.
> I'd like to expect that network emulator is working as simulation behaviors.
> Thus high resolution timer interrupt is required.
> But high resolution timer interrupt derived by high tick frequency (jiffies
> clock) must effect the system performance.
> Are there any comments or ways to support microsecond event scheduling
> without performance degradation?
Just increasing HZ will degrade performance, yes, but we have hrtimers
now which should be able to use granularities smaller than one jiffy, so
it shouldn't be needed..
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: microsecond event scheduling in an application
2009-09-20 18:26 ` Robert Hancock
@ 2009-09-20 18:30 ` Arjan van de Ven
2009-09-22 6:35 ` Junhee Lee
0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2009-09-20 18:30 UTC (permalink / raw)
To: Robert Hancock; +Cc: Junhee Lee, linux-kernel
On Sun, 20 Sep 2009 12:26:09 -0600
Robert Hancock <hancockrwd@gmail.com> wrote:
> On 09/08/2009 08:27 AM, Junhee Lee wrote:
> > I am working on event scheduler which handles events in microsecond
> > level. Actual this program is a network emulator using simulation
> > codes. I'd like to expect that network emulator is working as
> > simulation behaviors. Thus high resolution timer interrupt is
> > required. But high resolution timer interrupt derived by high tick
> > frequency (jiffies clock) must effect the system performance.
> > Are there any comments or ways to support microsecond event
> > scheduling without performance degradation?
>
> Just increasing HZ will degrade performance, yes, but we have
> hrtimers now which should be able to use granularities smaller than
> one jiffy, so it shouldn't be needed..
select/poll use hrtimers, which are jiffies independent....
you'll be hard pressed to notice jiffies granularity in userspace
nowadays..
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: microsecond event scheduling in an application
2009-09-20 18:30 ` Arjan van de Ven
@ 2009-09-22 6:35 ` Junhee Lee
0 siblings, 0 replies; 4+ messages in thread
From: Junhee Lee @ 2009-09-22 6:35 UTC (permalink / raw)
To: 'Arjan van de Ven', 'Robert Hancock'; +Cc: linux-kernel
Thanks Arjan van de Ven.
Your comment is very useful to me.
Now I am trying to solve microsecond events scheduling using hrtimer.
-----Original Message-----
From: Arjan van de Ven [mailto:arjan@infradead.org]
Sent: Monday, September 21, 2009 3:31 AM
To: Robert Hancock
Cc: Junhee Lee; linux-kernel@vger.kernel.org
Subject: Re: microsecond event scheduling in an application
On Sun, 20 Sep 2009 12:26:09 -0600
Robert Hancock <hancockrwd@gmail.com> wrote:
> On 09/08/2009 08:27 AM, Junhee Lee wrote:
> > I am working on event scheduler which handles events in microsecond
> > level. Actual this program is a network emulator using simulation
> > codes. I'd like to expect that network emulator is working as
> > simulation behaviors. Thus high resolution timer interrupt is
> > required. But high resolution timer interrupt derived by high tick
> > frequency (jiffies clock) must effect the system performance.
> > Are there any comments or ways to support microsecond event
> > scheduling without performance degradation?
>
> Just increasing HZ will degrade performance, yes, but we have
> hrtimers now which should be able to use granularities smaller than
> one jiffy, so it shouldn't be needed..
select/poll use hrtimers, which are jiffies independent....
you'll be hard pressed to notice jiffies granularity in userspace
nowadays..
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-22 6:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-08 14:27 microsecond event scheduling in an application Junhee Lee
2009-09-20 18:26 ` Robert Hancock
2009-09-20 18:30 ` Arjan van de Ven
2009-09-22 6:35 ` Junhee Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox