From: Stuart Longland <stuartl@longlandclan.yi.org>
To: linux-admin@vger.kernel.org
Subject: Swap usage on Linux/AMD64: Have I goofed up a .config setting?
Date: Sun, 25 Jan 2015 20:10:13 +1000 [thread overview]
Message-ID: <54C4C105.8050602@longlandclan.yi.org> (raw)
Hi all,
I've been wondering this for some time (i.e. a good 5 years or so, never
had the time to go sit down and nut it out). I haven't worried about it
since it normally is just a minor nit, but today I was doing something
where I really did need swap to work.
On i386 systems I used to allocate a *HUGE* swap partition and mount
tmpfs on /tmp. This used to work really well, swap usage would grow as
I plonk files in /tmp, and when I reboot, it'd be nice and clean ready
to go.
When I tried this on AMD64, I found this no longer worked as expected.
Swap would be left alone, and sometimes RAM would become scarce once too
many files were deposited in /tmp. This has been the case for me ever
since I got my first AMD64 machine (mid-2010).
Today, I was busy slicing up images for printing in The Gimp. One that
has been giving me curry is this one:
https://publications.qld.gov.au/dataset/guide-to-queensland-roads/resource/f86c19ae-9adf-4100-bb59-5113548c361e
I rasterise that at 1440 DPI, then try to crop or print it.
I have 8GB RAM and my swap partition is 10GB. Inspite of this, I'm not
seeing more than about 200MB of swap space used at any time, and The
Gimp crawls. Not surprising that it's slow as I really need 16GB to
process something this size, but it is surprising that the 10GB of swap
doesn't get touched:
> RC=0 stuartl@vk4msl-mb ~ $ free
> total used free shared buffers cached
> Mem: 7915412 7684668 230744 6804 19264 2073856
> -/+ buffers/cache: 5591548 2323864
> Swap: 10664956 197432 10467524
> RC=0 stuartl@vk4msl-mb ~ $ uname -a
> Linux vk4msl-mb 3.16.2-vk4msl-mb #1 SMP PREEMPT Fri Sep 12 22:32:47 EST 2014 x86_64 Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz GenuineIntel GNU/Linux
I run vanilla kernels that I build myself and most of the settings come
from defconfig. I can post my .config if people desire.
Until today I have not touched 'swappiness' (today I tried setting it to
80).
Is there some setting I've missed in .config that allows swap to be
utilised on AMD64?
--
Stuart Longland (aka Redhatter, VK4MSL)
I haven't lost my mind...
...it's backed up on a tape somewhere.
reply other threads:[~2015-01-25 10:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=54C4C105.8050602@longlandclan.yi.org \
--to=stuartl@longlandclan.yi.org \
--cc=linux-admin@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;
as well as URLs for NNTP newsgroup(s).