Am 18.09.2010 22:19, schrieb Alex Schuster:
[...]
>
> I used to restart kdm once per day in order to free memory. If I did not
> do this, KDE4 became nearly unsusabe.
>
Yeah, logout - logon seems to resolve my problem temporarily, as well.
> 
> Now this looks different here. I have X with 946M, plasma-desktop with 
> 505M, that's 15 times the memory you need. Then comes java with 371M (for 
> TV-Browser - yes, 371MB just for showing the TV programme!), emerge wants 
> 272M while emerging openoffice. Chromium also needs much memory, my 33 
> tabs want 762M:

Wow, especially X's usage makes me wonder whether this is a kernel bug.

> 
> Which is another problem I think. One question is how KDE4 can need such a 
> lot of memory, the other is how the system can become so unresponsive once 
> its starts swapping. I used to have larger swap with less RAM, and did not 
> have those performance problems. One year ago I usually had 2G tmpfs for 
> /var/tmp/portage, nowadays (with 4G) I cannot emerge things while working 
> with the system (like, watching videos with mplayer). It feels like as 
> soon as RAM is not enough and swapping occurs, the system swaps stuff that 
> it will need again immediately.

Hmm, maybe it is the usage pattern that matters. I guess X (or whatever
gets swapped out in your case) wants to access all the data, maybe for a
cyclic refresh or something, it blocks for some time.

That's the good thing about normal memory leaks: Whatever is leaked, it
is normally not accessed again, anyway.

> 
> The system is an AMD Athlon 4850e (2 cores, 2500MHz) with 4GB of RAM. 
> Everything is on LVM, most partitions are LUKS-encrypted. /var/tmp/portage 
> is unencrypted, and at the moment swap is also not encrypted and on my 2nd 
> drive. The encryption does not be much of an overhead, when the system 
> stutters, top shows a large wa(it) value, and not much CPU usage. swappiness
> is set to 10.
> 

My system is nearly completely on LUKS and LVM. That doesn't seem to be
the problym in my case, either.

> Any ideas? I might just get another 2G, and then the problems will be gone,
> but I think this would be only a workaround. 6G should be enough already
> even when using lots of applications, shouldn't it`?
> 
> BTW, I emerged and tried KDE 3.5 a week ago. Cool, things were fast
> there. Probably because it needs less memory. But I don't want to go back.
> 

The interesting thing is that I have a netbook with a minimal KDE-4 on
it. It doesn't need more than 150M of its 512M memory. Of course it
doesn't have Semantic Desktop and all that but it still works good and
is responsive as hell.


Reply via email to