From owner-freebsd-current@freebsd.org Tue Feb 19 03:05:50 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 644A414D66A8 for ; Tue, 19 Feb 2019 03:05:50 +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) server-signature RSA-PSS (4096 bits) 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 A0FE896B9B for ; Tue, 19 Feb 2019 03:05:49 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 3035D128F4 for ; Tue, 19 Feb 2019 03:05:49 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lj1-f182.google.com with SMTP id l5so12704116lje.1 for ; Mon, 18 Feb 2019 19:05:49 -0800 (PST) X-Gm-Message-State: AHQUAuZL616piHNECVNWIkLDna/28kV3F8nggB/vw5Sgk/ibf+YkIOJG ybN68L0/RS6dv46QFtwFk9FwcvQAQ6HTIi/eSC4= X-Google-Smtp-Source: AHgI3IYw8kLUWiHi+3jOwdtpfij8nkEyvS7/4wI6aDnd8u9tjU8E1fjssO4ycfLIgM2isUGZqqIwcPBMGxc+Ab/Q6dg= X-Received: by 2002:a2e:8456:: with SMTP id u22mr14443063ljh.108.1550545547532; Mon, 18 Feb 2019 19:05:47 -0800 (PST) MIME-Version: 1.0 References: <004243c2-e473-ee1a-7343-e718f2177308@gmail.com> In-Reply-To: <004243c2-e473-ee1a-7343-e718f2177308@gmail.com> From: Kyle Evans Date: Mon, 18 Feb 2019 21:05:36 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bectl slow To: Graham Perrin Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: A0FE896B9B X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 19 Feb 2019 03:05:50 -0000 On Mon, Feb 18, 2019 at 8:34 PM Graham Perrin wrot= e: > > Preparing to update the OS, I created a new boot environment. Creation > took a long time, subsequent bectl commands are extraordinarily slow. > > Whilst composing this e-mail I'm awaiting completion of a simple list. > > Any ideas? > > zpool status shows no problem. Last scrubbed 27th December, I'll begin a > scrub after the current 'bectl list' command completes =E2=80=A6 > > ---- > > grahamperrin@momh167-gjp4-8570p:~ % su - > Password: > root@momh167-gjp4-8570p:~ # svn up /usr/src > Updating '/usr/src': > U /usr/src/lib/libmemstat/memstat_uma.c > U /usr/src/lib/clang/libllvmminimal/Makefile > U /usr/src/stand/common/part.c > U /usr/src/stand/common/disk.c > U /usr/src/stand/uboot/common/main.c > U /usr/src/stand/uboot/lib/libuboot.h > U /usr/src/stand/libsa/cd9660.c > U /usr/src/stand/libsa/zfs/zfs.c > U /usr/src/stand/lua/password.lua > U /usr/src/stand/powerpc/uboot/Makefile > U /usr/src/sys/arm/freescale/imx/imx6_snvs.c > U /usr/src/sys/amd64/amd64/pmap.c > U /usr/src/sys/amd64/sgx/sgx_linux.c > U /usr/src/sys/dev/netmap/netmap_freebsd.c > U /usr/src/sys/dev/netmap/netmap_kern.h > U /usr/src/sys/conf/ldscript.riscv > U /usr/src/sys/contrib/libnv/nvpair.c > U /usr/src/sys/kern/sys_pipe.c > U /usr/src/contrib/libc++/include/type_traits > U /usr/src/usr.bin/kdump/kdump.c > U /usr/src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c > U /usr/src/usr.sbin/rpc.ypupdated/update.c > U /usr/src/usr.sbin/bsdinstall/partedit/partedit_powerpc.c > U /usr/src/etc/mtree/BSD.root.dist > Updated to revision 344269. > root@momh167-gjp4-8570p:~ # svn up /usr/src > Updating '/usr/src': > At revision 344269. > root@momh167-gjp4-8570p:~ # bectl create r344269 > load: 0.64 cmd: bectl 33517 [fu_ans] 29.69r 0.00u 0.01s 0% 4460k > load: 0.49 cmd: bectl 33517 [fu_ans] 53.59r 0.00u 0.01s 0% 4460k > root@momh167-gjp4-8570p:~ # date ; uptime ; uname -v > Tue Feb 19 01:46:46 GMT 2019 > 1:46AM up 1:11, 4 users, load averages: 0.42, 0.57, 0.79 > FreeBSD 13.0-CURRENT r344013 GENERIC-NODEBUG > root@momh167-gjp4-8570p:~ # time bectl list | sort > load: 0.10 cmd: sort 33904 [piperd] 1145.34r 0.00u 0.00s 0% 2612k > ^C^C > load: 0.18 cmd: bectl 33903 [fu_ans] 1175.24r 0.01u 0.03s 0% 4740k > ^Croot@momh167-gjp4-8570p:~ # date > Tue Feb 19 02:07:07 GMT 2019 > root@momh167-gjp4-8570p:~ # time bectl list > BE Active Mountpoint Space Created > r344013 NR / 22.6G 2019-02-11 16:17 > r344231 - - 3.81G 2019-02-17 16:38 > r343747 - - 6.57G 2019-02-04 18:04 > r343883 - - 6.90G 2019-02-07 23:11 > r342466 - - 521M 2019-01-07 07:53 > r344269 - - 392K 2019-02-19 01:42 > 20190131-0125 - - 487M 2019-01-31 01:25 > default - - 2.16M 2018-12-22 05:01 > I'd be interested in seeing what happens when you apply this diff: https://people.freebsd.org/~kevans/bectl-perf.diff