public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Denis Vlasenko <vda.linux@googlemail.com>
To: Eric Piel <Eric.Piel@tremplin-utc.net>
Cc: mplayer-users@mplayerhq.hu, linux-kernel@vger.kernel.org
Subject: Re: mplayer + heavy io: why ionice doesn't help?
Date: Sat, 19 Aug 2006 20:04:10 +0200	[thread overview]
Message-ID: <200608192004.10326.vda.linux@googlemail.com> (raw)
In-Reply-To: <44E6006C.2030406@tremplin-utc.net>

On Friday 18 August 2006 20:01, Eric Piel wrote:
> 08/18/2006 07:37 PM, Denis Vlasenko wrote/a écrit:
> > Hi,
> > 
> > I noticed that mplayer's video playback starts to skip
> > if I do some serious copying or grepping on the disk
> > with movie being played from.
> > 
> > nice helps, but does not eliminate the problem.
> > I guessed that this is a problem with mplayer
> > failing to read next portion of input data in time,
> > so I used Jens's ionice.c from
> > Documentation/block/ioprio.txt
> > 
> > I am using it this:
> > 
> > ionice -c1 -n0 -p<mplayer pid>
> > 
> > but so far I don't see any effect from using it.
> > mplayer still skips.
> > 
> > Does anybody have an experience in this?
> Hello
> 
> IOnice only works with CFQ, have you checked that you are using the CFQ 
> IO scheduler?
> # cat /sys/block/hda/queue/scheduler   #put the name of YOUR harddisk
> 
> In case it's not the default IO scheduler, you can change it with:
> # echo cfq > /sys/block/hda/queue/scheduler

Thanks!

It helps. mplayer skips much less, but still some skipping is present.
I experimented with forcing entire file to be present in the
pagecache, and in this case mplayer almost never skips.

Looks like mplayer have very little tolerance for reads
randomly taking more time to read input stream.

However, I then looked into the mplayer's source
(I wondered why it doesn't do read buffering itself)...

The code is, um, less than pretty.
--
vda

  reply	other threads:[~2006-08-19 18:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-18 17:37 mplayer + heavy io: why ionice doesn't help? Denis Vlasenko
2006-08-18 17:57 ` Nick Warne
2006-08-18 18:01 ` Eric Piel
2006-08-19 18:04   ` Denis Vlasenko [this message]
2006-08-20  8:22     ` Jan Engelhardt
2006-08-20 14:43       ` Lee Revell
2006-08-20 16:43         ` Denis Vlasenko
2006-08-20 21:36           ` Lee Revell
2006-08-20 22:04             ` Jan Engelhardt
2006-08-22 16:26             ` Denis Vlasenko
2006-08-22 17:37               ` Jan Engelhardt
2006-08-22 17:38               ` Xavier Bestel

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=200608192004.10326.vda.linux@googlemail.com \
    --to=vda.linux@googlemail.com \
    --cc=Eric.Piel@tremplin-utc.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mplayer-users@mplayerhq.hu \
    /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