Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Limited Processing Time Plugin #21

Open
Bengt opened this issue Aug 12, 2014 · 0 comments
Open

Limited Processing Time Plugin #21

Bengt opened this issue Aug 12, 2014 · 0 comments

Comments

@Bengt
Copy link
Member

Bengt commented Aug 12, 2014

MetaOpt's global timeout currently stops all worker processes after a certain clock/realword time has passed. To compare the solution quality of optimizers on machines with load, it would be neccessary to stop their worker processes after a certain processor time has been used by them. That could be done using the plugin mechanism by polling the used user and system CPU time of each worker process routinely and terminating them when a certain limit is reached. Since Python 3.3, there is tme.process_time() which returns exactly that value. For the sake of comparability between interpreters MetaOpt should most likely use one implementation with all of them. There is a gist with a backport to Python 2.7 that could be used as inspiration for a backwards compatible implementation. See also the PEP418 on this process time function

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant