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 1Ry3IU-0006Pv-5I for garchives@archives.gentoo.org; Thu, 16 Feb 2012 15:31:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 317F9E0CC9; Thu, 16 Feb 2012 15:30:52 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id 0E55AE0525 for ; Thu, 16 Feb 2012 15:29:52 +0000 (UTC) Received: from weird.wonkology.org (xdsl-78-35-181-142.netcologne.de [78.35.181.142]) (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 2E231DC04C for ; Thu, 16 Feb 2012 16:29:52 +0100 (CET) Date: Thu, 16 Feb 2012 16:29:48 +0100 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] I want to play movies without hangs Message-ID: <20120216162948.7eea6070@weird.wonkology.org> 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: 69871bc2-9c1d-4b52-b24d-a789d20e01fe X-Archives-Hash: a55467478431ac447c01c2e5ce3771b8 Hi there! Strange things are going on here. I've written here in the past about my performance problems. My dual-core had trouble playing movies without stuttering when there was I/O. It was mainly swapping that caused this, and 8 G were not enough for me running KDE4. Then my hardware broke, and I got new one, except for the system hard drive and the PSU. It's an AMD FX-4100 quad-core with 3.6 GHz, 16 G of RAM. Running gentoo-sources-3.2.1 as kernel. But it seems playing movies got even worse! The videos do not need to have high quality. When I do this, I get interruptions, sometimes for more than a whole second: # dd if=/dev/zero of=/tmp/argh bs=10M count=1000 My whole system is encrypted, but the same happens with unencrypted partitions. All are on LVM. When I write to another drive, there is no effect. Throughput is around 50-60 MB/s. Any ideas where to look? I think I'll create a completely fresh kernel .config with genkernel, maybe my own .config has some weird problem. But I tried similar things in the past already, getting a kernel from a live cd, to no effect. I put cache = 10240 into .mplayer/config to get 10 MB of video cached, but I see no effect. Playing music with Amarok is no problem. My SATA drives are in AHCI mode, here's some dmesg info about that: ahci 0000:00:11.0: version 3.0 ahci 0000:00:11.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 ahci 0000:00:11.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:11.0: flags: 64bit ncq sntf ilck led clo pmp pio slum part ccc sxs scsi0 : ahci scsi1 : ahci scsi2 : ahci scsi3 : ahci ata1: SATA max UDMA/133 abar m1024@0xff70b000 port 0xff70b100 irq 22 ata2: SATA max UDMA/133 abar m1024@0xff70b000 port 0xff70b180 irq 22 ata3: SATA max UDMA/133 abar m1024@0xff70b000 port 0xff70b200 irq 22 ata4: SATA max UDMA/133 abar m1024@0xff70b000 port 0xff70b280 irq 22 ahci 0000:02:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 ahci 0000:02:00.0: irq 43 for MSI/MSI-X ahci: SSS flag set, parallel bus scan disabled ahci 0000:02:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode ahci 0000:02:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs ahci 0000:02:00.0: setting latency timer to 64 scsi4 : ahci scsi5 : ahci ata5: SATA max UDMA/133 abar m512@0xff600000 port 0xff600100 irq 43 ata6: SATA max UDMA/133 abar m512@0xff600000 port 0xff600180 irq 43 pata_atiixp 0000:00:14.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16 scsi6 : pata_atiixp scsi7 : pata_atiixp ata7: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14 ata8: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15 (ata7/8 is the additional PATA controller, seen with the pata_atiixp driver. I have one drive there, but it is not being used.) When my new girl-friend comes over and we want to watch a movie, and it stutters... she will ask why I don't simply use Windows to get better performance, her five year old PC would do this just fine. Wat do I tell her? WHAT DO I TELL HER?? And then there's what happened yesterday. A world update was going on, with libreoffice, firefox, wine and thunderbird emerging in parallel, all big packages. I have the PORTAGE_TMPDIR on a 5GB tmpfs, only libreoffice is being compiled on disk. Suddenly, my system became very unresponsive, the mouse had disappeared, the KDE widgets did not update, and xosview showed a load of 23. All 4 cores were at 100%, the type of usage was io-wait. How can I find out in such a case which processes are waiting for I/O? top showed nothing. The Ctrl-Esc task viewer of KDE showed some processes being 'inactive on hard drive', does this men those are the waiting tasks? They varied, they were mostly Akonadi stuff. I stopped akonadi, and after a while the load dropped. But this may be a coincidence. After all had calmed down, I had 2G of swap in use. 16G total RAM, all being used of course, but only 8G being needed according to the -/+ buffers/cache line in free -m, the other 8G are cache. Does my Linux somehow prefer to have this much cache, even if tmpfs stuff gets put into swap? I have vm.swappiness = 0 in /etc/sysctl.conf. Is there a command to show me what processes the memory in swap belongs to? Wonko