I''ve got SCGI up and running nicely on Win32. However, the server I''m installing on has dual processors, and it looks like under heavy load only one of the processors is being used. My total processor use peaks at around 57% when the app is heavily loaded. I know there is no native fork() equivalent under Win32, but is there a way to run two SCGI processes and have Apache balance between them? BTW - Zed, thanks so much for SRR! -- Brad Ediger 866-EDIGERS
On 10/3/05, Brad Ediger <brad-sod+mMc99o6+XT7JhA+gdA@public.gmane.org> wrote:> > I''ve got SCGI up and running nicely on Win32. However, the server I''m > installing on has dual processors, and it looks like under heavy load > only one of the processors is being used. My total processor use > peaks at around 57% when the app is heavily loaded. I know there is > no native fork() equivalent under Win32, but is there a way to run > two SCGI processes and have Apache balance between them? > > BTW - Zed, thanks so much for SRR!I don''t have an answer for you (at least not yet), but I wanted to chime in to say that this problem needs to be solved for SCGI on Windows. I was planning to implement a solution for my Instant Rails project, but that could easily be a couple months off as I need to get the basic functionality solid first. Of course, if someone else implements a solution in the meantime I would be more than happy to steal their work! ;-) Curt _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Curt: Can''t you just detect that it''s a win32 system and then bring in the win32-process via win32 utils? Here is a fork example using win32-process: http://rubyforge.org/docman/view.php/85/72/process.txt -- Tom. On 10/3/05, Curt Hibbs <curt.hibbs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 10/3/05, Brad Ediger <brad-sod+mMc99o6+XT7JhA+gdA@public.gmane.org> wrote: > > I''ve got SCGI up and running nicely on Win32. However, the server I''m > > installing on has dual processors, and it looks like under heavy load > > only one of the processors is being used. My total processor use > > peaks at around 57% when the app is heavily loaded. I know there is > > no native fork() equivalent under Win32, but is there a way to run > > two SCGI processes and have Apache balance between them? > > > > BTW - Zed, thanks so much for SRR! > > I don''t have an answer for you (at least not yet), but I wanted to chime > in to say that this problem needs to be solved for SCGI on Windows. I was > planning to implement a solution for my Instant Rails project, but that > could easily be a couple months off as I need to get the basic functionality > solid first. > > Of course, if someone else implements a solution in the meantime I would be > more than happy to steal their work! ;-) > > Curt > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- "Nothing will ever be attempted, if all possible objections must first be overcome." - Samuel Johnson
Hi Brad: Which version of Win32 are you running? XP, 2003 .... And what processors are in the machine? http://support.microsoft.com/default.aspx?scid=kb;en-us;319091 -- Tom. On 10/3/05, Brad Ediger <brad-sod+mMc99o6+XT7JhA+gdA@public.gmane.org> wrote:> I''ve got SCGI up and running nicely on Win32. However, the server I''m > installing on has dual processors, and it looks like under heavy load > only one of the processors is being used. My total processor use > peaks at around 57% when the app is heavily loaded. I know there is > no native fork() equivalent under Win32, but is there a way to run > two SCGI processes and have Apache balance between them? > > BTW - Zed, thanks so much for SRR! > > -- > Brad Ediger > 866-EDIGERS > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- "Nothing will ever be attempted, if all possible objections must first be overcome." - Samuel Johnson
Thanks for the pointer, but it''s Server 2003 and PIIIs. The issue seems to be that I can only run one SCGI process at a time. From what I gather, this is a feature limitation, not a bug (no one has written the Win32-specific code to manage SCGI processes). Thanks, be -- Brad Ediger 866-EDIGERS On Oct 4, 2005, at 10:43 PM, Tom Jordan wrote:> Hi Brad: > > Which version of Win32 are you running? > XP, 2003 .... > > And what processors are in the machine? > http://support.microsoft.com/default.aspx?scid=kb;en-us;319091 > > -- Tom. > > On 10/3/05, Brad Ediger <brad-sod+mMc99o6+XT7JhA+gdA@public.gmane.org> wrote: > >> I''ve got SCGI up and running nicely on Win32. However, the server I''m >> installing on has dual processors, and it looks like under heavy load >> only one of the processors is being used. My total processor use >> peaks at around 57% when the app is heavily loaded. I know there is >> no native fork() equivalent under Win32, but is there a way to run >> two SCGI processes and have Apache balance between them? >> >> BTW - Zed, thanks so much for SRR! >> >> -- >> Brad Ediger >> 866-EDIGERS >> >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > > > -- > "Nothing will ever be attempted, if all > possible objections must first be > overcome." - Samuel Johnson > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >