From owner-freebsd-current@freebsd.org Tue Feb 19 03:36:30 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 8461414DA802 for ; Tue, 19 Feb 2019 03:36:30 +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 2EE7068462 for ; Tue, 19 Feb 2019 03:36:30 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 B782512C50 for ; Tue, 19 Feb 2019 03:36:29 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f47.google.com with SMTP id q11so13817590lfd.3 for ; Mon, 18 Feb 2019 19:36:29 -0800 (PST) X-Gm-Message-State: AHQUAuYWUjoJxpREX+TfFQnWUDCYgZpa9XcVQcMl4jSqorb6FINqDyjU aP6P3qOhifRjc6wLyauRrXW6GQGxSiKqui737Ew= X-Google-Smtp-Source: AHgI3IaKeMMiaTYLkHPTLW7oIY5rGVMjVoJmL7jCtjvF0LVBolasPMbjc7acj/lYTGie8VXF/5HgJqK30+pUDL5r8Hg= X-Received: by 2002:ac2:53b1:: with SMTP id j17mr15232163lfh.143.1550547388156; Mon, 18 Feb 2019 19:36:28 -0800 (PST) MIME-Version: 1.0 References: <004243c2-e473-ee1a-7343-e718f2177308@gmail.com> <95e64c9c-08d2-1258-115f-7a93b7a7469b@gmail.com> In-Reply-To: <95e64c9c-08d2-1258-115f-7a93b7a7469b@gmail.com> From: Kyle Evans Date: Mon, 18 Feb 2019 21:36:16 -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" X-Rspamd-Queue-Id: 2EE7068462 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.980,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US] 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:36:30 -0000 On Mon, Feb 18, 2019 at 9:20 PM Graham Perrin wrote: > > On 19/02/2019 03:05, Kyle Evans wrote: > > I'd be interested in seeing what happens when you apply this diff: > > https://people.freebsd.org/~kevans/bectl-perf.diff > > > Thanks, I'll let you know. > > In the meantime: here are timings for creating then activating a boot > environment. > > root@momh167-gjp4-8570p:~ # svn up /usr/src > Updating '/usr/src': > At revision 344270. > root@momh167-gjp4-8570p:~ # date ; uptime ; uname -v ; time bectl create > r344270 > Tue Feb 19 03:16:08 GMT 2019 > 3:16AM up 2:41, 4 users, load averages: 1.27, 1.82, 1.59 > FreeBSD 13.0-CURRENT r344013 GENERIC-NODEBUG > 0.000u 0.013s 1:05.83 0.0% 12+140k 22+0io 0pf+0w > root@momh167-gjp4-8570p:~ # time bectl activate r344270 > successfully activated boot environment r344270 > 0.000u 0.018s 1:08.08 0.0% 24+280k 19+0io 0pf+0w > root@momh167-gjp4-8570p:~ # exit > logout > grahamperrin@momh167-gjp4-8570p:~ % shutdown -r now > Oh, sorry, I missed the part where bectl create was also slow -- the patch will likely reveal nothing interesting. How about things like 'zfs list' and 'zfs get all /ROOT/default'? Also slow?