toolboc / psx-pi-smbshare

A swiss army knife for enhancing classic game consoles with Raspberry Pi
387 stars 34 forks source link

Spiked CPU usage from Kaiengine on Pi Zero W #41

Open cdlenfert opened 2 years ago

cdlenfert commented 2 years ago

When I look at htop I see that the kaiengine process is using nearly 100% CPU.

image

I've has similar issues in the past (not using psx-pi-smbshare) and it was due to the way I had launched the process to run in the background. When I ran the process in the foreground in my shell session, CPU usage was closer to 11%. I was also able to start kaiengine in a screen session and detach, and usage stayed low.

I realize this may be low on the priority list, but just wanted to share my findings and see if I can assist in coming up with any solutions. I imagine running at 100% CPU over time won't be good for the Pi Zero's longevity.

CrunchBite commented 1 year ago

Ah its likely TTY related. I'll reproduce this and the team will develop a fix 👍

teamxlink-dev commented 1 year ago

Should be resolved completely by XLink Kai 7.4.44 and the changes in 96a902ec7e10d5b0d326593b73445bb86adfffef

MasonT8198 commented 1 year ago

@cdlenfert please test this and let us know how this works before I close.