From owner-freebsd-current@freebsd.org Mon Mar 18 18:01:33 2019 Return-Path: Delivered-To: freebsd-current@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 EA0BD1548D76 for ; Mon, 18 Mar 2019 18:01:32 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3BD36D422; Mon, 18 Mar 2019 18:01:31 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by mail-wm1-x344.google.com with SMTP id h18so5396669wml.1; Mon, 18 Mar 2019 11:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3IJNrhZtN3ofKVIedRmKAZ6X9rrs6qAP/t1kz6CJdO0=; b=XwyUYg9u51pN/IC8Dthw5wV3FXT13Po+N8bskWp+nrIS0urobWYV++wiNW2O+rUl0s L4hMm5VPnhR+zwcbO0Cc3GCqANHfQO0iXIAZ+xOgbY0sIHwVJpx1n7KTyW/w1/MTi2KL GJDuqHyblQsq6FE3uo8Xq7LPEdz02uStbA1h56DGW1a1yYFVf2RGwFugluhyoQ5DvKB/ WjI+U1TXpTIvRugERx6Y2TZfk/jeuuey9wK0L7ZI4bWrzQYg0ubzRL8PuGBsUek4jpJy mQdN/PFPhQEFQFhVtgrip/Vwa/aO5Zzln0WIxy46/rr2GboBmyuWFzVR/9qeOThxZK5q a0Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3IJNrhZtN3ofKVIedRmKAZ6X9rrs6qAP/t1kz6CJdO0=; b=bGpktGI6GqXaJdSQ2wbVYCk4cYemMMCYyC/jnFRqxIPnXPYhgFU4XszAFJfyWR5vIV ivfJm+rbIbNIWNBn7G8KfoxeJfapF9ldBxBXdaBoHU8cVNa6MGe9d60O6DI5WEd3Res+ lpTeoD+l8xwVwI+VJ76dFHFeGiGHh/IaJZNlztd1qjI+1cUbr5IsMlE7uOBVCLDfvidI DMSRhvjn15x/JZbSuYkzwbYB767xQ5mQAwQHe/TiWosNYJVeF5MbY1jUu82Vnd034KWW rKdBNQbmxTJaoLbDfP7Cet+SlWvwtndnP3izdHPfMW50NSZzaba66InOTiQFhqbtcuE4 DySA== X-Gm-Message-State: APjAAAXQ0MFah3oER0gUBj/eybuIXnCWXkfRAKH0MbhdEqlxhnW3u9V3 Xg8QTC+hEBm78Ce781rUGQu1c6mpiAHxjoM1ep6JyMsP4rg= X-Google-Smtp-Source: APXvYqw9fQsArkxKq71HJ+Fkzub6N3Jxe9shjY1My7IzYOCXrYhoDE77MLISLSAEILUZb2qXe95s9mZm/6Ge/hTARmk= X-Received: by 2002:a1c:7d8c:: with SMTP id y134mr121041wmc.102.1552932090491; Mon, 18 Mar 2019 11:01:30 -0700 (PDT) MIME-Version: 1.0 References: <9c5eaa94-f55b-464a-ab0f-267e7fce4bd0@FreeBSD.org> In-Reply-To: <9c5eaa94-f55b-464a-ab0f-267e7fce4bd0@FreeBSD.org> From: Andrey Fesenko Date: Mon, 18 Mar 2019 21:01:19 +0300 Message-ID: Subject: Re: leaked swap? To: Andriy Gapon Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: A3BD36D422 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XwyUYg9u; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of f0andrey@gmail.com designates 2a00:1450:4864:20::344 as permitted sender) smtp.mailfrom=f0andrey@gmail.com X-Spamd-Result: default: False [-3.65 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.68)[ip: (1.10), ipnet: 2a00:1450::/32(-2.36), asn: 15169(-2.09), country: US(-0.07)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2019 18:01:33 -0000 On Mon, Mar 18, 2019 at 6:23 PM Andriy Gapon wrote: > > > First, a note that this was observed on a system that runs a fairly old current > (~ 1 year old) with a fairly long uptime (> 6 months). > I noticed that the system was nearly out of memory, 98% of swap was in use, > there was less than 1 GB of free memory, several GBs of each of active, inactive > and laundry memory, and many GBs of wired (mostly ZFS). > I decided to pro-actively reboot the system, but to speed that up I put the > system to the single-user mode (via shutdown) and then back to multi-user. So, > there was no real hardware reboot and the kernel kept running. However, all > userland processes were terminated. > > To my surprise, even while in the single-user mode the swap utilization didn't > go below 70%. Also, laundry memory remained in multi-GB area, but let's ignore > this for now. > > I think that the swap could be used only for anonymous memory, so I expected it > go to zero after the shutdown to the single user mode. > Does anyone have any ideas? > Maybe that's something that has already been fixed? > If not, any ideas on what to look for? > Thanks! > Not this? ZFS use wired and not clean only reboot? https://reviews.freebsd.org/D7538?id=25108