From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SRRxi-0005Ga-FT for garchives@archives.gentoo.org; Mon, 07 May 2012 17:43:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F12CE087D; Mon, 7 May 2012 17:42:37 +0000 (UTC) Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 1C5E1E0824 for ; Mon, 7 May 2012 17:39:54 +0000 (UTC) Received: by qcsk26 with SMTP id k26so3741332qcs.40 for ; Mon, 07 May 2012 10:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=eUs8BTUbnS/mC45A2ybxxxLdpQXNndeByab33oIlqeI=; b=SDI8VcPg8JIGsmEe9uKjYJ19V2dMoeek98XECdQdmtyWqp9420VnggqgfMB/Ct6J2T PZKC8RBhEjr/8xWyw2vYjze9ldEAfvb2Ex08VH0PwbXCMZWms1JJAOLmUe3nyNPgr64W 9E80Kakm1wfUI844pWtxt86qYLK8DdKImwsSg04Pq7bOc5N2Aww4bdnNO1cn61b8bij0 SF3hPytVrwgJvkYiyX4i16P9hl4br/p8vg+ethR+SZEwRY0K5iQYxRHBTYeBc9OWwJH0 ZpaZCtKOsMl5iglbDjiEPc5Jl/wxNA3mUSQeB/o/FdFBo6+c67tV6VAvATXGo0N9KyGA LYnA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.229.136.79 with SMTP id q15mr7671995qct.56.1336412394613; Mon, 07 May 2012 10:39:54 -0700 (PDT) Received: by 10.229.236.136 with HTTP; Mon, 7 May 2012 10:39:54 -0700 (PDT) In-Reply-To: <20120507144134.4ea24fc3@weird.wonkology.org> References: <20120216162948.7eea6070@weird.wonkology.org> <20120218180407.74055f5e@weird.wonkology.org> <20120218220521.1278e023@bluewin.ch> <1705219.vsiCQe2Sr8@weird> <20120507144134.4ea24fc3@weird.wonkology.org> Date: Mon, 7 May 2012 10:39:54 -0700 Message-ID: Subject: Re: [gentoo-user] I want to play movies without hangs From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ed5784b2-2479-4d58-88c8-eca3bc3ee451 X-Archives-Hash: 469cb3faa90cf98e15e56a5982778bd9 On Mon, May 7, 2012 at 5:41 AM, Alex Schuster wrote: > Some while ago, I wrote: > > [ > mplayer stutters when I/O is going on, even hangs for seconds when I do a > dd if=3D/dev/zero of=3Dsomefile bs=3D1M > ] > >> 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. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Wonko > 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