Issue493

Title use wall-clock time for portfolio time slices on windows
Priority bug Status resolved
Superseder Nosy List jendrik, malte, silvan
Assigned To Keywords driver
Optional summary

Created on 2014-10-23.13:33:16 by jendrik, last changed by jendrik.

Messages
msg4293 (view) Author: jendrik Date: 2015-06-30.16:30:06
Setting memory limits is also problematic on Windows. We therefore decided to not 
support portfolios on Windows. We might reconsider this once there's a library 
that supports setting memory limits (e.g. psutil). I have adapted the comment 
about time slices, so I think we can close this issue.
msg4283 (view) Author: malte Date: 2015-06-27.23:26:45
One possibility is to only support portfolios on Windows when using a suitably
modern Python.
msg4282 (view) Author: jendrik Date: 2015-06-26.16:00:56
Unfortunately, it doesn't really matter whether the time slices are inaccurate on 
Windows, because Python 2 on Windows doesn't easily support setting time limits for 
subprocesses. Python 3.3 however introduced the timeout argument for subprocess calls. 
Maybe we can discuss offline how we can use this.
msg3863 (view) Author: malte Date: 2014-10-23.13:36:49
To be more flexible and facilitate testing the code on Linux, I propose that we
add an option (e.g. --portfolios-use-wall-clock-time; other suggestions welcome)
to enable using wall-clock time. Then the only thing we need to do specially on
Windows is to always enable this option and print a warning if it wasn't set
that indicates that and why it was enabled.
msg3862 (view) Author: jendrik Date: 2014-10-23.13:33:16
Currently the portfolio driver ignores the time spent in child processes on 
Windows due to a library limitation on that platform. We should use wall-clock 
time for assigning time slices there.
History
Date User Action Args
2015-06-30 16:30:06jendriksetstatus: chatting -> resolved
messages: + msg4293
2015-06-27 23:26:45maltesetmessages: + msg4283
2015-06-26 16:00:56jendriksetnosy: + silvan
messages: + msg4282
2014-10-23 13:36:49maltesetstatus: unread -> chatting
messages: + msg3863
2014-10-23 13:33:16jendrikcreate