Re: Issue with ULE scheduler

From: Mehmet Erol Sanliturk <m.e.sanliturk_at_gmail.com>
Date: Thu, 26 May 2022 14:23:39 UTC
On Thu, May 26, 2022 at 3:00 PM Christos Chatzaras <chris@cretaforce.gr>
wrote:

> 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.
>
>


A very ignorant idea :

Make a list of .jpg  files  .
( Without using "find" ) By using a loop  traversing list of .jpg files :
    use   ~/graphicsmagick/bin/gm on  a .jpg file  supplied from the above
list

Using a  combined single statement  may cause  exhaustion of
(some ) internal resource(s) because they are not released on each
execution of  ~/graphicsmagick/bin/gm ?

With my best wishes .

Mehmet  Erol  Sanliturk