From nobody Fri Nov 25 00:10:15 2022 X-Original-To: apache@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 4NJFcT1lDvz4jVLp for ; Fri, 25 Nov 2022 00:10:17 +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 4NJFcT0d9sz4GT4 for ; Fri, 25 Nov 2022 00:10:17 +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=1669335017; 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=YL9bl1DqNcW9wabcLyNfUS1Vo2/GKmhxsXNyNihpNms=; b=eafFqG94ZHyN6A66uwI0u4CGaVgjwNRCMoVYPzSeFxKPwl6hzxE4wEGkLzmc/s4IDZ2Q+P pgaTm6ZWfWU0ZmMb1UiOxuA+kfPkYNjx6Ytz60KHwj5rap5BEyGkWuAIrAVlpIJL7Niswr JyPI5zaFsS5kUFbD+TN+oKGjGSBxZVJqKUmywMvllEuR4INAEzyqfEqHwZBp2UcGPZihwr cEie8PHZey3S49cZy/akG0qBsECcvrGvaUd36STYnBFTSq/BzScyyemzLauMhA0UKP27nz ortJpd4JgUbbz2OVjVuBpZPrX2xyN/iKySKljGWAekqy7FpsZZZayGAlB7gjVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669335017; a=rsa-sha256; cv=none; b=mevRbMVzQI7V8e6mqMREi+ZchciZqeij+2yz9lw2+ufXcDpQsxaV6zbAh2PGjDy/4tFk8r Zy3mgOh3me91HDsZsC2WIAok/0Zzj5865oYhLMUwesr/u2r8Z11ifyvBnQ+ZIZJCy2pd5C ZrxOIMz7rMsbCozFkxRxQKLBuBp7XvpboU7i4k4aPGItsfQqNXdM/J4leQpZfmE5Fx8V+N 2s0/FnC+M8CCY5MgiZdbmaWW47xSP3DguaoW1ZxfOucf7mSllx4AlNLRPaKt+W1dIPuOc+ 5xoaXjwOZjVIEm4aGrm0plQe0I+7X9bf8NF1matcfxQVsu1sVZ3Fx3m6vazLzg== 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 4NJFcS6qCFzKyM for ; Fri, 25 Nov 2022 00:10: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 2AP0AGRv012806 for ; Fri, 25 Nov 2022 00:10:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AP0AG6Z012800 for apache@FreeBSD.org; Fri, 25 Nov 2022 00:10: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: apache@FreeBSD.org Subject: [Bug 266873] www/apache24: creating forked processes at 100% CPU spinning in sched_yield() Date: Fri, 25 Nov 2022 00:10:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fax@nohik.ee X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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: Support of apache-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-apache List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-apache@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266873 Eero H=C3=A4nninen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fax@nohik.ee --- Comment #7 from Eero H=C3=A4nninen --- This issue seems to be related with libomp and Imagemagcik. I have faced sa= me problem with php-fpm. Php-fpm master process takes 100% cpu and truss show = just endless sched_yield() =3D 0 (0x0) So I have removed OpenMP support from Imagemagcik and let poudriere recompi= le php-gd and php pecl-imagick extension. After that problem is gone. As far a= s I tested, this libomp problem presents in 13.1-RELEASE and 13-STABLE, but not= in 13.0-RELEASE or even 12.2-RELEASE. This issue can be reproduce with Imagemagcik 6.x simply, take jpg format picture about 600kb or larger size and execute: convert -bench 40 image.jpg -sharpen 0x1 null: And watch this process with truss. If Imagemagcik is compiled with OpenMP support then sooner or later you will see: sched_yield() =3D 0 (0x0) and I dont know is this process come to end or not. without OpenMP support process completes fast and there is no sched_yield() loop. Another note, seems that pecl-imagcik Readme file has extra section for Imagemagcik and OpenMP implementations: https://github.com/Imagick/imagick/blob/master/README.md Hope this helps. --=20 You are receiving this mail because: You are the assignee for the bug.=