Skip to content

Suggestion: Increase priority for the Main MiSTer process #4

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

Open
bootsector opened this issue Jun 12, 2019 · 7 comments
Open

Suggestion: Increase priority for the Main MiSTer process #4

bootsector opened this issue Jun 12, 2019 · 7 comments

Comments

@bootsector
Copy link

/etc/inittab entry for MiSTer process should be:

::sysinit:nice -n -20 /media/fat/MiSTer &

@sorgelig
Copy link
Member

which function improved by this?

@bootsector
Copy link
Author

I believe this process should be prioritized by the Linux kernel against all the other processes running in the system. Today, its priority is the same as all the other running processes. This configuration should put Main MiSTer in front of the others in the Kernel process scheduling, improving overall responsiveness (although not easily perceivable) of the services provided by Main MiSTer.

@sorgelig
Copy link
Member

basically MiSTer process is running on separate CPU core, so it has 99.9% of time.

@bootsector
Copy link
Author

That helps. But since it has same priority (20) as the other processes, kernel won't give it special treatment/priority if needed, for some reason.

@hmusta
Copy link

hmusta commented Jun 12, 2019

Yes, but those other Linux processes should ideally be essential for maintaining the system, so it's best that they get equal priority. If there is a slowdown issue, the proper solution would be to identify processes related to non-essential services and just remove them if possible.

@bootsector
Copy link
Author

bootsector commented Jun 12, 2019

Well, my point is: FTP server can wait, let's say, 16ms for CPU attention, but input processing inside Main MiSTer can't.

Can't see any "unnecessary" process from htop here, but I see that, given the importance of Main MiSTer, it should be given at least higher priority among other processes.

@sorgelig
Copy link
Member

i think it's more about lowering the priority for less important tasks like FTP, than boosting the MiSTer.

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

No branches or pull requests

3 participants