From owner-freebsd-stable@freebsd.org Thu Jul 28 11:29:58 2016 Return-Path: Delivered-To: freebsd-stable@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 60A11BA59A2 for ; Thu, 28 Jul 2016 11:29:58 +0000 (UTC) (envelope-from arcade@b1t.name) Received: from limbo.b1t.name (limbo.b1t.name [78.25.32.206]) by mx1.freebsd.org (Postfix) with ESMTP id 1B15C1E24 for ; Thu, 28 Jul 2016 11:29:57 +0000 (UTC) (envelope-from arcade@b1t.name) Received: from [172.29.1.179] (unknown [172.29.1.179]) by limbo.b1t.name (Postfix) with ESMTPSA id E8DEAC2 for ; Thu, 28 Jul 2016 14:21:36 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=b1t.name; s=mail; t=1469704898; bh=pD1ZhTmgaSOqWs6HBC9PPIsyDmVjM7yQIMEcQYNGnxI=; h=Subject:To:References:From:Date:In-Reply-To; b=U7LKEYRMyNFZVbT4qUuoeLTxAisUrP/e+YQuZiwuKjU0kP5qDg59ZTXZSDpt13LCX XsSyDQ/AAXgyrenIv//G837L34RMdhwXE9vTdd6jsU7BdTf5B9XjfX9E9zr/PoftA+ JG9+uqQd5Wdf2MjiXjt6nCS6pBgP0f1iTeAJA+7U= Subject: Re: swapoff: Cannot allocate memory FreeBSD 11 Beta2 To: freebsd-stable@freebsd.org References: <2601b5e7-8611-d4a3-9d24-4e727f60ad7a@gmail.com> From: Volodymyr Kostyrko Message-ID: <5799EAC0.6040604@b1t.name> Date: Thu, 28 Jul 2016 14:21:36 +0300 User-Agent: Mozilla/5.0 (X11; DragonFly x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <2601b5e7-8611-d4a3-9d24-4e727f60ad7a@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2016 11:29:58 -0000 Johan Hendriks wrote: > Hello all. > > Lately I noticed above (error) when I reboot machine. > > It looks like this. > > Stopping cron. > Waiting for PIDS: 1183 > swapoff: /dev/gpt/swap-9M286954: Cannot allocate memory > stopping zfsd. > Waiti...... > > My swap space concists of two GPT swap partitions on the zfs mirror OS > disks, both 4GB each. > The machine has 4 GB mem. > > This does not happen after normal use, but if i wait a day, do a > buildworld then the swapoff error shows. > > content off /etc/fstab > > /dev/gpt/swap-Z3TX7DTA none swap sw 0 0 > /dev/gpt/swap-9M286954 none swap sw 0 0 I think you are bitten by a bad swapoff logic. I made patch for it eons ego: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187081 From my point of view swapping off from non-late swap devices is just a waste of time. -- Sphinx of black quartz judge my vow.