[Perl-unix-users] memory usage of perl processes

2001-03-21 Thread Chuck . Hirstius
I'm sure this comes up frequently, so I apoligize... I am designing a system to process almost 4000 remote sites in a nightly sweep. This process is controlled from a database which maintains site status in realtime (or at least that's the goal). I am attempting to fork off around 100 "drones"

RE: [Perl-unix-users] memory usage of perl processes

2001-03-21 Thread Chuck . Hirstius
>I guess you could use 'top' in a unix window. > >Then kick off 1 drone only and look at the memory usage. Then * it by the >number of processes you expect. >55 is a lot of processes On Any unix system. > >Perhaps you could stagger the number of processes. so maybe spawn 30 drones >and have

RE: [Perl-unix-users] memory usage of perl processes

2001-03-22 Thread Chuck . Hirstius
Jeremy, >Greetings... > >I do something similar, pulling across 400+ log files, 3GB+ total size every >night. However, I am using considerably fewer drones than you. We found >that we reached a saturation point long before that. Disk I/O and network >I/O both became bottlenecks before we re

[Perl-unix-users] IPC::Semaphore

2001-03-29 Thread Chuck . Hirstius
Hello all, Can anyone give an example of how to use IPC::Semaphore to cause a process to "wait" until another process has finished. I don't see a "lock" or "unlock" call in there, and that's what I've always thought was the way to do it. Also, I see that IPC::Semaphore allows you to get the PID

[Perl-unix-users] Good example of Event driven programming

2001-04-18 Thread Chuck . Hirstius
Hello all, Can anyone out there point me to a decent Perl based event driven programming tutorial? Something maybe using Event.pm, EventServer, POE, or some other such thing in a real world context? Or even better, a "roll your own" event handling example using none of the above, I'd like to kn

[Perl-unix-users] UDP broadcasts

2001-08-01 Thread Chuck . Hirstius
This may be a stupid question, or possibly one not even dealing with perl. But can anyone point me to a way to make a UDP broadcast server? I mean a true broadcast, or a "one to many" transmission. Is there a special flag to pass to IO::Socket to make packets replicate across the network? I've

Re: [Perl-unix-users] UDP broadcasts

2001-08-02 Thread Chuck . Hirstius
>[EMAIL PROTECTED] wrote: >> >> This may be a stupid question, or possibly one not even dealing with perl. >> But can anyone point me to a way to make a UDP broadcast server? >> >> I mean a true broadcast, or a "one to many" transmission. Is there a >> special flag to pass to IO::Socket to make

[Perl-unix-users] Net::FTP hanging

2001-09-04 Thread Chuck . Hirstius
I'm running a nightly job to fork off several FTP sessions to retrieve files. The job spawns off ~100 FTP "Drones" and hits about 3700 sites across our WAN. Twice it has become "hung" when one FTP drone refused to die. Looking in the drones log showed it had just requested an FTP GET ($ftp->get

Re: [Perl-unix-users] URGENT - file types and sizes total in a dir tree

2002-01-17 Thread Chuck . Hirstius
Craig, Take a look at File::Find. it allows you to have a subroutine called for each file encountered in a directory tree. You can then build a hash of file extensions and increment the size in there. the documentation is quite good, play with it for a little bit and you should have your scri