From owner-freebsd-current@freebsd.org Wed Dec 13 07:42:47 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B138E94520 for ; Wed, 13 Dec 2017 07:42:47 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8ED2E66556 for ; Wed, 13 Dec 2017 07:42:46 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id n138so3046106wmg.2 for ; Tue, 12 Dec 2017 23:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=3pqIMHds08agQO82RkFHkCkRbuOqtDUutkP2UYj/qmg=; b=fBHMo34R/i5BXpaQa/WMWImbejgEoCDtUAv/uKKmCB0PsEM5eejASsry3+pVaan6+5 U7vRQ4PQEACiRbTURr7EBesx/GCCkNcRvGcv8XLwScQACzbikg1RcJcFu8QOa6giqlCv XhFBDrm668iNWEwKuUrbmg5OjBU02c43qUn6z2AqUP5trk/R4V9ef/MXL/GpO83fT4VC 4nz68kVd50QfKe7KC2TF7u9a3PV9YRHA0As9IFHT4TW9jrj6JvaBgpVU/QXWWDkZ6N7J XBJdvMBJxMpY1vP/iOz7qzyMVBbIYd/9grTOaLkL9HErNm7GEkViqckdqN3rt0TcoN0Y zUYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=3pqIMHds08agQO82RkFHkCkRbuOqtDUutkP2UYj/qmg=; b=ax4dXYnqeJ/FAnmuSDOrefN39LNwaT9Dd1D4hMDivlmKQ/rf9VZ2id2ZSdcTLk2PjY JmxaSWFsYy1tQfwreLUISlnk0iBUa28vWuJpna6fSUhX9dtth2OMe6+Hpsq4Rxhtc7qi AeFsbNFicTc/Gbv2GuhVsAJ8tq2uuncxkDtnTCfmdXIOqi8oQepNjjcVoeTd8eyN0EJd 6Qgn+z1UFK89+841mrmy0RSaeGDQggh3b7DAhm/x+4su+iOSkykOzqnULmLr2IwW+sRN jz8q+DidBL42rexgpAE2173+D+fy4y3AzRzo2s0PJVt6kg+Tt9wOurzJKpNf/dDQiDsA WMHw== X-Gm-Message-State: AKGB3mKJX9r1fNuJxmdDQcktLbn9w9u5jYWVnvd9XQWnRVeLY2xb9TOe Dn9kWpAP0KCbZREWBAqcGVE= X-Google-Smtp-Source: ACJfBouDQ9/wtPPEN54iXOznXVO9IKAMysZiYSbde6ZOnTdoMBwuRSKc6GIsdt7h60/VHm48Ww+Rmg== X-Received: by 10.28.213.2 with SMTP id m2mr1007655wmg.141.1513150964349; Tue, 12 Dec 2017 23:42:44 -0800 (PST) Received: from ernst.home (p5B0238CC.dip0.t-ipconnect.de. [91.2.56.204]) by smtp.gmail.com with ESMTPSA id e124sm737682wmg.34.2017.12.12.23.42.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2017 23:42:43 -0800 (PST) Date: Wed, 13 Dec 2017 08:42:42 +0100 From: Gary Jennejohn To: blubee blubeeme Cc: Mark Millard , FreeBSD Current Subject: Re: get_swap_pager(x) failed Message-ID: <20171213084242.13a64c19@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Wed, 13 Dec 2017 07:42:47 -0000 On Wed, 13 Dec 2017 10:34:02 +0800 blubee blubeeme wrote: > On Wed, Dec 13, 2017 at 5:53 AM, Mark Millard wrote: > > > blubee blubeeme gurenchan at gmail.com wrote on > > Tue Dec 12 15:58:19 UTC 2017 : > > > > > On Tue, Dec 12, 2017 at 3:34 PM, blubee blubeeme > > >wrote: > > > > I am seeing tons of these messages while running tail -f > > /var/log/messages > > > > ============ > > > > Dec 12 15:11:41 blubee kernel: swap_pager_getswapspace(25): failed > > > . . . > > > > 1159 blubee 5 20 0 149M 56876K select 6 1:05 0.00% > > > > ibus-engine-chewing > > > > > > > > =========== > > > > > > > > What's with all the swap errors? I am running ZFS and I have 16GB of > > ram, > > > > how could I be having swap space errors? > > > > > > > > > > Well I added 4GB of extra swap in /var/tmp/swap0 > > > then added that to my /etc/fstab: md99 none swap > > > sw,file=/var/tmp/swap0,late 0 0 > > > > > > and those errors went away. > > > > I recommend reviewing bugzilla 206048 (title in part > > "swapfile usage hangs; swap partition works"): > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206048 > > > > before using file-system based swap spaces. They have > > lots of problems with deadlocks. See especially comments > > #7 and #8 quoting Konstantin Belousov. #8 is just a > > reference to: > > > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ > > kerneldebug-deadlocks.html > > > > Comment #3 shows a way to test for the problematical > > behavior. > > > > Using swap partitions avoids the issue. > > > > === > > Mark Millard > > markmi at dsl-only.net > > > > > Thanks for the info, why would I be getting swap errors like that when I > have 32GB of ram? > sysctl hw.physmem > hw.physmem: 34253692928 > > That really doesn't make any sense to me... Is it Chromium eating up 32GB+ > of ram? > I've asked myself that question also. alc@ gave me a hint. Try this: sysctl vm.pageout_update_period=0 If it helps, put vm.pageout_update_period=0 into /etc/sysctl.conf. -- Gary Jennejohn