Re: How to reduce perl memory usage?

2013-10-14 Thread Manuel Reimer
On 10/13/2013 10:46 PM, Dr.Ruud wrote: That 64 MB looks like room enough. I hope so ;) Compile a perl without threads, debug. Here, you can see the default build configuration: I would prefer to be a

Re: How to reduce perl memory usage?

2013-10-13 Thread Dr.Ruud
On 2013-10-13 13:51, Manuel Reimer wrote: I would like to use Perl on an embedded device, which only has 64MB of RAM. Are there any tricks to reduce the memory usage of the perl interpreter? That 64 MB looks like room enough. Compile a perl without threads, debug. There is also a miniperl

Re: How to reduce perl memory usage?

2013-10-13 Thread Brian Fraser
On Sun, Oct 13, 2013 at 8:51 AM, Manuel Reimer wrote: > Hello, > > I would like to use Perl on an embedded device, which only has 64MB of RAM. > > Are there any tricks to reduce the memory usage of the perl interpreter? > > Thanks in advance > > Greetings, > > M

Re: How to reduce perl memory usage?

2013-10-13 Thread Shlomi Fish
Hi Manuel, On Sun, 13 Oct 2013 13:51:41 +0200 Manuel Reimer wrote: > Hello, > > I would like to use Perl on an embedded device, which only has 64MB of RAM. > > Are there any tricks to reduce the memory usage of the perl interpreter? > You can try building the perl in

How to reduce perl memory usage?

2013-10-13 Thread Manuel Reimer
Hello, I would like to use Perl on an embedded device, which only has 64MB of RAM. Are there any tricks to reduce the memory usage of the perl interpreter? Thanks in advance Greetings, Manuel -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread 蔡超
Hi Dave, There is a tool sysusage which is a open source coded in perl. It might be worth to have a look. 2010/2/8 Dave Tang : > Hi everybody, > > I want to write a script that checks memory usage of my RHEL box, and ran as > a cron job say every 10 minutes. > > I could write

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Yue Chen
Hi Dave Have you ever tried module Proc-ProcessTable? It is a wonderful tool to collect process information such as PID, cmdline, CPU usage and Mem usage. > Hi everybody, > > I want to write a script that checks memory usage of my RHEL box, and ran as > a cron job say every 10 mi

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Shawn H Corey
Dave Tang wrote: > Very recently a user wrote a script that crashed the server, by using > all the memory. So also I wanted to capture the process information too. > Is this information available in the /proc directory? Yes, google "linux proc". -- Just my 0.0002 million dollars worth, Sh

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Dave Tang
On Mon, 08 Feb 2010 22:52:37 +1000, Shawn H Corey wrote: Dave Tang wrote: Hi everybody, I want to write a script that checks memory usage of my RHEL box, and ran as a cron job say every 10 minutes. I could write the Perl script to run a system command like "ps aux", parse that i

Re: Perl script to monitor memory usage on unix box

2010-02-08 Thread Shawn H Corey
Dave Tang wrote: > Hi everybody, > > I want to write a script that checks memory usage of my RHEL box, and > ran as a cron job say every 10 minutes. > > I could write the Perl script to run a system command like "ps aux", > parse that information and kill a job if

Perl script to monitor memory usage on unix box

2010-02-08 Thread Dave Tang
Hi everybody, I want to write a script that checks memory usage of my RHEL box, and ran as a cron job say every 10 minutes. I could write the Perl script to run a system command like "ps aux", parse that information and kill a job if >90% of the total system memory (and I re

Re: Memory Usage of my Script

2008-01-17 Thread Tom Phoenix
On Jan 17, 2008 3:36 PM, yitzle <[EMAIL PROTECTED]> wrote: > DumpSizes tells me I'm only using around 200KB RAM. > Yet top reports close to 10MB, mostly in the DATA segment. > Where is that memory going? Is it probably the includes? I don't see > where else it can be. As it runs, your perl binary

Re: Memory Usage of my Script

2008-01-17 Thread yitzle
TP::Cookies; > > use Term::ReadKey; > > > > Would removing a "use" help? I can disable strict and warnings while > > not editing the script. And Term::ReadKey isn't really needed. > > Is it possible that Mechanize is using a really large amount of RAM?

Re: Memory Usage of my Script

2008-01-03 Thread Jenda Krynicky
From: yitzle <[EMAIL PROTECTED]> > Hi. > I've got two scripts I am running and they both consume large amounts > of memory (10MB). > How would I go about finding where the memory is being used and > figuring out how to reduce the memory footprint. > > Both scripts start off with: > > #!/usr/bin/p

Re: Memory Usage of my Script

2008-01-03 Thread Spiros Denaxas
ey isn't really needed. > Is it possible that Mechanize is using a really large amount of RAM? I > set the stack_depth to 1. Hello, You can use Devel::DumpSizes [1] in order to trace the memory usage of each variable at a given point during your script. Also, you can check out for cyclica

Memory Usage of my Script

2008-01-02 Thread yitzle
Hi. I've got two scripts I am running and they both consume large amounts of memory (10MB). How would I go about finding where the memory is being used and figuring out how to reduce the memory footprint. Both scripts start off with: #!/usr/bin/perl use warnings; use strict; use WWW::Mechanize; u

Re: CPU/Memory usage of a process on Windows machine

2007-06-29 Thread oryann9
You have to add UserModeTime and KernelModeTime then divide by 10,000,000. See: http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept05/hey0922.mspx use Win32::Process::Info; use Data::Dumper; my $pi = Win32::Process::Info->new (); my @process_information = $pi->GetProcInfo(3692);

Re: CPU/Memory usage of a process on Windows machine

2007-06-29 Thread oryann9
> #!c:/perl/bin/perl.exe > # This is a test scrip > use Win32::Process::Info; > use warnings; > use strict; > my $pi = Win32::Process::Info->new (); > my @process_information = $pi->GetProcInfo(4488); > ## 4488 is pid of a > particular process. > foreach $info (@process_information) { >

CPU/Memory usage of a process on Windows machine

2007-06-29 Thread jeevs
Greetings I am trying to find CPU and memory usage on a windows machine and i was able to get through memory usage using Win32::Process::Info module's GetProcInfo function. This code may be helpfull to others which calculate the memory usage of a particular process on windows #!c:/per

Re: Module memory usage

2005-07-07 Thread Chris Devers
On Thu, 7 Jul 2005, Scott R. Godin wrote: > what are the various ways of finding out how much memory a particular > module is using, from the command line under Linux ? A lot the modules in the B:: and Devel:: namespaces can get at this sort of information. The Devel::Size module can get at th

Module memory usage

2005-07-07 Thread Scott R. Godin
what are the various ways of finding out how much memory a particular module is using, from the command line under Linux ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

current perl memory usage

2004-11-03 Thread Bryan R Harris
In "Learning Perl" 3.1, it says: "Arrays can have any number of elements. The smallest array has no elements, while the largest array can fill all of available memory. Once again, this is in keeping with Perl's philosophy of 'no unnecessary limits.'" Is there any way to get the free vs. used me

memory usage of an array

2004-10-25 Thread Bryan Harris
The "books" say that you can add items to an array until you run out of memory... Is there any way for a script to see how much memory is in use so far, versus how much there is left? - B -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pid->memory usage - Any takers

2003-08-14 Thread Biju Ramachandran
Please, anybody... Biju From: "Biju Ramachandran" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: pid->memory usage Date: Thu, 07 Aug 2003 11:23:33 -0400 Hi there I just want to know is there any way to find out the PID ans how much a process is using the physical and

RE: pid->memory usage - Any takers

2003-08-14 Thread Stephen Gilbert
> -Original Message- > From: Biju Ramachandran [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 8:56 AM > To: [EMAIL PROTECTED] > Subject: Re: pid->memory usage - Any takers > > > Please, anybody... > > Biju > > > >From: "Bi

Re: pid->memory usage - Any takers

2003-08-12 Thread zentara
On Fri, 8 Aug 2003 09:06:25 -0400, [EMAIL PROTECTED] (Stephen Gilbert) wrote: >> -Original Message- >> From: Biju Ramachandran [mailto:[EMAIL PROTECTED] >> Subject: Re: pid->memory usage - Any takers >> Please, anybody... >> >I just want to know

pid->memory usage

2003-08-09 Thread Biju Ramachandran
Hi there I just want to know is there any way to find out the PID ans how much a process is using the physical and virtual memory, as it is show by the Windows NT task manager. Thanks Biju _ MSN 8 helps eliminate e-mail viruses.

Re: Closures / Memory Usage

2002-09-03 Thread david
argument = shift; > $food->{cat}->{young} = 'fish'; > > return ($food->{cat}->{$argument}) if > defined($food->{cat}->{$argument}); > } > > > print dog('young'),"\n"; > print cat('young'),"\n"; &

Re: Closures / Memory Usage

2002-08-31 Thread drieux
On Saturday, August 31, 2002, at 05:28 , Gfoo wrote: > A question regarding closures used as function templates: [..] I think you present a cogent argument - but, perchance you might want to think about an OO style solution - although I do not wish to sound too felixian in this. cf: http://www

Closures / Memory Usage

2002-08-31 Thread Gfoo
oung'),"\n"; print cat('young'),"\n"; I like the first one (#1), because it is shorter (a nice abstract) and let me define many functions only by concetrating on the $food hash at the beginning of

RE: Memory usage of var...

2001-09-06 Thread Brian
> if this mail lives in a file, then you can simply check the file > size, perhaps with the file test operator -s. > > my $size = -s $file; > > see the section of the perlfunc manpage that talk about these: > Nope, unfortunately it's not in a file. The script is used as a sendmail alias (

Re: Memory usage of var...

2001-09-05 Thread brian d foy
In article <002301c135cd$9ada2540$025a@drevlin>, [EMAIL PROTECTED] (Brian) wrote: > But, I'm not slurping it all at once (going line by line), which allows > for me to check the size as I go. If somebody sends a 40 meg message, > I'd like to catch it early before the server has a heart atta

Memory usage of var...

2001-09-04 Thread Brian
Is there any way to check how much memory a variable (hash, array, scalar) is using? I'm writing a program that deals with emails, and I need to keep the email in an array for use throughout the program. But, I'm not slurping it all at once (going line by line), which allows for me to check the

Re: memory usage

2001-05-23 Thread Peter Scott
At 02:15 PM 5/23/01 +0530, baby lakshmi wrote: >hi >I would like to know which part of my program is taking much time. IS that >possible? >if possible, can u tell me how to do it?? Oops, I just caught the subject. Your subject liine refers to memory usage. Your text refers to tim

Re: memory usage

2001-05-23 Thread Scott Thomason
That doesn't let you know which *part* of your program is taking the most time. For that, try using the Devel::DProf or Devel::SmallProf debugging modules. For example, you can do this: perl -d:DProf myprog.pl dprofpp ...to get a list of the 15 most intense calls. SmallProf gives you a finer

Re: memory usage

2001-05-23 Thread Me
Here's something to get you started: perldoc -q profile perldoc -q memory

Re: memory usage

2001-05-23 Thread lucy
> hi > I would like to know which part of my program is taking much time. IS that > possible? > if possible, can u tell me how to do it?? > Thankyou > regards > babylakshmi The benchmark perl module is what you'd be after http://search.cpan.org/search?mode=module&query=Benchmark install then

memory usage

2001-05-23 Thread baby lakshmi
hi I would like to know which part of my program is taking much time. IS that possible? if possible, can u tell me how to do it?? Thankyou regards babylakshmi _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hot

Re: Best way to check memory usage?

2001-05-12 Thread Peter Scott
At 09:15 PM 5/5/2001 +0200, Merritt Krakowitzer wrote: >I want to write a program to check my systems memory but i have no idea >how to check my free memory with perl, best i can think of is to get the >data from "top" , but that isnt ideal in my situation. some1 please point >me in the write d

Re: Best way to check memory usage?

2001-05-12 Thread Merritt Krakowitzer
freebsd, doesnt seem to have a /proc/meminfo :) Merritt - Original Message - From: "Terry Davis" <[EMAIL PROTECTED]> To: "Merritt Krakowitzer" <[EMAIL PROTECTED]> Sent: Saturday, May 12, 2001 9:25 PM Subject: RE: Best way to check memory usage? > you

Best way to check memory usage?

2001-05-12 Thread Merritt Krakowitzer
I want to write a program to check my systems memory but i have no idea how to check my free memory with perl, best i can think of is to get the data from "top" , but that isnt ideal in my situation. some1 please point me in the write direction Thanks Merritt