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

Monitor, warn and/or prevent from high CPU/RAM consumption #13

Open
0237h opened this issue Feb 18, 2023 · 0 comments
Open

Monitor, warn and/or prevent from high CPU/RAM consumption #13

0237h opened this issue Feb 18, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@0237h
Copy link
Collaborator

0237h commented Feb 18, 2023

Problem

When starting data extraction on a large block range or on a job handling large amounts of data, the program will consume all the available memory, possibly rendering the host PC irresponsive if left for too long.

This hasn't been tested extensively but is visible with any sizable workload sent to the tool.

Proposition

Several safeguards could be put in place to prevent this (ranging from most amount of work to least):

  1. Monitor resources used, warn and possibly take actions (pause asyncio tasks, send processed blocks to post-process, save state, etc.) when certain threshold are attained.
  2. Just warn in case of high memory usage detected (so still include monitoring from the first option).
  3. Warn preemptively by judging the size of the workload at the beginning.
  4. Only warn in the documentation.
@0237h 0237h added the enhancement New feature or request label Feb 18, 2023
@0237h 0237h self-assigned this Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant