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

ERT client high CPU usage #380

Closed
markusdregi opened this issue Jun 4, 2019 · 7 comments · Fixed by #541
Closed

ERT client high CPU usage #380

markusdregi opened this issue Jun 4, 2019 · 7 comments · Fixed by #541
Assignees

Comments

@markusdregi
Copy link
Contributor

It has been observed high CPU usage on the client side while running forward models on the cluster.

@markusdregi
Copy link
Contributor Author

Should be tested on an RGS node with a 1000 realizations and 200 jobs per forward model.

@markusdregi
Copy link
Contributor Author

Talk to the users directly.

@jondequinor jondequinor self-assigned this Oct 28, 2019
@jondequinor
Copy link
Contributor

jondequinor commented Oct 28, 2019

As @sondreso suggested, will test 1000 realizations with 200 jobs that just sleep—locally.

@jondequinor
Copy link
Contributor

Screenshot from 2019-10-29 09-49-06
1000 realizations * 200 jobs using LSF did eventually consume, for normal view and detailed view respectively, 40% and 100% of the CPU on which it ran. I saw 4 second response time in the GUI for detailed view, none for normal view.

Using the CLI to run the same simulation consumed 2% CPU.

The visual rendering of the simulation progress is thus the cause of this high CPU usage.

@jondequinor
Copy link
Contributor

We will address this by scaling down the update frequency of the heavier parts of the UI proportionally to the amount of realizations you have. This makes sense when the cost of properly fixing this is compared to the negative effect this will have on the UX. I.e. the proper way requires (weeks of) refactoring—whereas the effect on the UI is that an update may take 30s, which is negligible compared to simulations that take days to complete.

@markusdregi
Copy link
Contributor Author

Should we have a maximum update frequency of 10 seconds?

@jondequinor
Copy link
Contributor

jondequinor commented Oct 29, 2019

Maybe we split the GUI into three parts, each with its own frequency?

  1. A maximum more-than-10 second update frequency for the detailed view.
  2. A maximum of 10 second update frequency for the simple (main progress bar) view.
  3. The run time is updated every second—always.

The reasoning here is that the CPU spikes for a couple of seconds each time the detailed view is rendered. And my CPUs were idling, so this may be more than a couple of seconds on less busy machines…

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

Successfully merging a pull request may close this issue.

2 participants