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