1 |
On Wed, May 25, 2011 at 9:20 AM, Alex Schuster <wonko@×××××××××.org> wrote: |
2 |
> Hi there! |
3 |
> |
4 |
> I still wonder why my KDE4 system starts swapping so early. Until a week |
5 |
> ago, I had 6G of RAM, but after a day of being logged in, I usually had some |
6 |
> swap usage. Sometimes this goes up to 1.5G, this is when the system becomes |
7 |
> way too slow and I log out. |
8 |
|
9 |
I can't remember the last time my swap was used at all. I have 12G of |
10 |
RAM, but in my prior system with 8G it was the same. Only in a rare |
11 |
case when some program had run-away memory usage/memory leak did I |
12 |
ever get to swap usage... I'm using vanilla kernel 2.6.39 with no |
13 |
patches, no BFS. And I use proprietary nvidia-drivers. I normally |
14 |
don't have so many programs running at once, but it happens sometimes. |
15 |
|
16 |
Since 2.6.38 and enabling automatic process grouping, I don't use nice |
17 |
or ionice at all anymore. I do parallel emerge with -j along with make |
18 |
-j12 and never notice any slowdown or lag in UI at all. |
19 |
|
20 |
With KDE4 logged in, and no GUI apps running (other than knutmon and |
21 |
wicd), my RAM usage is slightly less than 900M (not counting |
22 |
filesystem caches). |
23 |
|
24 |
>BTW, does anyone else's kwin use 750M? That's pretty high, I think it used |
25 |
>to be more like 300M. |
26 |
|
27 |
My kwin (4.6.3-r1) has currently 507M VIRT, 54M RES, 37M SHR according to top. |
28 |
|
29 |
My worst memory offenders, by resident memory: |
30 |
clamd 124M |
31 |
denyhosts 114M |
32 |
X 75M |
33 |
plasma-desktop 56M |
34 |
|
35 |
By virtual memory: |
36 |
krunner 964M |
37 |
wicd-client (python) 681M |
38 |
plasma-desktop 643M |
39 |
kded4 581M |
40 |
|
41 |
>Or I do a 'swapoff -a && swapon -a', this empties the swap and also |
42 |
>frees memory. But this takes _quite_ _a_ _while_. Once I measured 37 minutes |
43 |
>to clear 1G of swap. |
44 |
|
45 |
My PC doesn't swap, but in my Nokia N900, it runs Linux and X, heavy |
46 |
use of gtk and Qt4 libs, it has 256M of RAM and 768M of swap on eMMC |
47 |
(transfer rate about 20MB/sec). It swaps like crazy. :) Usually there |
48 |
is more swap in use than RAM, actually. |
49 |
|
50 |
When I move the swap to a slow SD card instead (2MB/sec transfer |
51 |
rate), even in that slow device, swapoff on the eMMC swap partition |
52 |
with ~500M in-use takes about 2 or 3 minutes at most with the data |
53 |
being swapped slowly into the SD card. |
54 |
|
55 |
So I think in your case it should be much faster than that! |