From owner-freebsd-current@freebsd.org Sun Nov 22 16:06:35 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9EB0246CBF9 for ; Sun, 22 Nov 2020 16:06:35 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CfFXC40hGz3QDt; Sun, 22 Nov 2020 16:06:35 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 77322659B; Sun, 22 Nov 2020 16:06:35 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f170.google.com with SMTP id k4so14129483qko.13; Sun, 22 Nov 2020 08:06:35 -0800 (PST) X-Gm-Message-State: AOAM533ck68whQsXEiGmGCSF4XVufo7NatADi+8xMELFf1Y8aiYD7D8S QzQGlhBQoCi9BC1w87suMq/klmKkvyWBg05Qo4Y= X-Google-Smtp-Source: ABdhPJyD3BwMU4YGtneF7VrFl1Xf2cxqZ6ZlR7+fuGS6fP6M0KfvP6OjTyHFbxgMlpM1AnAVEzsqWmZG74m1DXBKz34= X-Received: by 2002:ae9:e00e:: with SMTP id m14mr25038845qkk.34.1606061195105; Sun, 22 Nov 2020 08:06:35 -0800 (PST) MIME-Version: 1.0 References: <746a3af4-3daf-9029-bf48-23efa3f5da8e@gmail.com> <37d2a873-8cb9-b858-fa06-4bbfcf006835@gmail.com> <1e9e8649-0fe7-4b83-078d-f67908e2f430@gmail.com> <40C5DB30-4B7C-4A51-8069-B4E67298C558@FreeBSD.org> In-Reply-To: <40C5DB30-4B7C-4A51-8069-B4E67298C558@FreeBSD.org> From: Kyle Evans Date: Sun, 22 Nov 2020 10:06:24 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: buildworld: lib/libc: install: short write to libc.so.7.debug: [_libinstall] Error code 71 To: Dimitry Andric Cc: Graham Perrin , FreeBSD-CURRENT , Alex Richardson , Ryan Moeller , Matthew Macy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Sun, 22 Nov 2020 16:06:35 -0000 On Sun, Nov 22, 2020 at 6:00 AM Dimitry Andric wrote: > > On 22 Nov 2020, at 08:06, Graham Perrin wrote: > > > > On 20/11/2020 09:57, Graham Perrin wrote: > >> On 16/11/2020 09:27, Graham Perrin wrote: > >>> Attempting to build r367615 on Friday 13th: > >>> > >>> =E2=80=A6 > >>> > >>> =3D=3D=3D> lib/libprocstat/zfs (install) > >>> install -U -C -o root -g wheel -m 444 /usr/src/lib/libprocstat/libpr= ocstat.h /usr/obj/usr/src/amd64.amd64/tmp/usr/include/ > >>> =3D=3D=3D> lib/libc (obj,all,install) > >>> install -U -C -o root -g wheel -m 444 libc.a /usr/obj/usr/src/amd6= 4.amd64/tmp/usr/lib/ > >>> install -U -s -o root -g wheel -m 444 -S libc.so.7 /usr/obj/usr/s= rc/amd64.amd64/tmp/lib/ > >>> install -U -o root -g wheel -m 444 libc.so.7.debug /usr/obj/usr/s= rc/amd64.amd64/tmp/usr/lib/debug/lib/ > >>> install: short write to /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/debu= g/lib/libc.so.7.debug: 393216 bytes written, 7462472 bytes asked to write > >>> *** [_libinstall] Error code 71 > >>> > >>> make[4]: stopped in /usr/src/lib/libc > >>> 1 error > >>> > >>> make[4]: stopped in /usr/src/lib/libc > >>> root@mowa219-gjp4-8570p:/usr/src # > >> > >> The same problem =E2=80=93 short write to /usr/obj/usr/src/amd64.amd64= /tmp/usr/lib/debug/lib/libc.so.7.debug =E2=80=93 when attempting buildworld= of r367847. > >> > >> If it's relevant: I'm using r367081 for these attempts. > > > > The same problem when attempting buildworld of r367923. Prior to this I= performed a fresh checkout of /usr/src > > > > What might cause these failures? > > > > If it's relevant: I have compression set to gzip-9 for the ZFS dataset = that mounts at /usr > > I'd guess it's an unintended side-effect of > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D366697 > ("install(1): Avoid unncessary fstatfs() calls and use mmap() based on > size"). > Almost certainly -- before, we would never attempt to mmap() on ZFS. Tossing arichardson@ into CC as the committer Tossing mmacy@ and freqlabs@ into CC as ZFS folks Looking through sys/contrib/openzfs, there's special handling for mmap on linux because it bypasses the page cache and relies on caching in ARC. AFAICT the FreeBSD side seems to handle write() to mmap'd regions, but doesn't do anything with VOP_MMAPPED which might be needed to sync the file when it's mmap'd for reading like this. My understanding of how this is supposed to actually work on FreeBSD is limited, though, so I defer... Thanks, Kyle Evans