Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALSA: excessive IO causes high CPU usage #810

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

ALSA: excessive IO causes high CPU usage #810

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 1.2
Reported for operating system, platform: Linux, All

Comments on the original bug report:

On 2020-01-13 18:08:12 +0000, Paul Cercueil wrote:

Created attachment 4157
Patch to fix the issue

Quote from the patch:

"On GCW Zero jz4770 platform, I saw higher than usual CPU usage when
running a more recent kernel (4.xx series versus 3.xx). Upon
investigation, it was found that the ALSA pcm file was not blocking
as it should. This resulted in ~30-50,000 system calls a second that
were unnecesary.

After adjusting the order in which SDL requests its pcm blocking mode,
the number of syscalls a second has dropped to a much smaller figure,
< 1,000/sec if I recall correctly. CPU usage also dropped by ~5%."

On 2020-03-23 02:04:35 +0000, Ryan C. Gordon wrote:

Generally we don't mess with SDL 1.2, but this patch was straightforward enough that I've applied it to revision control here: https://hg.libsdl.org/SDL/rev/9c0fc6e28c5e

--ryan.

On 2020-06-24 22:30:11 +0000, Ozkan Sezer wrote:

Does the default/2.0 branch not need this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant