From nobody Mon Oct 30 04:09:00 2023 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SJfsc6Jlhz4ycld for ; Mon, 30 Oct 2023 04:09:08 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SJfsc5S6Rz3SpR; Mon, 30 Oct 2023 04:09:08 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698638948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YGmg6HCM3RoeVy5XYeGllr2NILw0vRhgknGxDnS4P54=; b=wOQbzVF7Y9078ecf2RvdPfDO8c2AjrB5G11EvGCYuxqDe7BqooY/qhR7PiAP58N6jHbx3m Uvh8KEhQTFRUVQ1zAhLjgTyhQ827S4RHUZHuuCEFDuLZWnNRJF06Bruyh3u41CsZ8gC4Q2 Pb35bxCGA0QQrVwT/UzWScZXAnN1laCz1hlTHzb2tYbQloDTeA2LgHn2YbQ8h3WNYqzEqk +E+NogsAFc0LMemLg0MuH2omN606PTT0GngdQ7qbMgc+QN14SP29wMldgXzqYNmTVG5A0N XnDv3HM7hBe2J3THsJfX4nVuSlHYJ4zOmkKU5wrUuMbudj8gxR0UybEesgInbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698638948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YGmg6HCM3RoeVy5XYeGllr2NILw0vRhgknGxDnS4P54=; b=CShixa7zaVbz0PQJOCrFwCB1gZfW9n1QnNAHM2jU77PD8NHctJIZwr8/YiBhZ/ampGkwoK FmAIJqn7jlcJrABNPjAMfIHsM6mw9mYtptd0gf9YxoTrkj4huRehr+n8VlzZCXkBFZBJl6 LeIM8jW9XPsaLRTBWVYB7mc4pZpQOhpNDbxSkaIrfRL4uodh5/12VJvYj+SlPiwslXIGrs CxQkWNveHA4VXrF3jGWlPy4VZFepCqQ6Oa3k28O3kHxtg54RTgvsgac7PsyaCTBkWX5J2r myhxyMMLfmdRbPngeWc2PSXY7NCVYodqZDmPwsW79SF/voGMnW7gp3WDbXe/wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698638948; a=rsa-sha256; cv=none; b=h/xl7kOT7Bn4Nln7ZmWPiCxWMCmP7pYz6XS+88tvNOm4k6Ml3U7tKAKep9X3MkZEprbKY4 w1ODekoYuQCJa+tbFE8Jxt6ZdeOCYz4q2QwErwchD9HjZqQWf9uJZ6mutZDXL+uNXIQ8/u Vc5aS5aDzca5JojrNXhkDyHdHOzKq3KkQOu+7EmhqF1+1QUK9rCbuOSuM0VvG8pTa93vWZ JAWGNgcrrTjgeV/ITQjTa+m0k2RlkGXtQNTDlMJcBx4oeaHY/xzAc6395NJgO1anUzDiMr s1C9syQ9E7hGd0kgbnynCQsjzHytLapCC2d35rTPkmleae3N2AuN/U1HfAwe9w== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SJfsb3phQz11kJ; Mon, 30 Oct 2023 04:09:07 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: KTLS thread on 14.0-RC3 From: Zhenlei Huang In-Reply-To: Date: Mon, 30 Oct 2023 12:09:00 +0800 Cc: FreeBSD Current , John Baldwin Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Gordon Bergling X-Mailer: Apple Mail (2.3696.120.41.1.4) > On Oct 29, 2023, at 5:43 PM, Gordon Bergling wrote: >=20 > Hi, >=20 > I am currently building a new system, which should be based on = 14.0-RELEASE. > Therefor I am tracking releng/14.0 since its creation and updating it = currently > via the usualy buildworld steps. >=20 > What I have noticed recently is, that the [KTLS] is missing. I have a = stable/13 > system which shows the [KTLS] thread and a very recent -CURRENT that = also shows > the [KTLS] thread. >=20 > The stable/13 and releng/14.0 systems both use the GENERIC kernel, = without any > custom modifications. >=20 > Loaded KLDs are also the same. >=20 > Did I miss something, or is there something in releng/14.0 missing, = which > is currenlty enabled in stable/13? KTLS shall still work as intended, the creation of it threads is = deferred. See a72ee355646c (ktls: Defer creation of threads and zones until first = use) > Run ktls_init() when the first KTLS session is created rather than > unconditionally during boot. This avoids creating unused threads and > allocating unused resources on systems which do not use KTLS. ``` -SYSINIT(ktls, SI_SUB_SMP + 1, SI_ORDER_ANY, ktls_init, NULL); ``` >=20 > Any help for getting an insight on this would be much appreciated. >=20 > --Gordon Best regards, Zhenlei