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 1SRT4q-0001C7-OP for garchives@archives.gentoo.org; Mon, 07 May 2012 18:54:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7281E077C; Mon, 7 May 2012 18:54:14 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id 287DDE06FC for ; Mon, 7 May 2012 18:52:33 +0000 (UTC) Received: from weird.wonkology.org (xdsl-78-35-174-101.netcologne.de [78.35.174.101]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id CDB1ADC041 for ; Mon, 7 May 2012 20:52:32 +0200 (CEST) Date: Mon, 7 May 2012 20:52:31 +0200 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] I want to play movies without hangs Message-ID: <20120507205231.616298ec@weird.wonkology.org> In-Reply-To: <4FA7FBD5.9030103@hadt.biz> References: <20120216162948.7eea6070@weird.wonkology.org> <1705219.vsiCQe2Sr8@weird> <20120507144134.4ea24fc3@weird.wonkology.org> <7661425.dpRk3J8nd2@energy> <4FA7FBD5.9030103@hadt.biz> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: d57727fa-ba11-4c9a-805d-161c32fe668f X-Archives-Hash: bb141ed3d85dcff1bb266282e2448a12 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