Re: Memory Management



On Apr 27, 5:22 pm, Michael Carman <mjcar...@xxxxxxxxx> wrote:
On 4/27/2007 1:26 PM, Shiraz wrote:

I am trying to set aside some memory for my cache (hash/array etc) in my
script. I use the ulimit and then monitor used mem with Devel::Size and
destroy when i am close to my limit. Any ideas on how to do this better?

You don't really do memory management in Perl. Proper programming can reduce the
amount of memory that you use, though. Have you read "perldoc -q memory?"

-mjc

Maybe I worded my question wrong and it should be Memory Allocation
and monitor.

I know I can allocate memory space by using ` $#arr = 999 ` but i am
not sure how much memory it consumes. Basically my goal is to figure
out how to set the max memory a variable can use and how to monitor
when the max has been reached.

I did read the perldoc but that didnt tell me anything about reserving
memory, just to be carefull with it.

.



Relevant Pages

  • Re: Comments on PC Hardware Invited - Sempron Processor Etc
    ... I am not familiar with the AMD processors and would appreciate feedback from anyone who uses them alongside Intel for general use. ... 32 x ViewSonic VA1703wb 17-inch LCD Monitor Widescreen ... The 3800+ dual core, would be the equivalent of two of those processors ... HP shows a couple options for memory, and if you're going for 1GB total, ...
    (microsoft.public.windowsxp.hardware)
  • Re: Terminal Server 32bit /PAE vs 64bit
    ... memory usage goes back to about 3.5gb. ... Provision Networks VIP ... monitor does not see it with all my processes running. ... the best way to monitor this stuff as I have seen thru the task manager ...
    (microsoft.public.windows.terminal_services)
  • Re: Just the CP/M file system
    ... - Or a 1K monitor with basic memory ... emulator which allows you to single-step not only through RAM, ... the memory test and loop read/write for hardware diagnostics. ... A properly implemented file system in NAND flash will also ...
    (comp.os.cpm)
  • Upgrade Report [GeekTech: Tackling Your Tech Questions - 07/19/2005]
    ... your second monitor, right-click on your desktop to open Windows XP's ... Advanced Micro Devices and Next-Generation Memory ... Why hasn't AMD supported DDR2 yet? ...
    (comp.sys.ibm.pc.hardware.misc)
  • Re: Just the CP/M file system
    ... The 3.7k monitor from Dave Dunfield I am using has memory ... vectors so that the monitor does not have to live at 0000. ... Thats not saying it's bad, ... size for each one in the flash (not too bad since you will have ...
    (comp.os.cpm)