From: stardiviner <numbchild@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to set time limit and memory limit for execution of source blocks
Date: Wed, 05 Feb 2020 13:16:13 +0800 [thread overview]
Message-ID: <87blqdboma.fsf@gmail.com> (raw)
In-Reply-To: <CACabEsRh2SytfdaqP68A5mvcpm8DPMaNJHL_X==p9uFq9ZAgZg@mail.gmail.com>
Anoop GR <anoopemacs@gmail.com> writes:
> Dear Emacs hackers,
>
> Like all of you, I think orgmode is the best way to organise study notes.
>
> I am solving competitive programming questions from Topcoder.com
> There are strict guidelines on memory limit of 256MB and time limit of 2sec for solutions
>
> How do I enforce the same on my orgmode source blocks.
> I want the execution to stop whenever it exceeds the above limits on memory and time.
>
> Long live Emacs,
> Anoop
Just an possible solution, use Emacs advice on org-babel-execute:<lang> to
modify the language execute command. Prepend with Linux commands which can limit
process resources.
--
[ stardiviner ]
I try to make every word tell the meaning what I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
next prev parent reply other threads:[~2020-02-05 5:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-04 6:40 How to set time limit and memory limit for execution of source blocks Anoop GR
2020-02-04 7:23 ` Tim Cross
2020-02-05 5:16 ` stardiviner [this message]
2020-02-09 14:54 ` Ken Mankoff
2020-02-10 7:15 ` Anoop GR
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87blqdboma.fsf@gmail.com \
--to=numbchild@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).