mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Davide Libenzi <davidel@xmailserver.org>
To: Chris Friesen <cfriesen@nortelnetworks.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: question on incoming packets and scheduler
Date: Wed, 15 Oct 2003 10:39:08 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.56.0310151035480.2144@bigblue.dev.mdolabs.com> (raw)
In-Reply-To: <3F8CA55C.1080203@nortelnetworks.com>

On Tue, 14 Oct 2003, Chris Friesen wrote:

>
> I have a long-running cpu hog background task, and a high-priority
> critical task that waits on a socket for network traffic.  When a packet
> comes in, I'd like the cpu hog to be swapped out ASAP, rather than
> waiting for the end of the timeslice.  Is there any way to make this happen?
>
> The code paths that I managed to trace didn't seem to be calling the
> scheduler to force the context switch.  Hopefully I missed something.

What do you mean for high priority? Is it an RT task? The wakeup (AKA
inserion in the run queue) happen soon :
IRQ->do_IRQ->softirq->net_rx_action->ip_rcv->...
but if your task is not RT there no guarantee that it'll preempt the
current running.



- Davide


  parent reply	other threads:[~2003-10-15 17:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15  1:39 Chris Friesen
2003-10-15  3:42 ` Chris Friesen
2003-10-15 17:39 ` Davide Libenzi [this message]
2003-10-15 18:17   ` Chris Friesen
2003-10-15 18:35     ` Davide Libenzi
2003-10-15 20:13       ` Chris Friesen
2003-10-15 20:27         ` Andrew R. Reiter
2003-10-15 20:53         ` Chris Friesen

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=Pine.LNX.4.56.0310151035480.2144@bigblue.dev.mdolabs.com \
    --to=davidel@xmailserver.org \
    --cc=cfriesen@nortelnetworks.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®