public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Strive for zero swap usage?
Date: Mon, 10 Oct 2016 08:45:28 +0200	[thread overview]
Message-ID: <20161010064528.GA10878@gentoo-tp> (raw)
In-Reply-To: <CAN0CFw0XVcKnpXpkdVB86xpv_XkBFuXCxOnNPPVCeWnTCxGXiQ@mail.gmail.com>

On Thu, Oct 06, 2016 at 03:31:59PM -0700, Grant wrote:
> 
> Does this look OK?  It looks to me like heavy swapping in and out with
> plenty of free memory (minus buffers/cache).
> 

Have you looked at the _units_ displayed by vmstat and munin? You're
looking at **kilobytes** being swapped and calling that _heavy swapping_...

In general your system shows that you have a lot of memory used as cache,
and I would guess that the kernel thinks its better to keep using that
memory for caching and swap out the occasional page of application data.
The alternative would be dropping some cache - might be worse for
performance. Swapping does not seem to be something that could be causing
any issues for you.

Do you even have an issue with response times of your webservers? If so
(which you haven't explicitly stated here) it would be better for you to
look at things from that end - what is taking long in the webserver and
what is causing those things to take that long.

As it stands, you're using anti-methods of performance analysis:

    Streetlight Anti-Method:

        1. Pick observability tools there are familiar
        2. Run tools
        3. Look for obvious issues

and
    
    Traffic Light Anti-Method

        1. Open dashboard (munin)
        2. All green? Assume everything is good
        3. Something red? Assume that's a problem

If you're really interested in this kind of stuff I recommend checking out
the materials that Brendan Gregg has gathered over the years.
http://www.brendangregg.com/methodology.html and other links on his page.



      parent reply	other threads:[~2016-10-10  6:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-06 21:51 [gentoo-user] Strive for zero swap usage? Grant
2016-10-06 22:03 ` Rich Freeman
2016-10-06 22:31   ` Grant
2016-10-07 11:33     ` Grant
2016-10-07 12:06       ` Michael Mol
2016-10-07 23:43         ` Grant
2016-10-08  0:26           ` Bill Kenworthy
2016-10-08  2:29             ` Bill Kenworthy
2016-10-08 11:58             ` Grant
2016-10-08 12:09           ` Grant
2016-10-08 19:27             ` [gentoo-user] " Kai Krakow
2016-10-08 23:03               ` Håkon Alstadheim
2016-10-09 13:25               ` Grant
2016-10-09 17:07                 ` Kai Krakow
2016-10-10 14:24           ` [gentoo-user] " Michael Mol
2016-10-10  6:45     ` Jeremi Piotrowski [this message]

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=20161010064528.GA10878@gentoo-tp \
    --to=jeremi.piotrowski@gmail.com \
    --cc=gentoo-user@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