Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2022 00:10:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        apache@FreeBSD.org
Subject:   [Bug 266873] www/apache24: creating forked processes at 100% CPU spinning in sched_yield()
Message-ID:  <bug-266873-16115-8u6D65m3Zu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266873-16115@https.bugs.freebsd.org/bugzilla/>
References:  <bug-266873-16115@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266873

Eero H=C3=A4nninen <fax@nohik.ee> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fax@nohik.ee

--- Comment #7 from Eero H=C3=A4nninen <fax@nohik.ee> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266873-16115-8u6D65m3Zu>