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.= From nobody Fri May 3 13:21:54 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 4VWBKZ6B0pz5K2B4 for ; Fri, 3 May 2024 13:21:54 +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 4VWBKZ31lZz4ms3 for ; Fri, 3 May 2024 13:21:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714742514; a=rsa-sha256; cv=none; b=tYBHaOv5UHuVlRbPH2AINgLowaJKRjzFMbzsEAq3bzDMUk6fMhgzzqPxoOXb189Jn+6AdS VVG1IRS7KSJ2ypCeFQ0mlGbqpDzVzxD75BefHoQ1htupda3PSF+5DI/wtqlt1zutkUYy4u YYNmpkZzegqCD7PTENCBvpsbSOc6wN7kj6iKW7hiLIJLwyHUMzY37RDf7iPzleuShzC/d2 tDBoHO9LQy5rii3R+56GyLmxPCgRL4Ghoy30Th20Nj2SHBQIv02gztOIn0V94NL42Yw0aZ wDPZb1ldP0YAOEQJNNeL+0ALUHN44dgv25QaYKbbzhdCoZeNAMHe2wjZV403Iw== 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=1714742514; 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=FjkznCZ0OH6MAb6OC6dcWxpGPwN0/o30dBQ+w+tbYa8=; b=G4sraUzsxfFczfFJwryHVVqt/gN6qYQpM6Fq0HMR/vJkGjTZcsbLUP5kyHK/Yk699h6EUX JIMSoUi4XZpp1wkm85Ufsr3m1tpIck3Kq+tx2NnUsBV4DfOokSztrWnX+kTCqHHkz7EPrM FZY+zkj9E5pJNxAWnGLaJNjNYCam+Yu6PNqUjg9qMoljZMETTPJKoEChOC2rfZlQFBBseg BwUST6SJnG4DssEt8HvX8AMDq67b4d2G3/8p3PcJohB9EKUrU+rPZ3hvx3HplBDFi/FlDP rNe8K/PMb2UnlzJFsp9B67LQxntcGaocLIZz6T9L+7YLeMsfyHFnGQ0UIVMaeA== 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 4VWBKZ2dYxzn5s for ; Fri, 3 May 2024 13:21:54 +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 443DLsT3047515 for ; Fri, 3 May 2024 13:21:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 443DLsj1047514 for threads@FreeBSD.org; Fri, 3 May 2024 13:21:54 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: Fri, 03 May 2024 13:21:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: amistry@am-productions.biz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 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 --- Comment #1 from amistry@am-productions.biz --- Have you tried fiddling around with cpuset to see if you can restore the old behavior? We've got some similar scripts on some old servers that I'm concerned about when we upgrade. I'm assuming you're using pcntl_fork()? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri May 3 13:31:26 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 4VWBXZ5G50z5K2ZH for ; Fri, 3 May 2024 13:31:26 +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 4VWBXZ2yGDz4nKZ for ; Fri, 3 May 2024 13:31:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714743086; a=rsa-sha256; cv=none; b=YIFkUajrqoL8xoUAUdyYS3GPFlWPXizdk2vCDrONYsYC5AhYqUxS5dtDE4K5Mf6WqLqtOs +6DTVs/6PnbgU1B4ZpM29O1AskwOp8AELnDQXGA6Mq6LgfpH41qa8nWuBtite4H/H3/AtP jCOU/E9dRc0gN86tqSRX0ihcVecWlZYg+BsQWWrqWtT3gKMg74/Qum8lAfjyplPfw6UR1n n/upp9wC/i2+M+kgoaobjdtHiv+AP2WNDq3372CjeWx8PJ0raD+Ed2rYN9VxJA8VRjfOjv sFxiCqEaUXW21+IpQKX9X12mOAd81XLVr/HBpP1RZxJXNbLRwbDFWv/tUGtMkA== 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=1714743086; 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=utAJZp61w9K2+Xq6y+Ccj9JF+GxBE992eqP1dlTyMuM=; b=vFRY2Qf2dt+Z8GnWvIjtIv7JqV3PeAa2iBG9rFSXf+Y6Jvjq72LeMwBslklDbcwefrYf8d 6dJtK++5x6F4MumUC30x8qKxCMxQ588zgFRZRkQD9tlqGfw7uVM6BoYNzH/0coEqf9atYj bESmRhgbjFq7wqtaDiPQhlUVRjk+A1mVvsftGQfREW6dV9r+0AUm3j1ez5O4oIUdCnnCpy G+Gh8Zk88+ym8aGAYH4P+cwo4Dd9nzdcpiiYoq+7EeCVtCmAm6LVdFv07hDX9bgl6cTtcV XRzBGdgyMybiSY4YHjDxqX2g4K+pwuV/+keMzHPsH73Su4jHZZyEeKRDCTjIyQ== 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 4VWBXZ2Z66zn4N for ; Fri, 3 May 2024 13:31:26 +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 443DVQ6n094519 for ; Fri, 3 May 2024 13:31:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 443DVQhh094514 for threads@FreeBSD.org; Fri, 3 May 2024 13:31:26 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: Fri, 03 May 2024 13:31:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: vvd@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 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 Vladimir Druzenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vvd@FreeBSD.org --- Comment #2 from Vladimir Druzenko --- Is behavior the same on single socket hosts and on multi sockets (if it's VM check CPU configuration)? Can it be related to NUMA? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri May 3 15:55:34 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 4VWFkt6F4mz5J1R1 for ; Fri, 3 May 2024 15:55:34 +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 4VWFkt4DDzz3xnb for ; Fri, 3 May 2024 15:55:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714751734; a=rsa-sha256; cv=none; b=YHUGQVxKPgy3Im7/RckH08s97HMWKGRZBIDrZQ9EnEV+pVizR/5t1Shl84VUU1iw1yabyT vnQ/oi1f40qqXORctmrMSmP/AFA6H5Q2RcQgUkOitGWKXs2d2nnYdOctfHuCcilMr5VN8s mIWN9OMU/bZVLeSdF+++s2dCdH6YMuHZ4Xr8Z0cdf6kMCZBwT5yLN5MabHpiXtJlWLIyOw 54M2q6j5G8S8y9M41DYTV8TIJe9knGRk2Z94SEooXMQRkPgel9MBli9vYRQdiiWS8MwYmP CeU/dfc1JzICLdeDeO7mKD4ajDB1qbBhnWVSFmQLab7VPS5IguEhgGoJOIPw1g== 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=1714751734; 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=ptnCHy7cjd9BoLMtaEf5PZKogZH7LHspxArn5CXZMFc=; b=ILuq2VutRmKZaJFdr9I5WKa7VyS49WqF2OwjhxVX03bw9D0JM/vQNyVY5iewksZhJdg2kj XNZheOdmTMMPA3hiHeyTHMK6xDeIzfL/Jmlytpt0MvI9dyhtpf8ypVm5Y1nE4NnU4+jlnI /uBYkPTcxcFTRZRuiwB5puTFui28GkXDSetrT0n1DMwJHJucMy0QXKMqArmKWkH/whvbX0 C8VgVlGn/M8LjQiP2hVWc7YYBQK6RoWpkGqVI//IFczscJtzz4nn5qGjN1I3+t24/hPR6a 0az8j2A0o0MFH99ctTS0xh47kzlNy38fc7vAPJgU/i1xlj9FCvIuVzhAfDeO8Q== 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 4VWFkt3qpmzrtK for ; Fri, 3 May 2024 15:55:34 +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 443FtY8M003904 for ; Fri, 3 May 2024 15:55:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 443FtYvl003903 for threads@FreeBSD.org; Fri, 3 May 2024 15:55:34 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: Fri, 03 May 2024 15:55:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: 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: 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 --- Comment #3 from cbl@cbl.us --- (In reply to Vladimir Druzenko from comment #2) A single socket machine also has the issue on 13.3. Forked children are loc= ked to the same core. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri May 3 15:57:16 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 4VWFmr2mp8z5J1Ws for ; Fri, 3 May 2024 15:57:16 +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 4VWFmr16t7z40lh for ; Fri, 3 May 2024 15:57:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714751836; a=rsa-sha256; cv=none; b=l5yj4vUwfUF+Xb6Id/PfexyRkbm3eTtuteHJ30Voqb8r+FNUeEEh2fHPUdBoCRJZW1T8my xVcQAqpsHNtXfed/g0E2qMeI3vRVEGeq10lI2W2C2eHTMQHDDzVow3Mp2otGe22ydQY/Hm xwFt8DT3CM02lR3LZMv81REMfNRjsHySBhEvrnYrFLdx0+qyxV9zX7Cjorau481/Oi923a Yu8lcQaspBN8XwwXonc0NTkdqoL4B28Dyr2vNpeOK2mawt5U3GeVtrm9UjEF2quIvn1aCo DgWYu0RtYC9b0sGwNDivO+NHnAYLEzNdvkg99URP81Ln2/0aWVlJJ/mpMBcNXA== 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=1714751836; 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=8CocBo357Ybe5c6abmsyhZM1xpHsFyOL1qQPItFdgBQ=; b=bds+PC7HfEYnWLNah++dIdnsHtEbWQMLlCrrkEwuB9tObxYrzjpwq8q0mGCYeRVk2kmiMJ UaQc+JIxwEgkDuDv2uaU5qkU/nofha7gXZb27MALPrf9Vk+NTPhl2PbodQnPlfdbzcmKzO oZl3LIFOAUAOpu4ZmqJCafw2zFYlOqCg8JW7W0FqqI+UBXeOS0w3mWv73RDwRh5vn5Xf3Y tEuHI8hdGKhOsVGMmld7GQCxq6R784foni5dPqPGfTP+7lu3DepRoWz3sYD/y1UeIN6B87 2MWVG+vcA2ookx6yIQtAVe4xyC79IP4GIFP7Kw+/j+3/Bt+Pmv4GyQG6MuTKbw== 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 4VWFmr0d4vzrtM for ; Fri, 3 May 2024 15:57:16 +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 443FvGSG010485 for ; Fri, 3 May 2024 15:57:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 443FvGxo010484 for threads@FreeBSD.org; Fri, 3 May 2024 15:57:16 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: Fri, 03 May 2024 15:57:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: 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: 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 --- Comment #4 from cbl@cbl.us --- (In reply to amistry from comment #1) We haven't done anything with cpuset yet. pcntl_fork is what we're using. Sample code found here: https://github.com/php/php-src/issues/14117 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun May 5 00:18:16 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 4VX4rS6dZMz5JwjQ for ; Sun, 05 May 2024 00:18:16 +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 4VX4rS5W4Cz4hZ2 for ; Sun, 5 May 2024 00:18:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714868296; a=rsa-sha256; cv=none; b=TCIRin4GY8L3dJTdlGBDNljYah5bkhiCxLzDNcfs5LONql+Th2a3NI/9iHnUeiKkItJ9rd hP2amwSMrs+wYrgfefGnIBonvyCqDWdhGWQmX4YbrWgvtxUItugZymwHYQN1pF/iUUZ8JR +i+u/iOQZVa44CsRSTOMPLz4mCQEnOF4+rgZNIXPl1Y0iWKCxvwDmhtyLpPr1/Feucmti+ HR95HOQMV7GHvZ1rgsJrEIs7yB5xv0Td/h823ntJrE/hWNd4IESRFhGmXpyWrcNvjhbQQz S8Gu7rJwV9qYvAU88B/lsnq6d4SB+YSm9WygRGJh1GcMz3ZxnDlb6Nrycuc/Zw== 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=1714868296; 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=k0Q0BFYzCLHl2it27JFkJhV9ZGOblp1hIH++uPbVzSI=; b=I86H9vqoMN1w2L2+irNR/J37S1ABYrNASOjqjkJF0ZQZO9KJpc26QC5zHYPL8n2GbnJ+b6 mOmqc3zseXvolBZ18bZFaZInPRZkakl9Q7ZsLwgTyp9tNfiRTIG80EyeE5nbWliVoBGFUn jlI/IWM5CrUzaX8HLMCziINcCBoI48/sDFlrjHOgB7ERSe0tglbaaJ8Vh+kO+gXlvn2T4a n8xUL+4RhV/NockMJgYX/L93OOJn1+/Pvu1i6ksJz8b0il5kVqle2jE/h3nfY8vWdEkPaZ Fu1z3PapYVuykt+Y497nBtVhvN+9BQxYSh3MOXDL8EO/DERNGv5Uk9u9n4zBhA== 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 4VX4rS53rqzrZn for ; Sun, 5 May 2024 00:18:16 +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 4450IGsp040425 for ; Sun, 5 May 2024 00:18:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4450IGSY040420 for threads@FreeBSD.org; Sun, 5 May 2024 00:18:16 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: Sun, 05 May 2024 00:18:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: 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: 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 --- Comment #5 from cbl@cbl.us --- More troubleshooting..=20 This issue is occurring on /usr/lib/libomp.so with llvm17, which is the def= ault with FreeBSD 13.3. I installed a few other llvm's via pkg (and even compiled llvm-devel 19.x) = to test things. When I copy over the libomp.so from llvm14 or llvm15 into /usr/lib/ the application starts using all the CPU cores as expected. So something changed in llvm16 and later that is causing our linked application (ImageMagick) to limit itself to a single cpu core. Since FreeBSD 13.2 was still using llvm14 by default, the problem was not occurring then. llvm14-14.0.6_5 - WORKS llvm15-15.0.7_10 - WORKS llvm16-16.0.6_10 - BROKE llvm17-17.0.6 (13.3 default) - BROKE llvm19-19.0.d20240426 - BROKE I'd welcome input on what to try next, or what to report to the LLVM group = to fix the issue. --=20 You are receiving this mail because: You are the assignee for the bug.=