1 |
Paul Hartman writes: |
2 |
|
3 |
> On Wed, May 25, 2011 at 9:20 AM, Alex Schuster <wonko@×××××××××.org> wrote: |
4 |
|
5 |
> I can't remember the last time my swap was used at all. I have 12G of |
6 |
> RAM, but in my prior system with 8G it was the same. Only in a rare |
7 |
> case when some program had run-away memory usage/memory leak did I |
8 |
> ever get to swap usage... I'm using vanilla kernel 2.6.39 with no |
9 |
> patches, no BFS. And I use proprietary nvidia-drivers. I normally |
10 |
> don't have so many programs running at once, but it happens sometimes. |
11 |
|
12 |
Maybe I should have bought 4G instead of 2G, so I'd have 10G, not 8G. |
13 |
I'm not sure if this is recommended these days, to have one memory bank |
14 |
with 4G and 3 others with 2G each. |
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 |
This is okay now, since I started using the pf-sources. But I have no |
21 |
explanation, I have been using the BFS scheduler already before with |
22 |
ck-sources. |
23 |
|
24 |
> With KDE4 logged in, and no GUI apps running (other than knutmon and |
25 |
> wicd), my RAM usage is slightly less than 900M (not counting |
26 |
> filesystem caches). |
27 |
|
28 |
I don't want to log out now, but I have logs of experiments I did half a |
29 |
year ago. After a reboot, at the KDM login screen, the +/- buffers/cache |
30 |
line of free -m output showed 244M used. After logging into KDE4, it's |
31 |
2954M, but I have maby apps (Konsoles, Kontact, Amarok, TV-Browser, |
32 |
Dolphin, Chromium) being started automatically. |
33 |
|
34 |
>> BTW, does anyone else's kwin use 750M? That's pretty high, I think it used |
35 |
>> to be more like 300M. |
36 |
> |
37 |
> My kwin (4.6.3-r1) has currently 507M VIRT, 54M RES, 37M SHR according to top. |
38 |
|
39 |
It's growing: 1405m VIRT, 851m RES, 6m SHR. Strange, I did not actually |
40 |
use the desktop after I wrote the mail you replied to, currently I'm |
41 |
logged in from remote. |
42 |
And it grows while I compose this mail, about 1M every 2 minutes. This |
43 |
is not normal, though. |
44 |
|
45 |
I use a little script to create a log file with some memory information, |
46 |
and when I grep these 50 files for the kwin process, I see memory usage |
47 |
between 410M and 520M mostly. Three were higher, up to 1.4G, but these |
48 |
were plasma bugs (suddenly haveing eight activities instead of one; and |
49 |
a problem of the file watcher plasmoid with very large log files). |
50 |
I also found one log with kwin using only 154M, but that was when I had |
51 |
KDE 3.5 running :) |
52 |
|
53 |
|
54 |
> My worst memory offenders, by resident memory: |
55 |
> clamd 124M |
56 |
> denyhosts 114M |
57 |
> X 75M |
58 |
> plasma-desktop 56M |
59 |
|
60 |
kwin 851 |
61 |
kontact 385 |
62 |
java 373 (TV-Browser, this is also growing) |
63 |
X 124 |
64 |
okular 115 |
65 |
chrome 110 |
66 |
chrome 106 |
67 |
mysqld 93 |
68 |
... |
69 |
|
70 |
BTW, with each Chromium tab being a single process, I wonder which tab |
71 |
uses 100M of RAM. |
72 |
|
73 |
|
74 |
> My PC doesn't swap, but in my Nokia N900, it runs Linux and X, heavy |
75 |
> use of gtk and Qt4 libs, it has 256M of RAM and 768M of swap on eMMC |
76 |
> (transfer rate about 20MB/sec). It swaps like crazy. :) Usually there |
77 |
> is more swap in use than RAM, actually. |
78 |
> |
79 |
> When I move the swap to a slow SD card instead (2MB/sec transfer |
80 |
> rate), even in that slow device, swapoff on the eMMC swap partition |
81 |
> with ~500M in-use takes about 2 or 3 minutes at most with the data |
82 |
> being swapped slowly into the SD card. |
83 |
> |
84 |
> So I think in your case it should be much faster than that! |
85 |
|
86 |
Or not, with the large access times of hard drive. I don't know how |
87 |
large the chunks of memory stored in swap are, I thought some megabytes |
88 |
at least. Does anyone have an idea? I'd ask Volker, but I'm worried |
89 |
about his gall bladder. |
90 |
|
91 |
|
92 |
From another mail: |
93 |
|
94 |
> Or better yet, figure out why his system is swapping at all which is |
95 |
> what he was going for I think. With 8 GB I think he should be able to |
96 |
> disable swap entirely anyway. :) |
97 |
|
98 |
That's what I think, too. As I wrote, I always used to have many |
99 |
applications open, and in the past this was no problem. If anyone is |
100 |
interested, there are some screenshots of my desktop here: |
101 |
http://www.wonkology.org/comp/desktop/ |
102 |
The 2010-11-28 shows the six desktops I have now, shortly after login. |
103 |
It's made half a year ago, but my desktop still looks quite similar. |
104 |
right now I have some extra stuff running, but not very much. |
105 |
|
106 |
And looking at the 3x3 desktops in one image (desktop3x3.png) from 2004, |
107 |
I see I was using 856M of RAM and 748M of swap then. With a Windows VM, |
108 |
a Mozilla window, some 15 or more Galeon tabs, and some more stuff. |
109 |
Without big performance problems. It might have taken a little while |
110 |
before the Windows VM became fully responsive, but I did not have the |
111 |
constant swapping I experience now. |
112 |
|
113 |
Wonko |