'out of memory' errors
- From: tom arnall <kloro2006@xxxxxxxxx>
- Date: Sat, 29 Apr 2006 15:28:47 -0700
i am trying to us a perl application that handles large files (.5GB) in scalar
variables. when i try to 'slurp' one of these files into a variable
(e.g., '$_ = `cat filename`) i get an out of memory error. (same for '@var =
<FH>') initially, i ran the script without any memory limits. that was fine
except the process would freeze the rest of the system. i dealt with this
problem by setting limits for myself in /etc/security/limits.conf as follows;
kloro hard rss 256000
kloro hard memlock 256000
kloro hard as 768000
now, tho' i get 'out of memory' errors.
is there not some way to get linux to use swap space when physical memory is
exceeded?
thanks,
tom arnall
north spit, ca
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: 'out of memory' errors
- From: Linas Žvirblis
- Re: 'out of memory' errors
- Prev by Date: Re: Social Contract
- Next by Date: Re: [OT] Recipe for a Debian thread that won't die
- Previous by thread: [Somewhat OT] Explorer destroyer
- Next by thread: Re: 'out of memory' errors
- Index(es):
Relevant Pages
|
|