Skip to content

#267 Add command options for --timeout and --max-memory - #371

Merged
pombredanne merged 1 commit into
developfrom
267-cli-options-for-timeout-and-max_memory
Nov 23, 2016
Merged

#267 Add command options for --timeout and --max-memory#371
pombredanne merged 1 commit into
developfrom
267-cli-options-for-timeout-and-max_memory

Conversation

@pombredanne

Copy link
Copy Markdown
Member
  • defaults are 120 seconds and 1000 MB
  • this replaces a dynamic computation based on file size entirely
  • this allow to control explicitly and strictly the runtime quotas
    and adjust them to constrained environments such as VMs.

Signed-off-by: Philippe Ombredanne pombredanne@nexb.com

 * defaults are 120 seconds and 1000 MB
 * this replaces a dynamic computation based on file size entirely
 * this allo to control explicitly and strictly the runtime quotas
   and adjust them to constrained environments such as VMs.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@sschuberth

Copy link
Copy Markdown
Collaborator

The only thing I'm wondering about is whether it would make sense to still compute the default values dynamically, and only for constrained environments use the fixed values from the command line, if any.

@pombredanne

Copy link
Copy Markdown
Member Author

@sschuberth you have a good point but I thought this became too complicated
Especially since I finally found the memory leak that is the root cause for #267 ... I should have a new commit tomorrow.

@sschuberth

Copy link
Copy Markdown
Collaborator

Sounds reasonable!

@pombredanne

Copy link
Copy Markdown
Member Author

ok, so I am merging this and I will start a separate branch to push the rest of the fixes

@pombredanne
pombredanne merged commit 03f41b0 into develop Nov 23, 2016
@pombredanne
pombredanne deleted the 267-cli-options-for-timeout-and-max_memory branch November 26, 2016 09:38
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

Successfully merging this pull request may close these issues.

2 participants