On Thu, 24 Jan 2002 09:58:31 -0800 "Andrew A. Chen" wrote: +------------------ | Speaking of memory, has anyone done an analysis of various version of POE | and perl, to see how much memory each one of these configurations use? I | would like to use POE on an embedded device which has limited memory, and | no swap space. If there is a particular combination of POE/perl that is | low on memory usage, I'll be the first one to jump on it. :) +------------------
Here is one data point: FreeBSD 4.5-RC ps -auxww | egrep 'USER|perl' USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND cfedde 99628 0.0 3.2 4636 3956 p3 I 11:14AM 0:00.97 perl -MPOE -e sleep 600 cfedde 99636 0.0 1.1 2108 1428 p3 I 11:16AM 0:00.01 perl -e sleep 600 +------------------ | | At 12:51 PM 1/24/2002 -0500, you wrote: | >On Thu, Jan 24, 2002 at 11:10:49AM -0600, Bob Maccione wrote: | > > I've been playing with the BlockSize on my app (that's not quite done ye t) | > > and am wondering what the downside of having a larger BlockSize is? If I | > > know that my max message size will be 30k what is wrong with setting the | > > BlockSize to 30k (now I understand that you don't want to set it to real ly | > > really large sizes but where are the tradeoffs? | > | >It eats up more memory. If you have 200 clients each sending 30KB | >blocks, it could potentially chew up 6MB of memory just to buffer | >them. Come to think of it, that's not a whole lot these days. | > | >I imagine at some point the amount of time it takes to move those | >blocks around breaks even with the speed gain you get from having | >them. I can't begin to guess where that occurs. | > | >-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net | +------------------ --
