| PLEX86 | ||
|
understanding shared memory 3323Dances With Crows the Nope. I had my reasons, but bottom line, it's been a really interesting project. low. memory-efficient else that I'm not exec()ing anything after the fork, I'm just running another subroutine of the program that deals with the client and delivers the email. understanding shared memory Sender: Linux Just some Perl-type discussion......(value = 2 cents :-) ) When you fork, you get an exact copy... column, That's what I was hoping you'd say. Of the 16Mb, about half is taken up by Mail::Spambuttbuttin. I was wondering if I'd be better off running a separate Spambuttbuttin server and feeding the email to it from the SMTP server. But if the overhead in forking is not much greater with a larger program, then I'd just buttume leave it as part of the SMTP server. Is this reasoning correct, or am I missing something? I'm loading everything when the server starts, and that's why it's so big. Will or lot Actually, 0) it does work, and 1) it is maintainable (at least by me). I don't know where the bottlenecks are right now. It runs pretty fast, I'm just making sure I'm covering all the bases. I tried this out, but I'm not sure how DProf handles the fork. I daemonize the process by forking right at the beginning, and I'm not sure if DProf is making it past the fork. with I'm running on a fast machine, with lots of RAM, but I do have more than 50 processes running at times. Probably not too often at this point, but 50 doesn't seem like too much. This mail server currently handles mail for about 2000 users, and naturally, it deals with a lot of spammers trying to abuse it in various ways. understanding shared memory 3324 Black Sun and said: Hm. 9-10 for Hubris, 0-10 for Laziness. :-) ? fork() doesn't come into the picture for subroutines. Did you mean "spawn a child process... to see I really appreciate your help. Thanks a lot. - Alex Hart
|
||||
understanding shared memory 3324 Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||