From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] I want to play movies without hangs
Date: Mon, 7 May 2012 10:39:54 -0700 [thread overview]
Message-ID: <CAK2H+efa35rZyLfB9cSbsQ4=+VETfAWcAg+9wRM-KQVCza3t1g@mail.gmail.com> (raw)
In-Reply-To: <20120507144134.4ea24fc3@weird.wonkology.org>
On Mon, May 7, 2012 at 5:41 AM, Alex Schuster <wonko@wonkology.org> wrote:
> 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
> ]
>
>> Urs Schutz writes:
>>
>> > Just an idea: Is the disk OK? Replace /dev/sda with your
>> > disk...
> [...]
>> > I had a bad disk here, which resulted in slow IO, but not
>> > complete failure. Smart detected this immediately. Sorry,
>> > I do not know how to check disks with LVM.
>>
>> Didn't you get errors in yslog then?
>>
>> I also thought about swapping the system drive - I have a larger backup
>> drive, with nearly identical logical volumes on it, where I make
>> backups with rdiffbackup. So even the content is identical, except for
>> an additional rdiff-backup directory containing the increments. So all
>> I have to do is to echange the two volume group names, reboot, and the
>> system will run from the other drive. But I very much doubt this will
>> help, transfer speed looks okay to me, around 100 MB/s with dd.
>
> I did it in another way. I created a large file system (LVM) on my 2nd
> drive, copied /, /usr, /var, /opt and /home over. My whole system is
> encrypted, but I omitted this, just to make sure this is not the
> bottleneck.
>
> Alas, no change. Another thing I tried was to change the SATA mode in my
> BIOS from AHCI to whatever the other option is. This did not help either.
>
> Now this is really annoying. I watch small clips mostly, and can live
> with that, and when I want to watch stuff with others, I copy the file to
> tmpfs, which seems to help a lot.
>
> 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.
>
> I must be totally crazy because I still want to use KDE, despite the big
> trouble it gives me nearly every day. Yes, most things work fine now, but
> there are many many little problems, daily application crashes, and every
> time I log in I fear that the desktop won't come up. 8G of RAM was not
> enough to avoid swapping, so now I have 16G, that's fine, I no longer
> care about kwin using 1G of my RAM. Oh, and I no longer use KMail, after
> it ate thousands of mails I just wanted to move. No problem, they were
> not important, but I no longer trust the KDEPIM suite. And it seems the
> developers do not care about this, the bug report got no replies.
>
> But anyway. Any idea why it only happens with KDE? I will ask on the KDE
> mailing list, but I thought I post here first, maybe there's something
> Gentoo-specific going on here.
>
> Wonko
>
Hey Wonko,
OK, fire up two terminals. In one run top, hit 1 & z so you see all
your CPUs and then watch CPU usage. In the second terminal su to root
and run iotop -o. Now, watch for a few minutes and get a feel for
what's going on when video is not running. Then start your video and
watch IO usage and CPU usage. Where's the problem?
Once you get an idea where the bottleneck is we can address what a
solution might be. In general, if the CPUs aren't maxed out and it's
an I/O problem then usually a bit more buffering is a simple solution.
Other more draconian solution might be a real-time kernel with a
player (if there is one) that is set up for real-time playback.
Looking forward to hearing your test results.
Cheers,
Mark
next prev parent reply other threads:[~2012-05-07 17:43 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 ` [gentoo-user] " Alex Schuster
2012-05-07 17:39 ` Mark Knecht [this message]
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='CAK2H+efa35rZyLfB9cSbsQ4=+VETfAWcAg+9wRM-KQVCza3t1g@mail.gmail.com' \
--to=markknecht@gmail.com \
--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