From nobody Thu Jan 2 11:29:54 2025 X-Original-To: net@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 4YP4Hm2fNhz5j5qw for ; Thu, 02 Jan 2025 11:29:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YP4Hm0yv7z475B for ; Thu, 2 Jan 2025 11:29:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735817396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BJi3nE8Tq1Jzne4MJuyrc4kwELw7pIhF7WXu2L+5lsc=; b=cYX/lSHw2rV0aX+LETmfK9DoXE22BE7GNMxCuvcrCCAOaWGfKr6zecyZ6U6CLZBnw3p7Cb FhZdGSrgULmxvnewdrmCnuactvn1N1QbDIP2l5xg5idyK4Q3siEgwdY6Eh81R9rr6JSpOd yof/VkeBUbew5GLUsTL/s7ytOEFxECe1kykycxbmdF4k8ycPfqskLtG58FcGs/0PPwWCmx 2r0exCt0jZFz+NKCTlhK6Fx7yEMq6/H9fqzFsHJDw0NKwtePLPawSnu25iWbUHzLRWGnxe Ehh0xtdHQjCC+H6fKNKk63n8YZw8ttPjH5JrUJeaB2G+k2j91jjqN9Wgz6TXGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735817396; a=rsa-sha256; cv=none; b=D5BITqD4Ge5sTWLeHQvDxKsPfk3/H3KD4/PF5uWksnK0ST0A7Nnk82egD3cDeunnPW4oJN C0BrBiKQSt//0547RsQQdfDR6flBqKoNz6JxNCIOeufqpZG6aurfcuIpptGXAUVNcqBuOG E4Jf4g1NblBQOO9uh5YTEwyEgsJXvmx7j2sFgeR2sTWEhdb1Bvkaw9zObuq3QijBYCpuJc 05usb/aIcqDB1dm5u02Ge6+CPfBhtuhkLgVAosqzGCnI36q9DJp5ZVLhsg4Zh97Awe8gfr bMczbWnlKh9fluebE8GlclSmFB8iZMQfQQiElMFss13wyZnbm+ZuPy3vNS8VKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YP4Hm0474zbSm for ; Thu, 02 Jan 2025 11:29:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 502BTtQp050740 for ; Thu, 2 Jan 2025 11:29:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 502BTtMw050739 for net@FreeBSD.org; Thu, 2 Jan 2025 11:29:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 280037] KTLS with Intel QAT may trigger kernel panics Date: Thu, 02 Jan 2025 11:29:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 3226388001@jcom.home.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280037 --- Comment #17 from ss3bsd <3226388001@jcom.home.ne.jp> --- Created attachment 256343 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D256343&action= =3Dedit experimental patch that utilizes extra IRQ instances of QAT driver I have created an experimental patch that utilizes extra IRQ instances (wit= h a queue for each) of QAT driver, which might improve the performance on high = load where driver stalls (EAGAIN) occur. This patch introduces a sysctl entry to switch the behavior. With the option enabled (dev.qat.0.use_extra_instances=3D1),=20 - I see fewer driver stalls in question - I could not actually confirm the throughput improvement because 10GbE is saturated even with the option disabled IRQ statistics shown in sysctl after some traffic: % sysctl -a | grep qat | grep irq irq105: qat0:b0:217 @cpu0(domain0): 315445 irq106: qat0:b1:219 @cpu0(domain0): 197384 irq107: qat0:b2:221 @cpu0(domain0): 0 irq108: qat0:b3:223 @cpu0(domain0): 0 irq109: qat0:b4:225 @cpu0(domain0): 0 irq110: qat0:b5:227 @cpu0(domain0): 0 irq111: qat0:b6:229 @cpu0(domain0): 0 irq112: qat0:b7:231 @cpu0(domain0): 0 irq113: qat0:b8:233 @cpu0(domain0): 0 irq114: qat0:b9:235 @cpu0(domain0): 0 irq115: qat0:b10:237 @cpu0(domain0): 0 irq116: qat0:b11:239 @cpu0(domain0): 0 irq117: qat0:b12:241 @cpu0(domain0): 0 irq118: qat0:b13:243 @cpu0(domain0): 0 irq119: qat0:b14:245 @cpu0(domain0): 0 irq120: qat0:b15:247 @cpu0(domain0): 0 irq121: qat0:ae:249 @cpu0(domain0): 0 % sysctl -a | grep qat | grep irq irq105: qat0:b0:217 @cpu0(domain0): 117087 irq106: qat0:b1:219 @cpu1(domain0): 303001 irq107: qat0:b2:221 @cpu2(domain0): 631575 irq108: qat0:b3:223 @cpu3(domain0): 536653 irq109: qat0:b4:225 @cpu4(domain0): 534724 irq110: qat0:b5:227 @cpu5(domain0): 697166 irq111: qat0:b6:229 @cpu6(domain0): 708141 irq112: qat0:b7:231 @cpu7(domain0): 726079 irq113: qat0:b8:233 @cpu0(domain0): 0 irq114: qat0:b9:235 @cpu1(domain0): 0 irq115: qat0:b10:237 @cpu2(domain0): 0 irq116: qat0:b11:239 @cpu3(domain0): 0 irq117: qat0:b12:241 @cpu4(domain0): 0 irq118: qat0:b13:243 @cpu5(domain0): 0 irq119: qat0:b14:245 @cpu6(domain0): 0 irq120: qat0:b15:247 @cpu7(domain0): 0 irq121: qat0:ae:249 @cpu0(domain0): 0 Related topic found: https://forums.freebsd.org/threads/qat-engines-and-cryptodev-usage-underuti= lised-card.95415/ Note that how many engines used (discussed at the topic) is perhaps irrelev= ant to how many IRQs used. --=20 You are receiving this mail because: You are the assignee for the bug.=