Perl on freebsd: max memory limit?

J

John Bokma

Is there a max memory limit for a Perl process on freebsd? A script bombs
out when it uses close to 512 MB. (I have no direct access to the machine,
just asking for someone).
 
A

Arndt Jonasson

Abigail said:
John Bokma ([email protected]) wrote on MMMMCLXXXI September
MCMXCIII in <URL:<> Is there a max memory limit for a Perl process on freebsd? A script bombs
<> out when it uses close to 512 MB. (I have no direct access to the machine,
<> just asking for someone).


Perl itself doesn't have memory limits. However, memory is limited to
what the OS is willing to give to the process. How much memory Perl
can get at most determines on the amount of memory available in total,
the memory used by other processes, and any process limits.

If a 'perl' running on a 32-bit machine can address only 2^32 bytes of
memory, isn't that a memory limit?

(I don't know the architecture of 'perl' - maybe there are type bits
and stuff that make the effective range less.)

(The language Perl probably doesn't stipulate any minimum or maximum
amount of usable memory. Or does it?)
 
J

John Bokma

Abigail said:
John Bokma ([email protected]) wrote on MMMMCLXXXI September
MCMXCIII in <URL:<> Is there a max memory limit for a Perl process on freebsd? A
script bombs <> out when it uses close to 512 MB. (I have no direct
access to the machine, <> just asking for someone).

Perl itself doesn't have memory limits. However, memory is limited to
what the OS is willing to give to the process.

Yes, I was suspecting the OS setting a limit on max memory per process. On
the other hand, the script attempts to slurps a file of over 512 MB (no I
didn't write it :) ).
How much memory Perl
can get at most determines on the amount of memory available in total,
the memory used by other processes, and any process limits.

You might want to check your ulimits settings.

Thanks, I will pass the information on. In the mean time I "fixed" the
script by not slurping 512 MB, but reading the data when needed. I
suggested a rewrite since the script does a lot of inefficient things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top