From owner-freebsd-hackers@freebsd.org Sun Nov 18 14:31:51 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06BB71103B16 for ; Sun, 18 Nov 2018 14:31:51 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 440F47FC0F for ; Sun, 18 Nov 2018 14:31:50 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: by mail-ot1-x329.google.com with SMTP id t5so25488806otk.1 for ; Sun, 18 Nov 2018 06:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5B+tA+NfjGl7L29YLmiIhx0fB6cYcZhluJqA0lYx1Gg=; b=H/7ITaTVYeHBT9OaCOwnJUVy+Rt053DOazQ9vFdC5bfm12HHI5VoNu8kBXHUwXlk34 mdXDkZUMUWOf1NPzP6ZLr7SsBKxThme0e9++zSdcR2S7DU/9tEmyJZ2j1xXQ37gNLjnO TVbkpQTZN1YeQo6lC8VbOZ/4F6Piwa5cWD5JVtUbN0SshS/Gb3SJqdlggcYZXF6QBccU 8/G7DERm+7aa/BqiO/unKM9/mCZ30lJyOu2v0Xbc4ZSWvlyX11VoOBH/K1HNiuqUss5v hSHy/NQztVRuoI53OuwywVhRvlaiUSiSweI/xQU8f9FdNwFyzpi7oZmE2MsIqfQ9HQoM qiAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5B+tA+NfjGl7L29YLmiIhx0fB6cYcZhluJqA0lYx1Gg=; b=KJtbKeYNa0SS9qwidBMzNL4dsvZ1oqrIqW6hVcT0jKHtuP2wKQNTJNN42cef2RGgXt XIn12OA3M/kF8wRDJCt7sSxBMQAVOE6Z0oWdoSyCXfq4G+lPHOW5hcbqOD3P3/fiOetx 08684YD2dKIspTsks8OQrPXfInTdJKYeHzvGGtEjiCjNfjT2/iUQWiwyNKLIcgq4QtSc 43R0p1iTfFwD20To6ix+rNF9oCL52GzPuq7EdAuibgy5zECkm/kU1qz67Amedemr09yJ l7lQs2pkluXTroSMKeom+x0QNf3IU48RaRIUyk5rBzUmqSlC0Mp7crigsjVNtgWc9Vq8 Yqdw== X-Gm-Message-State: AGRZ1gLk4jzf8nNYeEFSoaqzAl7580PLF0CctGW/SA6muSLSOa7CKZaR hMeVyrYoQQIazSJ+Ldy4KMEny+5KUBYYb3r5pnQ= X-Google-Smtp-Source: AJdET5cMoW+O1sPxN0zgT3TBzHsm2mT7i4JKQnrEXfwlOONbU/EhjOCQmw6Kx5gcyOeaSXBwK00GcLxYdAnQwTtP444= X-Received: by 2002:a9d:2e0a:: with SMTP id q10mr11610153otb.176.1542551509546; Sun, 18 Nov 2018 06:31:49 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ac9:3052:0:0:0:0:0 with HTTP; Sun, 18 Nov 2018 06:31:48 -0800 (PST) In-Reply-To: <0fd769af-9a7d-95cf-7cba-5e41e3bc3c30@m5p.com> References: <201811180154.wAI1smhg049214@slippy.cwsent.com> <0fd769af-9a7d-95cf-7cba-5e41e3bc3c30@m5p.com> From: Stefan Blachmann Date: Sun, 18 Nov 2018 15:31:48 +0100 Message-ID: Subject: Re: 13-CURRENT: several GB swap being used despite plenty of free RAM To: George Mitchell Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 440F47FC0F X-Spamd-Result: default: False [-2.80 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_RCPT(0.00)[freebsd]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[9.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.90)[-0.902,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; IP_SCORE(-0.88)[ipnet: 2607:f8b0::/32(-2.58), asn: 15169(-1.74), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2018 14:31:51 -0000 Probably a good suggestion to try the alternative scheduler, thank you. However, as people a) always see disk activity LED flashing up when PC is "lagging", which can be clearly identified as swap I/O using the various utilities, and b) these "lag" issues do not appear with swap deactivated, I think I have reason to believe the performance issues are not scheduler-related. On 11/18/18, George Mitchell wrote: > On 11/18/18 7:11 AM, Stefan Blachmann wrote: >> The inconveniences that the new swapping strategy causes are a regular >> topic in the FreeBSD forums. >> >> Desktop users complain about lagginess, server users complain of long >> delays because server processes intended to be kept in memory for >> quick response times got swapped out and need to be swapped in again, >> resulting in outrageously poor server performance in spite of plenty >> of unused memory. [...] > Before necessarily blaming swapping, have you tried substituting > SCHED_4BSD for SCHED_ULE in the kernel? SCHED_ULE is not the world > champion scheduler for interactive tasks. > > (I'm ducking back into my rabbit hole now and no one needs to throw > any more brickbats at me. Sorry for the digression.) -- George > >