From owner-freebsd-current@freebsd.org Wed Dec 13 02:34:04 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 563DFE8E1E7 for ; Wed, 13 Dec 2017 02:34:04 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (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 1D16B7E91C for ; Wed, 13 Dec 2017 02:34:04 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x233.google.com with SMTP id r13so1223774iod.2 for ; Tue, 12 Dec 2017 18:34:04 -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=QxU0bPBZnA3Cjms6Nx/fh9jfoOmcmdvzSTuAXYMqMfw=; b=LVIKVRhj5qja39lwpqALOhC8pC+Jgaapx0zjGMi/9BbeugfxiTsL5Lprl0eoWnpVct xsNxNdjjQXAJV8xjC20qlyU1WUqP0uVkNhtrlNhFjx/KgSNtUwZ0szQXHqs12g4W3yQ2 dH13rETtprA/xl5/ivnHG5gPB6EZpvhx+yfReoQCP0M9DqUJj0jNXSvbbViddrWn3rdP w8i+M+8FMc4df4JIfqXy6ynilv9mZhwhezzU17HYIbw+JLdOzbVt6TZJSYvtE5PKE7YA Srh39TxqZYr9nQ3BhuO0Myxl4lju1t8pzkebpYYBCCrrfzNEJ7t6Wn3C+PgbhA/TTqMi gPvQ== 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=QxU0bPBZnA3Cjms6Nx/fh9jfoOmcmdvzSTuAXYMqMfw=; b=U0KpGN+ihJRgo12ypjMt58N3TqmCL5QybP6TLNfzL43LKIwvI3B8Kyttd8zflaKD/j lK62U6LxG9Wbf0GkUvehwPXeNa4c7fu2Oan4VhJe/m/ya2RyeBAsu1/xZIa99ZfJOUHG 60Obhj/VfXVaOCr+hJbAXZ698G2aEPKVWxSdz62UlT2jjyzab3fpoQov1oCvb98zwC7E TYLTRM8Ti/qLADZS4sOQml9jC4vLPGCOmakAb2/aqAY4hg6akV7U4MrCdoAAnDfKUsSU eLvF7gouqf5hiYJkNuJzt5GzkelyBJH6fCp4F4irU/zaai9FMzQwWgMuB+kjL0ohm/cH BMMA== X-Gm-Message-State: AKGB3mILXPdrlWIdL3luLPGnLKXbWC4B6txVUokDhcj0EefakO/2P58q ZmObXEwryE2LxeRbZKdxdKVlym1NofEli32V5wY= X-Google-Smtp-Source: ACJfBos+HxEv8cunsgUc5SV2p/f9E1gMKZOAN5LN+aL4vVZ3wgmgaSPzlHEEcLlQrumZR2KIvGuAwC+AQdADRZWcrEU= X-Received: by 10.107.24.198 with SMTP id 189mr1142208ioy.213.1513132443353; Tue, 12 Dec 2017 18:34:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.11.31 with HTTP; Tue, 12 Dec 2017 18:34:02 -0800 (PST) In-Reply-To: References: From: blubee blubeeme Date: Wed, 13 Dec 2017 10:34:02 +0800 Message-ID: Subject: Re: get_swap_pager(x) failed To: Mark Millard Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 02:34:04 -0000 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?