limiting the amount of resources used by perl

limiting the amount of resources used by perl

am 13.08.2007 18:12:16 von Gonzosez

Is there way to limit the amount of resources/ram/cpu used by a perl
script? so that the script still runs, but does not exceed certain limits?

Re: limiting the amount of resources used by perl

am 13.08.2007 18:38:36 von xhoster

"Nospam" wrote:
> Is there way to limit the amount of resources/ram/cpu used by a perl
> script?

Your OS should provide facilities for this. Perl may have facilities for
negotiating this with the OS, but they would depend on the OS.

> so that the script still runs, but does not exceed certain
> limits?

In the case of ram, what would you have it do? In very specific cases,
there are options. But in a general purpose language not designed for only
those specific cases, what exactly do you do when you ask for more memory
and are told you can't have any more?

Xho

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB

Re: limiting the amount of resources used by perl

am 14.08.2007 20:51:15 von Bart Van der Donck

Nospam wrote:

> Is there way to limit the amount of resources/ram/cpu used by
> a perl script? so that the script still runs, but does not exceed
> certain limits?

Under unix, you might be interested in the nice-command (see "man
nice"). Personally I use it only for cronjobs.

--
Bart

"It is necessary for technical reasons that these nuclear warheads are
positioned with the TOP at the BOTTOM and with the BOTTOM at the TOP.
In order that there may be no doubt as to which is the TOP and which
is the BOTTOM, it shall be seen that the BOTTOM of each nuclear
warhead has been labeled with the word TOP."
(Instructions issued by the British Admiralty, 1950's)

Re: limiting the amount of resources used by perl

am 14.08.2007 22:18:03 von JT

Bart Van der Donck wrote:
> Nospam wrote:
> > Is there way to limit the amount of resources/ram/cpu used by
> > a perl script? so that the script still runs, but does not exceed
> > certain limits?

> Under unix, you might be interested in the nice-command (see "man
> nice"). Personally I use it only for cronjobs.

If the OP is using Unix he might also be interested in the
ulimit or limit (depending on the shell he's using) command.
But since he seems to be posting from a Windows machine this
as well could be completely uninteresting for him...

Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de