From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-173646-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D77DD138330 for <garchives@archives.gentoo.org>; Thu, 6 Oct 2016 22:32:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 294DDE0B0D; Thu, 6 Oct 2016 22:32:01 +0000 (UTC) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6007E0994 for <gentoo-user@lists.gentoo.org>; Thu, 6 Oct 2016 22:32:00 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id f128so9198068qkb.1 for <gentoo-user@lists.gentoo.org>; Thu, 06 Oct 2016 15:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Ki+BUgUgO3MOPFkLndsrA1gTqgVAWDyEAJaibS+pDoA=; b=stGBeVEu623tAoLDLN3vrneD8nYkeD8ExlVkUwm9jb4VRGz/5CNTrLZcy74jvA92dK 0Rjnq1lINSPL4i14Utu4d+ubwvxB0aXaX4V9ne3xaGckswxVjMvltkSrPJz9vISeF3w+ BQAJ1xbaL7bPtC2qQWTc4iLpTX41bTfLNeHztp/+Gf81uj1A3MPhW/cha+UgTNvTeZPK fUpXlZxqQfmMnImPjePeGCg6ZJAjVlnQ82Rtp1vK0FH2Ad/Y/bH/WoXcW4QGq9LwmD9w OHOrM3cC5dI4vAYibs8wkQsKamxqXM2OjlCRphk1P/BDHxunKIHM4j61s+HfWKR0FZ8m FiAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Ki+BUgUgO3MOPFkLndsrA1gTqgVAWDyEAJaibS+pDoA=; b=iNkbgYJcY2PvUfLkSv1zthq+wltu00Xb3cHlATL8i1mjd2H0Z7Tv7ZiICjUCs6VuOd aL7zhrb5lbnz88gQJdJCfP1cVVLKWfRogPzP+VKN24mEdOlvzL+I+OHKYp+lwoxtr066 W7BUZOa6s/94tzztk+mCmm/cX0EfUQ1YlcFXfaS/pI4o17rUXstHruY5MS1u1ZdNnSn0 d6x3g6z8jisTZdIc9s6crgo2gBgdjHyotdBoDbqWhj1f/pmH1Wo6OprXXOtcclfiAF+9 jCQiOp0hWKcSfB6LpiWszu8OZZDXN2A+eTVm+PCXoKr6kcxSL2LeI473UfgH4VI6AGCM Vj1A== X-Gm-Message-State: AA6/9Rm9Ex2rnigTRxwHv4hAKkze75falnfMPw474XntPXVvjBoTosdpH7n1O97gdyydTli9L9aUMd1aNSmzXQ== X-Received: by 10.55.160.149 with SMTP id j143mr15805006qke.274.1475793119928; Thu, 06 Oct 2016 15:31:59 -0700 (PDT) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.140.38.179 with HTTP; Thu, 6 Oct 2016 15:31:59 -0700 (PDT) In-Reply-To: <CAGfcS_nOW_43wnHMdVO4jPxZcrmfKpUiq9S49JU0xoZN2jcrQQ@mail.gmail.com> References: <CAN0CFw0R_iRR_eaw=1My73-v0_6k3U+WOjZcJDgvN8_nHrRmyw@mail.gmail.com> <CAGfcS_nOW_43wnHMdVO4jPxZcrmfKpUiq9S49JU0xoZN2jcrQQ@mail.gmail.com> From: Grant <emailgrant@gmail.com> Date: Thu, 6 Oct 2016 15:31:59 -0700 Message-ID: <CAN0CFw0XVcKnpXpkdVB86xpv_XkBFuXCxOnNPPVCeWnTCxGXiQ@mail.gmail.com> Subject: Re: [gentoo-user] Strive for zero swap usage? To: Gentoo mailing list <gentoo-user@lists.gentoo.org> Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 8f500e9e-c0f8-46d5-932f-6bbf29c3ac32 X-Archives-Hash: 07d48729242b64ba6972b7079362cc09 >> Swap usage on Linux always seems a little tricky to me. Should my >> goal on a web server be zero swap usage, meaning the attached graph >> should show no green lines at all if I'm doing it right? >> > > No. You want things that aren't in use to be swapped, like memory > leaks and such. You don't want things that will be used to be > swapped. Does this look OK? It looks to me like heavy swapping in and out with plenty of free memory (minus buffers/cache). # vmstat 1 20 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 1 155308 71328 29200 2437260 1 0 127 63 0 0 48 1 50 1 0 0 1 155308 44444 29204 2465164 0 0 27772 0 1483 1236 1 1 74 24 0 2 2 155480 32904 29220 2476392 0 172 33684 172 4166 2790 44 2 30 24 0 4 0 155828 30332 29220 2479756 0 348 41388 348 5319 1884 76 2 1 21 0 1 1 156184 37668 29244 2470752 0 356 28960 424 5033 3299 53 2 15 29 0 0 2 156412 32912 29264 2477364 0 228 30976 252 2909 2516 14 2 56 29 0 2 5 156640 29372 29400 2480328 0 228 23180 344 3949 3156 32 2 35 31 0 1 4 157072 36372 29624 2469924 0 432 28032 488 4120 3289 50 2 10 37 0 2 4 157260 37372 29812 2466036 0 188 12188 316 3789 2540 54 1 7 38 0 2 3 157260 30236 29912 2467672 0 0 16372 48 3730 2077 57 2 8 34 0 2 3 157304 29684 28940 2459688 24 44 10892 44 4271 2808 44 2 11 43 0 5 2 157824 36448 28372 2440176 4 520 13036 620 4796 3185 56 2 10 33 0 2 3 157928 34552 28516 2437032 4 104 19620 148 4446 4108 48 3 15 35 0 2 6 157928 38620 28444 2385828 436 0 4808 136 4615 2851 39 5 6 51 0 3 5 157928 36936 28604 2377112 732 0 8072 84 4773 2970 64 2 0 34 0 5 7 157928 39068 28832 2375944 40 0 2040 492 4877 3341 71 2 1 26 0 3 4 157928 81820 28984 2376868 188 0 19320 0 5122 6990 66 5 0 30 0 # free -h total used free shared buffers cached Mem: 3.9G 3.8G 41M 88M 20M 2.4G -/+ buffers/cache: 1.4G 2.4G Swap: 1.0G 154M 869M - Grant