From: Andrea Aime <aaime@libero.it>
To: linux-kernel@vger.kernel.org
Subject: How to tune vm to be less swap happy?
Date: Wed, 1 May 2002 12:02:38 +0000 [thread overview]
Message-ID: <200205011202.38653.aaime@libero.it> (raw)
Hi everybody,
sorry to bother you with this question, but I feel that current vm defaults
are not tuned for a workstation use, but for a file server/db server use.
I work on a couple of machines with 128MB of RAM, tipically use KDE 3.0
and Netbeans (a Java IDE). Ok, I use bloated software, I should have more
RAM. Fine. But what I don't understand is why the system keeps swapping
data in and out just because it doesn't want to shrink the cache below 40 MB.
My typical memory occupation is:
total used free shared buffers cached
Mem: 127096 123264 3832 0 1216 48164
-/+ buffers/cache: 73884 53212
Swap: 257000 62316 194684
Now, as you can see I would need 135 MB to keep all my programs in memory,
and if you look at top output:
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
4397 wolf 9 0 79196 71M 30472 S 0,0 57,4 0:00 java
4398 wolf 8 0 79196 71M 30472 S 0,0 57,4 0:00 java
...
you'll notice that due to the cache behaviour not even netbeans fits enterely
in memory. I really doubt that I can benefit from a 48MB disk cache since the
system is swapping in and out every time I open konqueror, kmail and the
like... is there anything I can do to shrink the cache and to allow a bigger
part of my working set to fit into memory? Moreover, what vm tuning do you
advice for a typical workstation use with memory hungry applications?
Best regards
Andrea Aime
next reply other threads:[~2002-05-01 10:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-01 12:02 Andrea Aime [this message]
2002-05-01 10:51 ` Sean Neakums
2002-05-01 14:33 ` Andrea Aime
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200205011202.38653.aaime@libero.it \
--to=aaime@libero.it \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®