FCGI process handling and fine-tunning for saving CPU, under Perl code

"phoenix_fly" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <001d01c5f75c$196db800$0201a8c0@e9w8t5>
Hello Folks

You guys are my last hope to get these answers, as I've searched all over the Net and couldn´t find them anywhere. Not even in perlmonks (actually my post has being answered by people saying they too want to find out this). I´ve checked your messages, but I´ve seen the examples are mostly on C, and unfortunatelly I´m not familiar with it, so I will count you to help me on the Unix-related issues, and that there are also Perl coders among you, to help me about the Perl-related ones.

Here´s the problem: I´ve finally made FCGI (and also CGI::Fast, but not mod_perl, as my host doesn´t support it) work at my shared account. But just can´t figure out how to handle it, I mean, how do I restart the processes when I update the script code? How do I know the number of the process?? 

My main goal with FCGI is to save precious CPU minutes, as the traffic is increasing a lot (and my host will kick me out if I get too heavy-processing, as they just dont have dedicated servers available). You guys know if the CPU savings are worth adapting the code? I mean, can I expect to use, like, 30% less CPU? 

Also, I´ve heard there is 'static' and other kinds of configs, and I´m not sure of what they are, and how to change and fine tune them, in order I don´t end up increasing my CPU usage(!!!). 

And, last but not least, I am not quite sure about converting guidelines, like avoiding referencing $q (new CGI) inside subs and all. If you can offer me some links for that, it would be great too.

I wait for your help then! 

Thanks a lot 

phoenix_fly

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.