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

Need to bound execution time #5

Closed
sparkprime opened this issue Aug 10, 2014 · 1 comment
Closed

Need to bound execution time #5

sparkprime opened this issue Aug 10, 2014 · 1 comment

Comments

@sparkprime
Copy link
Member

It is currently possible to write programs that run for a long time, such as computing the Ackerman function. This is bad news if Jsonnet is integrated into a server, where such programs will use excess CPU resources and block other users.

Jsonnet should count the number of loops around the VM, and bound it either in number of instructions, or in time by calling the time syscall every 1000 instructions (or whatever).

@sparkprime
Copy link
Member Author

The most reliable way to do this is, e.g. when evaluating Jsonnet server side, is to fork a new process to run Jsonnet (e.g. just run the standard commandline binary) and then ulimit that process.

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

No branches or pull requests

1 participant