From: "Sirotkin, Alexander" <demiurg@ti.com>
To: Jun Sun <jsun@mvista.com>
Cc: linux-mips@linux-mips.org
Subject: Re: tasklet latency and system calls on mips
Date: Mon, 18 Aug 2003 18:29:52 +0300 [thread overview]
Message-ID: <3F40F0F0.1080106@ti.com> (raw)
In-Reply-To: <20030814094515.B1203@mvista.com>
[-- Attachment #1: Type: text/plain, Size: 1778 bytes --]
Jun Sun wrote:
On Thu, Aug 14, 2003 at 12:17:52PM +0300, Sirotkin, Alexander wrote:
I suspect that what happens is as follows :
system call arrives and while it's being processed and interrupt to one
of the drivers arrives. This interrupt
schedules a tasklet which however is not executed after the system call
finishes,
The tasklet should be executed at the return of interrupt handling.
If not, there is a bug.
I have a feeling that we are going in circles. Tasklets are executed at
the return of interrupt handler.
However, I suspect that this is not enough. On mips (contrary to x86),
system call is NOT an interrupt.
It's a different exception with different handler. Therefore I suspect
that tasklets are NOT called at
the end of system call exception handler (which is a different handler,
not do_IRQ).
only after the next timer
interrupt which causes up to 10 ms latency (not all the time, only when
somebody makes a system call).
BTW, make sure tasklet_schedule() is indeed called in an interrupt
handler.
I am not sure why will happen otherwise.
If you suspect it is a bug, you can easily trace them. You may my
little tracing tool useful,
I can try to trace it, I just wanted to ensure that what I was saying
makes sense. See above.
http://linux.junsun.net/patches/generic/experimental/030716.a-jstrace.pa
tch
<http://linux.junsun.net/patches/generic/experimental/030716.a-jstrace.p
atch>
Jun
--
Alexander Sirotkin
SW Engineer
Texas Instruments
Broadband Communications Israel (BCIL)
Tel: +972-9-9706587
________________________________________________________________________
"Those who do not understand Unix are condemned to reinvent it, poorly."
-- Henry Spencer
[-- Attachment #2: Type: text/html, Size: 2505 bytes --]
next prev parent reply other threads:[~2003-08-18 16:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-13 13:46 tasklet latency and system calls on mips Sirotkin, Alexander
2003-08-13 16:54 ` Jun Sun
2003-08-14 9:17 ` Sirotkin, Alexander
2003-08-14 16:45 ` Jun Sun
2003-08-18 15:29 ` Sirotkin, Alexander [this message]
2003-08-18 17:08 ` Jun Sun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F40F0F0.1080106@ti.com \
--to=demiurg@ti.com \
--cc=jsun@mvista.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.