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

Shutdown speed issues with large screens #1049

Open
ZLLentz opened this issue Nov 21, 2023 · 0 comments
Open

Shutdown speed issues with large screens #1049

ZLLentz opened this issue Nov 21, 2023 · 0 comments

Comments

@ZLLentz
Copy link
Member

ZLLentz commented Nov 21, 2023

Describe the bug

Screens with large numbers of PyDM widgets take a long time to close.

Expected behavior

Closing a PyDM screen should be somewhat fast, or at least much faster than it is now (~30s - 1 minute for my application). The operating system should be able to clean up most of the resources without too much special handling in Python.

Steps to Reproduce

  • Create an application with many, many, many PyDM widgets that connect to different PVs
  • Run the application and close it

I ran a profiler on the closure of pmps-ui, a particularly large applications. I'm attaching the output here, which unfortunately github does not display interactively as it does on my local computer. The full version and some related discussions can be found in the slac slack at https://slac.slack.com/archives/C03KJMEUY5S/p1699988522361479

Note the scale here: 100 samples per second = ~60 seconds to close.

profile

My Platform

rhel7
python 3.9

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