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

The high CPU usage of SoftMotor occurs when MDEL is set to -1 #21

Open
physwkim opened this issue Jun 9, 2023 · 0 comments
Open

The high CPU usage of SoftMotor occurs when MDEL is set to -1 #21

physwkim opened this issue Jun 9, 2023 · 0 comments

Comments

@physwkim
Copy link

physwkim commented Jun 9, 2023

If a signal that does not change in value but is updated/monitored periodically (1 Hz) is input to the SoftMotor's Readback, and -1 is entered in the
"$(P)$(SM)CalcRevs.MDEL" field, the motor record is updated at a very fast rate.

https://github.com/epics-modules/std/blob/1b416dbb74fb54060395347433c30361bd276424/stdApp/Db/softMotor.db#LL17C21-L17C21

The issue was resolved when the above line in softMotor.db was changed from PP to NPP.

Is there a reason to use PP instead of NPP? I'm also curious about why the CPU usage increases significantly when using PP.

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