B
Bart Van der Donck
Hello,
My hosting provider uses these limitations for perl programs:
Size of Core Files - 0 MB
CPU Time Used - 30 seconds
Memory Size - 16 MB
Number of Open Files - 32
Number of Simultaneous Processes - 8
Now I am gonna make a more advanced perl script and I want to make
sure that it will be OK with these requirements. I am looking for a
way to easily display these things for my script. The script will get
data out of a db table (prices) and then calculate them according to
valuta, rate, markup dealers, etc. and then it starts comparing each
one to get the cheapest. I believe it will use heavy memory, because
it is about a lot of prices.
I did some research at Perldoc and Google.
/usr/bin/top: no permission (can't change that)
Use of perl's $ENV{PERL_DEBUG_MSTATS}: unknown $ENV variable (can't
change that either)
`` use Devel:
eek; mstat(); ´´
Devel:
eek = ok
but mstat() apparantly requires that perl was built in a non-standard
way. I can't change this either.
Then I try to call perl with the -dl flag: this seems to work.
And then I write
`` do 'lib/auto/POSIX/autosplit.ix'; ´´
But then I come in some kind of other shell I think... Toink
I played around with it, but all seems very complex. Moreover I get
the impression that it is only about the memory size (=the 16 MB that
is maximum) and not about the other limits.
Quotation from
http://www.perldoc.com/perl5.8.0/pod/perldebguts.html:
"
There are two Perl-specific ways to analyze memory usage:
$ENV{PERL_DEBUG_MSTATS} and -DL command-line switch. The first is
available only if Perl is compiled with Perl's malloc(); the second
only if Perl was built with -DDEBUGGING. See the instructions for how
to do this in the INSTALL podpage at the top level of the Perl source
tree.
"
So, 1 basic question: is there a command like:
`` memory myscript.pl ´´
that would display the memory of my script?
I don't want to code an entire program and then find out that I can't
use it because of memory restrictions.
Thanks,
Bart
My hosting provider uses these limitations for perl programs:
Size of Core Files - 0 MB
CPU Time Used - 30 seconds
Memory Size - 16 MB
Number of Open Files - 32
Number of Simultaneous Processes - 8
Now I am gonna make a more advanced perl script and I want to make
sure that it will be OK with these requirements. I am looking for a
way to easily display these things for my script. The script will get
data out of a db table (prices) and then calculate them according to
valuta, rate, markup dealers, etc. and then it starts comparing each
one to get the cheapest. I believe it will use heavy memory, because
it is about a lot of prices.
I did some research at Perldoc and Google.
/usr/bin/top: no permission (can't change that)
Use of perl's $ENV{PERL_DEBUG_MSTATS}: unknown $ENV variable (can't
change that either)
`` use Devel:
Devel:
but mstat() apparantly requires that perl was built in a non-standard
way. I can't change this either.
Then I try to call perl with the -dl flag: this seems to work.
And then I write
`` do 'lib/auto/POSIX/autosplit.ix'; ´´
But then I come in some kind of other shell I think... Toink
I played around with it, but all seems very complex. Moreover I get
the impression that it is only about the memory size (=the 16 MB that
is maximum) and not about the other limits.
Quotation from
http://www.perldoc.com/perl5.8.0/pod/perldebguts.html:
"
There are two Perl-specific ways to analyze memory usage:
$ENV{PERL_DEBUG_MSTATS} and -DL command-line switch. The first is
available only if Perl is compiled with Perl's malloc(); the second
only if Perl was built with -DDEBUGGING. See the instructions for how
to do this in the INSTALL podpage at the top level of the Perl source
tree.
"
So, 1 basic question: is there a command like:
`` memory myscript.pl ´´
that would display the memory of my script?
I don't want to code an entire program and then find out that I can't
use it because of memory restrictions.
Thanks,
Bart