From owner-freebsd-stable@freebsd.org Thu Feb 25 23:44:10 2021 Return-Path: Delivered-To: freebsd-stable@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 259B054D988 for ; Thu, 25 Feb 2021 23:44:10 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2j.ore.mailhop.org (outbound2j.ore.mailhop.org [54.148.113.140]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DmqBK4fB9z3wNH for ; Thu, 25 Feb 2021 23:44:09 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1614296648; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=D5r2b7CwrpoxoOc/J6V9+Pl/XXUm7EumtbqkHyiEph0Ud0BCPJhCmfZNcOAemvauvc1lm3B9xLnmD p7UpjjeTTcrjOt28baZqDSpE0S/CmS/VBjGNtvhSwwu8XA894rGtGSmOgfXGuNCEtkyNe/KnU4XBqv SI5RMklfSLvZrejFXTuxWMP1IhpZbaYLObStqUtXtn07ntZnfLtPXy8LAKDY9I3s7pxyojI3TXY7Gp X+0fk2pCiNAj6ECRdEacHPejyslcrPUXNFYQDiPFDKyGhnnvzXfhiXTjm3l1Xgw3AmQ2RoCbqxNXtA Pcb5N/hqrpyIULarwiGrZZ8vGIwlsXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=D9vHdq4sHb35M0+M/+ql4r+S8aapkE/B53eJ4EQhcCg=; b=tGy02o3BhoYi7/NLZwC4tsngI8ojYjVyi6qN8hLU2ur6YfZLqRfWy95V8LNvnDZYKJEBc8rYJ1U3k VXkZ2+6uTqLKwNwxBrRE6ttEOf5avejxLE/SaC9d+CSJ2PhE8289j3lkgRnEDpa7BAeP7q/563dSbW l4QGDqgbzLwpfgVkTZ4PRi1QmdDDEtjoIE+7Rj6xYH12H0yW7mYr1wvmWOFsyQx0+Kc6O7MeBfaUQY DeMJisxq3YR4YHPvViQIRRt5xmEcs3PFs/+VdDOD7WgwJKX/mJxTSuVNvZEZjqb1vAiFvRCyOSjPIq OTnmBhIa8vFdeQFPAAyqNWbyayLrKgQ== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-low; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=D9vHdq4sHb35M0+M/+ql4r+S8aapkE/B53eJ4EQhcCg=; b=lTutW1Bko47A1m5hdjEUns0NYzDcZkqAsfxQDdHGbUD/iINDNA7i55hhteTovH9H4OemyQi7MrIOf bIBM7/AAaVueRrcyJ8jhPu/H/tiAM3jm573zZ0Qp862fqi944K7EmLlCt6/3uLyiAgaN553k++swvk 5XG9V+3vQi3hd4ue/ky9xpSzXVP7F9/qNJPFQp7GnyLanFhAB84v0jsW+NQcHCEbf08OA2SKCV1NA7 LRClx9rAuBTMH6Cr/Y70koLHpigEn+/eeDbi3KOdOrQV3Kn14qxf7DRun+gA6dBHA5eY6UBBMotO+s tt+cZTaoUjrEsSZ948sZ9vG4VoaBi9A== X-Originating-IP: 67.177.211.60 X-MHO-RoutePath: aGlwcGll X-MHO-User: 593f73b8-77c3-11eb-ad62-59765e228ffb X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 593f73b8-77c3-11eb-ad62-59765e228ffb; Thu, 25 Feb 2021 23:44:07 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 11PNi6C6033125; Thu, 25 Feb 2021 16:44:06 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: Drastic slowdown for geli attach From: Ian Lepore To: Kevin Oberman , FreeBSD-STABLE Mailing List Date: Thu, 25 Feb 2021 16:44:06 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DmqBK4fB9z3wNH X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 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, 25 Feb 2021 23:44:10 -0000 On Wed, 2021-02-24 at 21:34 -0800, Kevin Oberman wrote: > Sometime around the first week of this month (February) the time to > do a > geli attach on my 13.0-ALPHA3 amd64 system sharply increased. It > started > taking about 10 seconds. Prior to this, it took about 3-4 seconds. I > have > not seen any issues with the disc after it attaches, I am simply > concerned > that the longer time may be indicative of a deeper issue. > > The system is a ThinkPad L15 with a CometLake i5-10210U and a Seagate > ST2000LM007-1R8174 2T HDD. > -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to " > freebsd-stable-unsubscribe@freebsd.org" In my experience, the thing that takes the most time in a geli attach is the iterations of PKCS#5v2 it performs. When you setup geli on a partition it calculates how many iterations take about 2 seconds to perform (unless you provide a specific value with the -i flag). If you set up geli on a very fast machine then move the storage to a slower machine, it may take much longer than 2 seconds. (And if you have 10 drives to attach, 2 seconds each becomes annoying, so I tend to use -i with a small-ish number like 5000). Or, in your case, maybe something has changed like it used to use aesni accellerated instructions and now it doesn't for some reason, like different default flags got used on the build, or something changed in the crypto and/or driver framework. That's the kind of thing I'd be looking for. -- Ian