From owner-freebsd-fs@freebsd.org Sat Sep 30 18:53:18 2017 Return-Path: Delivered-To: freebsd-fs@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 B6500E2CEAB for ; Sat, 30 Sep 2017 18:53:18 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from hz.citrin.ru (hz.citrin.ru [IPv6:2a01:4f8:d16:10c3::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7AD3E7C514 for ; Sat, 30 Sep 2017 18:53:18 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from x220.lan (unknown [IPv6:2601:18a:c680:9888:9477:d48c:3bae:c7eb]) by hz.citrin.ru (Postfix) with ESMTPSA id 6919F2C1653 for ; Sat, 30 Sep 2017 18:53:15 +0000 (UTC) Subject: Re: Panic: vm_fault: fault on nofault entry To: freebsd-fs@freebsd.org References: <35aef1ac-a1dd-4526-46f8-599b4fb3b0f4@citrin.ru> <20170930081835.GH95911@kib.kiev.ua> From: Anton Yuzhaninov Message-ID: <1eaf07ba-1928-a162-16fe-1908d350ed46@citrin.ru> Date: Sat, 30 Sep 2017 14:53:13 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170930081835.GH95911@kib.kiev.ua> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrin.ru; s=s0; t=1506797595; bh=JIB+uRqLV+ifCLXWFv1hgez08wA2DXVJExRyh6jb8YE=; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=MtuISQlEG5r04d3U+iuGtj5oq9TQPU55jGM/VicZcSU+fC3pVNAH+1TmPS48ZUTZoFLyva50K/CFsLNuh/OQny0Qf0W7YNplznkzfRylMvZgnJZEmmpmod8fIVQnd24wKB/lzSt9Khig42MmNGZbtRPZhL22nxNc1EnwbyP8Tso= X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Sep 2017 18:53:18 -0000 On 09/30/17 04:18, Konstantin Belousov wrote: >> I have panics when I try to use nginx on my notebook. When sendfile is >> enabled it is easy to trigger panic, after disabling sendfile I've got >> no panics so far and I think that panic is triggered by using sendfile. >> >> Root filesystem - UFS on GELI whith 8k sectorsize. >> >> GELI with sectorsize large than page size is non-standard configuration, >> and I've got problem because of this in the past: >> https://lists.freebsd.org/pipermail/freebsd-fs/2016-October/023957.html >> >> but it was fixed in: >> https://svnweb.freebsd.org/changeset/base/307626 > Well, it was fixed by replacing the code path for normal page in by > the less buggy pager. The sendfile path was not touched, it still uses > the generic pager with all its bugs sitting in place. > > There is no way around it, you cannot use block size > page size for > sendfile, and there are more issues, e.g. with the simultaneous file > truncation. > Thanks for explaining. On a desktop I can easily avoid using sendfile(2). Hard part for me was to find out that panic was triggered by sendfile (and to something else).