Re: handbrake-1.3.3 high CPU load while idle on amd64

2020-11-21 Thread Morgan Aldridge
On Fri, Oct 30, 2020 at 10:12 PM Brian Callahan  wrote:
>
> On Thursday, October 29, 2020 1:29 PM, Morgan Aldridge 
>  wrote:
>
> > Hi Brian and @ports,
> >
> > Thanks for the HandBrake port. I'm seeing high CPU load with
> > handbrake-1.3.3 on 6.8-stable amd64 while ghb is open and idle,
> > starting at first launch. This is without opening any sources.
> >
> > Top shows high CPU load for gbh:
> >
> > 25307 1000 2 0 42M 69M onproc/1 poll 19:23 179.64% ghb
> >
> > And I ran a ktrace, which shows tight looping of the following:
> >
> > 25307 ghb 0.11 CALL open(0x6c1edf35b40,0)
>
> Thanks for the report. I will try to find some time this weekend to
> look at it.

Thanks, Brian.

I can confirm the same issue on a recent snapshot of 6.8-current on
the same Core2 Duo hardware.

I have reached out to the Handbrake folks on IRC and they're not aware
of any issues, but don't have that many users of the GTK+ interface on
BSDs. They seemed to think it was likely a GTK+ issue. I did try `gbh
-x` for debug output, plus the GTK+ Inspector, but neither gave me any
additional clues as to potential causes.

Morgan



Re: handbrake-1.3.3 high CPU load while idle on amd64

2020-10-31 Thread Brian Callahan
Hello Morgan --

On Thursday, October 29, 2020 1:29 PM, Morgan Aldridge 
 wrote:

> Hi Brian and @ports,
>
> Thanks for the HandBrake port. I'm seeing high CPU load with
> handbrake-1.3.3 on 6.8-stable amd64 while ghb is open and idle,
> starting at first launch. This is without opening any sources.
>
> Top shows high CPU load for gbh:
>
> 25307 1000 2 0 42M 69M onproc/1 poll 19:23 179.64% ghb
>
> And I ran a ktrace, which shows tight looping of the following:
>
> 25307 ghb 0.11 CALL open(0x6c1edf35b40,0)
>

Thanks for the report. I will try to find some time this weekend to
look at it.

~Brian



handbrake-1.3.3 high CPU load while idle on amd64

2020-10-29 Thread Morgan Aldridge
Hi Brian and @ports,

Thanks for the HandBrake port. I'm seeing high CPU load with
handbrake-1.3.3 on 6.8-stable amd64 while ghb is open and idle,
starting at first launch. This is without opening any sources.

Top shows high CPU load for gbh:

25307   1000 20   42M   69M onproc/1  poll 19:23 179.64% ghb

And I ran a ktrace, which shows tight looping of the following:

25307 ghb  0.11 CALL  open(0x6c1edf35b40,0)


[439/1886]
 25307 ghb  0.08 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.19 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.05 CALL  open(0x6c1f3b0e300,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/servers"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.05 CALL  open(0x6c26b7500c0,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.05 CALL  open(0x6c228a75200,0)
 25307 ghb  0.08 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.04 CALL  open(0x6c2a563be00,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.05 CALL  open(0x6c1f03ce8c0,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/servers"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.04 CALL  open(0x6c277d22480,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.04 CALL  open(0x6c214fe7ec0,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.04 CALL  open(0x6c2b5ebf0c0,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/servers"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.04 CALL  open(0x6c26d14e980,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.05 CALL  open(0x6c1de4d4600,0)
 25307 ghb  0.06 NAMI
"/home/username/.config/gtk-3.0/bookmarks"
 25307 ghb  0.09 RET   open -1 errno 2 No such file or
directory
 25307 ghb  0.09 CALL
clock_gettime(CLOCK_MONOTONIC,0x6c2b6e0fdf0)
 25307 ghb  0.06 STRU  struct timespec { 344671.176141669 }
 25307 ghb  0.03 RET   clock_gettime 0
 25307 ghb  0.05 CALL  poll(0x6c2728c5250,2,3984)
 25307 ghb  0.109689 STRU  struct pollfd [4] { fd=3,
events=0x1, revents=0<> } { fd=10, events=0x1,
revents=0<> } { fd=11, events=0x1, revents=0<> } { fd=36,
events=0x1, revents=0
<> }
 25307 ghb  0.05 RET   poll 0
 25307 ghb  0.05 CALL
clock_gettime(CLOCK_MONOTONIC,0x7f7d55f8)
 25307 ghb  0.06 STRU  struct timespec { 344671.285856583 }
 25307 ghb  0.03 RET   clock_gettime 0
 25307 ghb  0.15 CALL
clock_gettime(CLOCK_MONOTONIC,0x7f7d55e8)
 25307 ghb  0.06 STRU  struct timespec { 344671.285881582 }
 25307 ghb  0.03 RET   clock_gettime 0
 25307 ghb  0.05 CALL  recvmsg(10,0x7f7d5458,0)
 25307 ghb  0.06 RET   recvmsg -1 errno 35 Resource
temporarily unavailable
 25307 ghb  0.09 CALL  poll(0x6c220b325e0,4,200)
 25307 ghb  0.209924 STRU  struct pollfd [4] { fd=3,
events=0x1, revents=0<> } { fd=10, events=0x1,
revents=0<> } { fd=11, events=0x1, revents=0<> } { fd=36,
events=0x1, revents=0
<> }
 25307 ghb  0.04 RET   poll 0
 25307 ghb  0.05 CALL  clock_gettime(CLOCK_MONOTONIC,0x7f7d55f8)
 25307 ghb  0.05 STRU  struct timespec { 344671.495847098 }
 25307 ghb  0.03 RET   clock_gettime 0
25307 ghb  0.14 CALL
clock_gettime(CLOCK_MONOTONIC,0x7f7d55e8)

[384/1886]
 25307 ghb  0.06 STRU  struct timespec { 344671.495871098 }
 25307 ghb  0.03 RET   clock_gettime 0
 25307 ghb  0.05 CALL  recvmsg(10,0x7f7d5458,0)
 25307 ghb  0.06 RET   recvmsg -1 errno 35 Resource
temporarily unavailable
 25307 ghb  0.09 CALL  poll(0x6c220b325e0,4,200)
 25307 ghb  0.209928 STRU  struct pollfd [4] { fd=3,
events=0x1, revents=0<> } { fd=10, events=0x1,
revents=0<> } { fd=11, events=0x1, revents=0<> } { fd=36,
events=0x1, revents=0
<> }
 25307 ghb  0.05 RET   poll 0
 25307 ghb  0.06 CALL  clock_gettime(CLOCK_MONOTONIC,0x7f7d55f8)
 25307 ghb  0.06 STRU  struct timespec { 344671.705842733 }
 25307 ghb  0.03 RET   clock_gettime 0
 25307 ghb  0.18 CALL  clock_gettime(CLOCK_MONOTONIC,0x7f7d55e8)
 25307 ghb