linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Lock Free <atomiclong64@gmail.com>
To: linux-mm@kvack.org
Subject: Greedy kswapd reclaim behavior
Date: Mon, 9 Mar 2015 20:15:27 -0700	[thread overview]
Message-ID: <CAN3bvwucTo41Kk+NdUf8Fa_bkVWyeMcRo2ttAJeDM0G9bHjLiw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

I'm trying to explain swapping out behavior that is causing
unpredictability in our app.  We’re running redhat kernel 2.6.32-431 (yes
older) on a host that has 24GB of physical memory and a swap space of 4GB.
Swappiness is set to 10, min_free_kbytes is 90112.   Over time free memory
drop down to ~180MB due to filesystem usage over a few hours, which is
immediately followed by 2GB or 4GB of memory being reclaimed.  We expect
the free memory to be used by the file system cache, and also expect kswapd
to be triggered when min_free_kbytes is breached.  However what was not
expected was the 2-4GB of memory being reclaimed.  Our understanding is
once free memory hits high water mark which is 2 x min_free_kbytes, kswapd
duty cycle finishes.   2-3GB is usually the file system cache pages,
however the other 1-2GB are anonymous pages.  It’s a issue for us to see
the anonymous pages swapped out because they correspond to a process (JVM)
whose performance is important to us.  This process virtual and resident
size is static at 15GB.  Why is kswapd so aggressive in reclaiming pages
when it clearly reclaimed more than high water immediately after the FS
cache was flushed?  Is this by design?

[-- Attachment #2: Type: text/html, Size: 1271 bytes --]

             reply	other threads:[~2015-03-10  3:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10  3:15 Lock Free [this message]
2015-03-10 20:18 ` Lock Free
2015-03-11  0:02   ` Krishna Reddy
2015-03-11  5:39     ` Lock Free

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=CAN3bvwucTo41Kk+NdUf8Fa_bkVWyeMcRo2ttAJeDM0G9bHjLiw@mail.gmail.com \
    --to=atomiclong64@gmail.com \
    --cc=linux-mm@kvack.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