From nobody Thu May 2 22:02:04 2024 X-Original-To: threads@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 4VVnwF3njCz5K7bT for ; Thu, 2 May 2024 22:02:05 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VVnwF0ylhz4DCQ for ; Thu, 2 May 2024 22:02:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714687325; a=rsa-sha256; cv=none; b=LA4BLLqmXOf7oFLx3B8PLSjkPEwDoFqvD6qlI/vBM5i8yT84lwShcQgYPSy4Odf2sYFVdR xWmyKrGW5F15fNjnI4BLoB34EWumt1D2lcUCKnipxwM6DdgASIiUFWHdOxgzJBxrt9QpGv b/WwFlZykSBsbBI1FY8pYCKiAwcaLsbgsPgfvZXt/ElLH5WyFNYeGe3BXEy7f/yrJ7Aj/V tkXz/OnN3ermIBQEI7r+sOGwodNjTkkhsitAXz3Imc5YZjtAjNpiXzmULtSZZ57DdOGv3f qNSZlNtEwlQdVsAzc/H6umbWfmNHi1HwobGo0GqJDax1H+41EfQdYotrFUet+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714687325; 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; bh=7P6k8GJvSfEwmISRfIg1kpB4J29cg0DQNef8Qbxsg/E=; b=xZsdqvJW0CPyHcK1ac7mvbqFJ7A5zCTQSS8J+0OxJTSPum4jazI6OHAcfZW6dkuGytw2T7 KPZZeiihwQ762dmS79/9frZMWOvWUtA6uONZAp1zAlu24NosXnvFV57O5hlwIBAP6OGVRG Yq/dguLHb/afzYt5eKo1wm9qt8KU9KU9ESd0Sb9idCsyfN3yahjOR3tE3PITsxVUrxMWtv pjpLzNl3ddM5UzXZhsiVidZjdzXoKU+s1R6KRbklGdMGWDy9OEM1TgDQFtskZ0b/IG2At6 fn1+2n1Lz9vrF/8yZGXTWcuZf1ff5jealo5tEEnwb0FzBVwdIVjU8h1SSZgM9A== 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 4VVnwF09qZzKBd for ; Thu, 2 May 2024 22:02:05 +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 442M24H8046415 for ; Thu, 2 May 2024 22:02:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 442M24WZ046392 for threads@FreeBSD.org; Thu, 2 May 2024 22:02:04 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: threads@FreeBSD.org Subject: [Bug 278703] Forking on 13.3 restricting to same CPU core Date: Thu, 02 May 2024 22:02:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cbl@cbl.us X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-threads@freebsd.org Sender: owner-freebsd-threads@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278703 Bug ID: 278703 Summary: Forking on 13.3 restricting to same CPU core Product: Base System Version: 13.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: threads Assignee: threads@FreeBSD.org Reporter: cbl@cbl.us We have an in-house php script that processes images. Been running it for years since FreeBSD 9.x or 10.x at least. It forks itself a number of times= to increase the amount of images we can process per second. Sounds normal, rig= ht?=20=20 On FreeBSD 13.2 we've been running great, different CPU cores leveraged per fork. Now when upgrading to 13.3 or 14.0, the php forked processes all end = up leveraging the SAME CPU core, and that slows us waaay down as we're unable = to leverage all the other cores of the server.=20 I've tried a 13.2 userland, and temp booted the 13.3 kernel and the issue d= oes NOT occur. This sort of tells me the scheduler is fine. However, when using= a 13.3 userland AND a corresponding 13.3 kernel, the issues DOES occur and we= 're only able to use a single core.=20=20 Same with a fresh install of 14.0 userland/kernel on a totally separate box. We're seeing this issue on multiple servers with 13.3 and 14.0 using php82 = and php81. Leveraging the pkg php82 binaries from 13.2 land on the 13.3 userland/kerne= l or the 13.3 pkg php82 does not matter, both show the same issue.=20 Something in the userland/libraries in 13.3 apparently restricts the forked php processes from leveraging any additional cpu cores.=20=20 Also note, I read that LLVM was upgraded from v14.x to v17.x in 13.3-RELEAS= E. I installed llvm14 from pkg and recompiled from source php82 and php-extensio= ns using llvm14, and still no joy.=20 Any ideas where/what/how/why? --=20 You are receiving this mail because: You are the assignee for the bug.=