Re: Memory Management



Shiraz wrote:

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.

If I may ask, why are you concerned about this?
If you are really worried about memory consumption that much, then Perl is
probably the wrong language to use.

Having said that, there is a CPAN module that might be of use:

http://search.cpan.org/~tels/Devel-Size-0.67/lib/Devel/Size.pm

I have never used it myself though.

--Ala

.



Relevant Pages

  • Re: Author of Visual C++ 2005 STL ???
    ... A single byte requires many bytes of storage to hold it, ... allocates in quanta of 8 bytes). ... In VS6, release, each mallocconsumes 40 bytes ... change the memory growth factor to 2.0. ...
    (microsoft.public.vc.mfc)
  • Perfomance problem while passing large data volumes via WMI
    ... through WMI. ... the file is about 300 Mb) and we want to pass it to the client side. ... //these methods are memory and time consuming. ... My provider consumes about 1,5 Gb of memory ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Author of Visual C++ 2005 STL ???
    ... In VS6, release, each mallocconsumes 40 bytes ... smaller than 8 bytes, the storage is lost. ... had 100 bytes of free storage I could get 100 allocations? ... by other memory allocations. ...
    (microsoft.public.vc.mfc)
  • Re: getting Segmentation Violation
    ... I am using Allegro CL 7 on windows machine with 512 ... problem is ....the program consumes available memory and PF usage ... Running a 2 GB Lisp image on a machine one fourth the size ... Also keep in mind that Windows consumes most (if not all ...
    (comp.lang.lisp)
  • Re: about minilogd
    ... consumes almost 300MB of memory. ... I cannot verify that this process is started on other FC3 machines. ... /etc for the string "minilogd" in order to find the script that started ...
    (alt.os.linux)