Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: Interrupt l...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 22 of 29 Topic 4575 of 4822
Post > Topic >>

Re: Interrupt latency

by Stargazer <spamtrap@[EMAIL PROTECTED] > Mar 18, 2008 at 02:03 AM

On Mar 17, 3:08 pm, (Patrick Klos) <spamt...@[EMAIL PROTECTED]
> wrote:
> In article
<7366de24-bc1c-47f1-9fc1-6de7d66d6...@[EMAIL PROTECTED]
>,
> Stargazer   <spamt...@[EMAIL PROTECTED]
> wrote:
>
> >Hi,
>
> >I am writing my own real-time kernel for x86. Now I face something
> >really strange (or may be rather it's not; it has been some time since
> >I was in the details of x86 microarchitecture).
>
> >I measured CPU clocks elapsed between the first assembly instruction
> >executed at interrupt's entry point in IDT and beginning of the C code
> >of user-defined interrupt handler and the result was a big
> >surprise :-) It took about 2500 cycles despite that I have only a
> >handful of assembly instructions before a call to user-supplied IRQ
> >handler.
>
> >A little more testing showed that almost all cycles (2300+) were spent
> >at access to a global variable (via ds:[] addressing).
>
> Is this a SINGLE memory access or several/many accesses?

It's a single read-modify-write instruction (see "inc [xxx]" in the
posted code). I don't know how would you define it, just hope that
there isn't some fancy incrementer in memory controller :-) Normal
single memory accesses which I also do (see "bt" and 2 "mov"s after
"rdtsc") don't cause anything unexpected.


D
 




 29 Posts in Topic:
Interrupt latency
Stargazer <spamtrap@[  2008-03-16 16:02:18 
Re: Interrupt latency
Didi <spamtrap@[EMAIL  2008-03-16 18:27:36 
Re: Interrupt latency
"Alexei A. Frounze&q  2008-03-16 17:38:55 
Re: Interrupt latency
Tim Wescott <spamtrap  2008-03-16 19:33:53 
Re: Interrupt latency
larwe <spamtrap@[EMAI  2008-03-16 19:01:26 
Re: Interrupt latency
Vladimir Vassilevsky <  2008-03-17 00:54:34 
Re: Interrupt latency
Cyril Novikov <spamtr  2008-03-16 21:00:13 
Re: Interrupt latency
Stargazer <spamtrap@[  2008-03-17 05:50:48 
Re: Interrupt latency
"Wolfgang Kern"  2008-03-17 11:12:24 
Re: Interrupt latency
Stargazer <spamtrap@[  2008-03-17 05:41:15 
Re: Interrupt latency
"Wolfgang Kern"  2008-03-17 11:12:24 
Re: Interrupt latency
Stargazer <spamtrap@[  2008-03-17 06:16:07 
Re: Interrupt latency
Cyril Novikov <spamtr  2008-03-17 18:44:18 
Re: Interrupt latency
"Wolfgang Kern"  2008-03-18 13:25:34 
Re: Interrupt latency
(Patrick Klos) <spamtr  2008-03-17 13:08:46 
Re: Interrupt latency
"tbroberg_nospam@[EM  2008-03-17 11:11:13 
Re: Interrupt latency
"Marven Lee" &  2008-03-17 20:06:44 
Re: Interrupt latency
Stargazer <spamtrap@[  2008-03-18 02:08:36 
Re: Interrupt latency
Timothy Baldwin <spam  2008-03-19 00:38:20 
Re: Interrupt latency
Tim Roberts <spamtrap  2008-03-19 05:05:43 
Re: Interrupt latency
Cyril Novikov <spamtr  2008-03-19 06:58:44 
Re: Interrupt latency
Stargazer <spamtrap@[  2008-03-18 02:03:22 
Re: Interrupt latency
Stargazer <spamtrap@[  2008-03-18 01:58:38 
Re: Interrupt latency
"Wolfgang Kern"  2008-03-19 00:12:52 
Re: Interrupt latency
Stargazer <spamtrap@[  2008-03-18 02:12:51 
Re: Interrupt latency
Matt <spamtrap@[EMAIL  2008-03-18 17:26:13 
Re: Interrupt latency
James Harris <spamtra  2008-03-19 08:42:21 
Re: Interrupt latency
Cranky <spamtrap@[EMA  2008-03-20 10:37:11 
Re: Interrupt latency
"Ignacio G.T."   2008-03-24 16:13:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 12:41:44 CDT 2008.