Gentoo Archives: gentoo-performance

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-performance@l.g.o
Subject: [gentoo-performance] Horrible performance
Date: Wed, 25 Aug 2010 02:04:30
Message-Id: 201008250332.41632.wonko@wonkology.org
In Reply to: [gentoo-performance] Re: Bad desktop performance, I think by Alex Schuster
1 Me again.
2
3 I wrote here about my problems with mplayer stuttering during emerges.
4 Then I wrote that the problem went away when I installed Gentoo again,
5 moving from i686 to x86_64. But the problems are back, and worse than
6 ever. This is driving me crazy. CRAZY!
7
8 I have an AMD Athlon(tm) Dual Core Processor 4850e CPU, on-board Radeon HD
9 3200 graphics, 4GB of memory, an 1.5 TB drive. Lots of LVM volumes, all
10 encrypted, except for /usr/src and portage stuff. The system is ~amd64,
11 and I have -march=k8-sse3 in my CFLAGS. Current kernel is 2.6.34-tuxonice,
12 but I also tried others. I'm running KDE4 with desktop effects enabled, X
13 itself takes about 30-40% of CPU time according to top. After system
14 startup and login into KDE, 3.5G of RAM are occupied. This increases after
15 a while, and I need swap space. Nothing to worry about I think.
16
17 Performance does not feel too bad at first. But after a while, I cannot
18 even play videos during emerges. The playback stutters, sometimes I have
19 pauses for several seconds. As long as there is no swap space occpied,
20 it's not so bad I think. Maybe I have a probelm with disk I/O, and things
21 get much worse when swapping occurs. When I look at iotop, I see
22 various programs like chromium and various KDE applications appear. I
23 guess that's normal, but should not be noticeable. Hey, there were times
24 when I created a 2G tmpfs for /var/tmp/portage, with only 3G on
25 my 32bit system. BTW, I lowered my swappiness to 10. This helps a little I
26 think, because the swapping occurs later, the system is more responsive.
27
28 And it feels like things get worse and worse, it's not like there was a
29 specific point when I thought it's slow again. Like there were some
30 degragation going on - fragmentation, bitrot, I don't know. It's just how
31 it feels to me.
32
33 I am debugging this for some days now. I tried different kernels, from
34 2.6.29 to 2.6.35, including the kernel I had running after the switch to
35 64bit, when I thought all was fine. No change. But all kernels were
36 configured nearly identical, so I booted a GRML live-cd and used this
37 kernel .config as a template. Does not feel better.
38
39 When I thought the problem was gone, I had installed the system on my 2nd
40 1.5 TB drive. Meanwhile I copied the partitions back to the 1st drive, so
41 I suspected a difference in the drives. I use the 2nd drive for backups
42 (using rdiff-backup), with similar partitions, so I only have to exchange
43 the LVM volume group names of the two drives in order to run my system
44 from the 2nd one. I tried this, but it did not help.
45
46 And I have similar problems when copying data between some old PATA
47 drives. When I copy stuff and do a mkfs on another partition, mplayer
48 sometimes stutters and hangs for ten seconds. No joy. Working with KDE
49 sucks, switching dektops sometimes takes ages, and even now I am typing
50 faster than kmail can display the characters. That's with am emerge of
51 chromium running, with PORTAGE_NICENESS=10 and using ionice -c 3. Load is
52 around 8, but sometimes gets even higher. And then, load suddenly drops
53 back to lower values, as if somthing was blocking. Some applications
54 swapping, maybe.
55
56 Now I am out of ideas. I really hope someone here has one. I cannot work
57 with this system any more when emerges are going on.
58
59 I put my kernel config, make.conf, dmesg and such stuff to
60 http://www.wonkology.org/gentoo/ in case someone wants to have a look at
61 it. Any help is GREATLY appreciated.
62
63 Wonko

Replies

Subject Author
Re: [gentoo-performance] Horrible performance "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-performance] Horrible performance Mansour Moufid <mansourmoufid@×××××.com>
Re: [gentoo-performance] Horrible performance "Kacper Kopczyński" <capsel@××××××××××××.pl>
Re: [gentoo-performance] Horrible performance Alex Schuster <wonko@×××××××××.org>