public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Billy Biggs <vektor@dumbterm.net>
To: Con Kolivas <kernel@kolivas.org>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: tvtime and the Linux 2.6 scheduler
Date: Sun, 23 May 2004 12:20:13 -0500	[thread overview]
Message-ID: <20040523172013.GD22399@dumbterm.net> (raw)
In-Reply-To: <200405240254.20171.kernel@kolivas.org>

  Hi Con, thanks for your reply.

Con Kolivas (kernel@kolivas.org):

> A program running as sched_fifo it will preempt absolutely everything
> regardless of how it behaves. It sounds like it's giving X less cpu
> time to draw the frame each time until eventually the processing fails
> to capture the frame and then X smooths out again. I cant pretend to
> understand how your application blocks (as you say) between X and
> tvtime, but does tvtime not try to schedule until X has finished using
> up cpu or will it just run off the timer and preempt X away? You say
> changing priorities doesnt help, but I cant tell if you tried this:
> run the processing sched_normal at lower priority than X.

  We call XvShmPutImage and then do an XSync, which will wait until X
sends a message indicating it has processed all outstanding requests.
The XvShmPutImage uploads the image to video memory immediately, so the
call to XSync blocks us until it is complete.  We are not preempting the
X server.

  I will get accurate information about the priorities of all processes
involved here.

  -Billy


  reply	other threads:[~2004-05-23 17:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-23 15:48 tvtime and the Linux 2.6 scheduler Billy Biggs
2004-05-23 16:20 ` Jose Luis Domingo Lopez
2004-05-23 16:54 ` Con Kolivas
2004-05-23 17:20   ` Billy Biggs [this message]
2004-05-23 21:03   ` Oswald Buddenhagen
2004-05-24  8:43   ` Ingo Molnar
2004-05-24  6:58     ` Nick Piggin
2004-05-24  9:12       ` Ingo Molnar
2004-05-24  7:14         ` Nick Piggin
2004-05-24  9:34         ` Ingo Molnar
2004-05-23 22:49 ` szonyi calin
2004-05-24 19:38   ` Bill Davidsen
2004-05-25  8:49     ` Tobias Diedrich
2004-05-24  9:20 ` Ingo Molnar
2004-05-24 11:45   ` Oswald Buddenhagen
2004-05-27 11:35 ` Redeeman

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=20040523172013.GD22399@dumbterm.net \
    --to=vektor@dumbterm.net \
    --cc=kernel@kolivas.org \
    --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