From: Volker Armin Hemmann <volkerarmin@googlemail.com>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Re: Memory usage; 32 bit vs 64 bit.
Date: Tue, 04 Jan 2011 13:59:17 +0100 [thread overview]
Message-ID: <4d2319aa.0297df0a.5980.ffff91bf@mx.google.com> (raw)
In-Reply-To: <pan.2011.01.04.09.12.16@cox.net>
On Tuesday 04 January 2011 09:12:17 Duncan wrote:
> Volker Armin Hemmann posted on Tue, 04 Jan 2011 08:27:28 +0100 as
>
> excerpted:
> > swap kills interactivity and is really, really bad on linux. No matter
> > how much you stripe it. Swap is a true horror. So setting swappiness to
> > 100 (which means: keep caches alive, no matter what and swap the hell
> > out of it) is a really bad idea. In my experience it is better to have a
> > very low swappiness and let the kernel get the occasional data from
> > disk, than to swap to the same disks. Strange eh?
> >
> > But better to wait 1.5s longer for konqueror to display a directory than
> > to have a jerky mouse and input lag because of swap. Remember: the
> > kernel ALWAYS swaps out the wrong stuff.
> > I have swappiness at 60 - and back in the 4GB days at 0. Because swap
> > sucks so much.
> >
> > You are not required to believe that. But just google.
>
> All I can go on is my experience, which agrees with you (and most of the
> advice on the net) when it's a single-core CPU on single-spindle storage,
> but I've found the experience rather different on multi-core machines
> driving quad-spindle striped swap on mirrored RAID, with enough memory
> swap usage is trivial in the ordinary case. Once swap usage hits half a
> gig or so, yes, it's noticed, but until then, I literally don't normally
> notice it unless/until I happen to see the usage reported on the system
> monitors.
>
> OTOH, losing portage tree cache or news (nntp) article cache and having to
> fetch the data from disk can be quite noticeable, as it DEFINITELY is the
> first time I access after a reboot (the infamous cold-cache case), the
> biggest reason I tend to leave the system running for weeks at a time,
> rebooting only to load a new test kernel or the like.
>
> (FWIW, I use app-admin/lib_users to track programs using stale/already-
> deleted libs after an update, and after quitting kde/X, restart daemons,
> etc, to clear the list if necessary, thus clearing that source of both
> security vulns and so-called anon-memory usage. I do use the
> portage-2.2.0_alphas with preserve-libs, but use FEATURES=-preserve-libs
> to avoid that source of bugs, so the old libs do normally get deleted.)
well, I don't waste electricity. I do have / on a ssd and /var with portage on
a raifd5. And waiting a few seconds longer for emerge -auvDtn world to give
results does not matter for me.
But a stuck keyboard because of swapping? (swap striped to three disks, 4core
processor) Inacceptable.
And so swappiness has to stay down. Many days I don't even turn swap on.
Seeing gcc oom is much less annoying than swap.
It got better over the years but it is still far from being acceptable.
next prev parent reply other threads:[~2011-01-04 13:02 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-03 18:34 [gentoo-amd64] Memory usage; 32 bit vs 64 bit Dale
2011-01-03 19:08 ` Mark Knecht
2011-01-03 21:46 ` Dale
2011-01-06 18:51 ` Darragh Bailey
2011-01-06 20:52 ` Dale
2011-01-06 21:21 ` Volker Armin Hemmann
2011-01-06 22:38 ` Dale
2011-01-03 19:37 ` Alex Alexander
2011-01-03 21:48 ` Dale
2011-01-04 0:15 ` Mark Knecht
2011-01-04 1:17 ` Dale
2011-01-04 1:27 ` [gentoo-amd64] " Duncan
2011-01-04 7:27 ` Volker Armin Hemmann
2011-01-04 9:12 ` Duncan
2011-01-04 12:59 ` Volker Armin Hemmann [this message]
2011-01-06 20:31 ` Enrico Weigelt
2011-01-06 21:13 ` RES: " Eduardo Schoedler
2011-01-06 21:23 ` Volker Armin Hemmann
2011-01-06 22:28 ` Enrico Weigelt
2011-01-06 20:29 ` Enrico Weigelt
2011-01-06 21:22 ` Volker Armin Hemmann
2011-01-06 22:32 ` Enrico Weigelt
2011-01-06 23:42 ` Volker Armin Hemmann
2011-01-07 5:59 ` Duncan
2011-01-07 11:15 ` Volker Armin Hemmann
2011-01-06 22:33 ` Mark Knecht
2011-01-03 19:43 ` [gentoo-amd64] " Rich Freeman
2011-01-03 20:03 ` [gentoo-amd64] " Nikos Chantziaras
2011-01-04 0:32 ` [gentoo-amd64] " Volker Armin Hemmann
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=4d2319aa.0297df0a.5980.ffff91bf@mx.google.com \
--to=volkerarmin@googlemail.com \
--cc=gentoo-amd64@lists.gentoo.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