public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] I want to play movies without hangs
@ 2012-02-16 15:29 Alex Schuster
  2012-02-16 16:04 ` Mark Knecht
                   ` (2 more replies)
  0 siblings, 3 replies; 64+ messages in thread
From: Alex Schuster @ 2012-02-16 15:29 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 64+ messages in thread

end of thread, other threads:[~2012-05-20  9:37 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox