From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] I want to play movies without hangs
Date: Mon, 7 May 2012 20:52:31 +0200 [thread overview]
Message-ID: <20120507205231.616298ec@weird.wonkology.org> (raw)
In-Reply-To: <4FA7FBD5.9030103@hadt.biz>
Michael Hampicke writes:
> Am 07.05.2012 18:26, schrieb Volker Armin Hemmann:
> > Am Montag, 7. Mai 2012, 14:41:34 schrieb Alex Schuster:
> >> Some while ago, I wrote:
> >>
> >> [
> >> mplayer stutters when I/O is going on, even hangs for seconds when I
> >> do a dd if=/dev/zero of=somefile bs=1M
> >> ]
[...]
> >> But now I found another solution: NOT USING KDE.
> >>
> >> When X crashed (trying to make the old Unreal game play), I fired up
> >> another window manager, and when I played a video in there, there
> >> was no problem at all. So, I have another workaround.
> >>
> >> But does anyone have an idea, why running KDE is the problem?
> >> Disabling desktop effects does not help.
> >
> > nepomuk/virtuoso running in the background
> >
> > whenever you have more than 1 process doing IO linux sucks ass.
> >
> > Now, you write to a partition, nepomuk tries to index it (1 read) and
> > your player reading the video file (2nd read). Interactivity is shot.
> >
> > Pause/kill nepomuk and look if it helps.
Nice shot, but this cannot be the problem. Sorry, now that I read my post
again I see I did not mention that I _still_ have KDE running all the
time, doing whatever it does. I only need to play the videos outside in a
window manager I have running in parallel.
And the output of my dd action goes to another partition anyway, which is
not being indexed. I have 280,000 files indexed, a plain locate gives
nearly ten times as much.
Virtuoso has been a big pain in the past indeed. So I had it disabled
until KDE 4.8 I think. It does some indexing now when I log in, and it is
still doing so 8 hours after I logged in the last time, but I do not
notice this much, since KDE 4.8. Whether it affects my video playback I'm
not so sure, but I have the playback problems even when it is not running
- there's too much stuff going on all the time.
> > For me the worst case is: writing lots of files on a usb device -
> > sucks everywhere, even on a vt.
Indeed. But should this affect an mplayer using a huge cache?
Does it also suck when you are writing with cp, using ionice -c 3?
> Maybe changing the kernel io scheduler will help?
>
> # /usr/src/linux/Documentation/block/switching-sched.txt
> # /usr/src/linux/Documentation/block/deadline-iosched.txt
> # /usr/src/linux/Documentation/block/cfq-iosched.txt
Nope. I just tried noop and deadline (cfq is my default) and did not see
much of a difference.
Wonko
next prev parent reply other threads:[~2012-05-07 18:54 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 15:29 [gentoo-user] I want to play movies without hangs Alex Schuster
2012-02-16 16:04 ` Mark Knecht
2012-02-16 17:34 ` Alex Schuster
2012-02-16 17:45 ` Mark Knecht
2012-02-16 16:23 ` Paul Hartman
2012-02-16 16:49 ` Alex Schuster
2012-02-16 17:21 ` Paul Hartman
2012-02-18 3:13 ` Alex Schuster
2012-02-18 2:13 ` Walter Dnes
2012-02-18 5:45 ` Alex Schuster
2012-02-18 13:25 ` James Broadhead
2012-02-18 17:04 ` Alex Schuster
2012-02-19 0:05 ` Urs Schutz
2012-02-19 0:35 ` Alex Schuster
2012-05-07 12:41 ` Alex Schuster
2012-05-07 16:26 ` Volker Armin Hemmann
2012-05-07 16:44 ` Michael Hampicke
2012-05-07 17:14 ` Volker Armin Hemmann
2012-05-07 17:25 ` Michael Hampicke
2012-05-07 17:39 ` Volker Armin Hemmann
2012-05-07 22:56 ` [gentoo-user] " walt
2012-05-07 23:13 ` Volker Armin Hemmann
2012-05-07 23:56 ` walt
2012-05-08 15:05 ` Volker Armin Hemmann
2012-05-07 18:52 ` Alex Schuster [this message]
2012-05-07 17:39 ` [gentoo-user] " Mark Knecht
2012-05-07 21:11 ` Alex Schuster
2012-05-09 19:44 ` Alex Schuster
2012-05-09 20:38 ` Neil Bothwick
2012-05-10 1:00 ` Alex Schuster
2012-05-10 2:09 ` Dale
2012-05-10 2:40 ` Adam Carter
2012-05-10 7:53 ` Dale
2012-05-13 0:34 ` Alex Schuster
2012-05-13 0:47 ` Michael Mol
2012-05-13 0:58 ` Alex Schuster
2012-05-13 1:04 ` Michael Mol
2012-05-17 13:21 ` Alex Schuster
2012-05-17 13:51 ` Mark Knecht
2012-05-17 14:13 ` Michael Mol
2012-05-17 16:05 ` Mark Knecht
2012-05-20 9:35 ` Alex Schuster
2012-05-10 3:59 ` Adam Carter
2012-05-10 8:02 ` Michael Hampicke
2012-05-10 22:45 ` Paul Hartman
2012-05-10 23:23 ` Alex Schuster
2012-05-12 1:40 ` [gentoo-user] I want to play movies without hangs [SOLVED, sort of] Alex Schuster
2012-05-12 13:36 ` Norman Invasion
2012-05-12 15:05 ` Alex Schuster
2012-05-12 15:41 ` Norman Invasion
2012-05-13 8:56 ` Alan McKinnon
2012-05-13 18:12 ` Michael Mol
2012-05-13 20:53 ` Alan McKinnon
2012-05-13 21:01 ` Michael Mol
2012-05-13 21:33 ` Alan McKinnon
2012-05-13 22:03 ` Michael Mol
2012-05-13 23:27 ` Alan McKinnon
2012-05-13 23:54 ` Michael Mol
2012-05-14 22:28 ` Paul Hartman
2012-05-15 10:24 ` Alex Schuster
2012-05-07 20:43 ` [gentoo-user] I want to play movies without hangs Dale
2012-05-07 21:09 ` Alex Schuster
2012-05-07 21:16 ` Stroller
2012-05-08 20:43 ` Simon
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=20120507205231.616298ec@weird.wonkology.org \
--to=wonko@wonkology.org \
--cc=gentoo-user@lists.gentoo.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