Issue with ULE scheduler

From: Christos Chatzaras <chris_at_cretaforce.gr>
Date: Thu, 26 May 2022 11:59:28 UTC
CPU: AMD Ryzen 9 5950X 16 Cores (32 Threads)


I use this command to compress a lot of images:

find . -iname "*.jpg" -exec ~/graphicsmagick/bin/gm mogrify -strip -quality 75% {} > /dev/null 2>&1 \;


The issue is that GraphicsMagick (the same with ImageMagick) after some time hangs, the process usage is 100% and truss shows:

sched_yield() = 0 (0x0)
sched_yield() = 0 (0x0)
sched_yield() = 0 (0x0)


Does anyone else has such issues with ULE scheduler ?


I found this https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208421 which may be related.