Primary Navigation

Re: [nslu2-linux] http stress

... Try reducing the number of child servers. Goto the prefork.c section of /etc/apache/httpd.conf. Lower MaxClients, MaxSpareServers, MinSpareServers, and

Message 1 of 10
, Jan 30, 2006

0 Attachment

On Jan 30, 2006, at 8:29 PM, Gelan Hopkins wrote:

> Hi there!
>
> I've just set up a blog using wordpress for myself and am a little
> concerned
> about the stress that it seems to be putting on my little slug. I
> notice it
> takes a long time to load pages, which I can live with because it's
> a little
> tiny box ;)
>
> But, it seems to me accessing the hard disk a lot. It's probably
> just using
> the swap space, but I'm concerned that It might not have enough swap.
>
> Is there a lighter alternative to apache that I could use, or maybe
> a way to
> disable modules in apache that I don't need for wordpress?

Try reducing the number of child servers. Goto the prefork.c section
of /etc/apache/httpd.conf. Lower
MaxClients, MaxSpareServers, MinSpareServers, and StartServers to
sane values. The default config
starts five with child processes and allows up to 10. Top reveals
that each process consumes 9% of memory.
My slug started with 5 and a 6th soon appeared. Those first five
consumed *HALF* of the available memory.
This is without PHP or MySQL. Hopefully you're running the db on
another machine, otherwise it isn't likely
you're going to keep the machine from swapping out. Good luck!
(you're gonna need it!) :p

-Glen

Gelan Hopkins

I limited pretty much everything. I halved everything I could. We ll see about speed. Well, I have an AMD X2 3800+ running Mandriva Linux sitting here with a

Message 2 of 10
, Jan 30, 2006

0 Attachment

I limited pretty much everything. I halved everything I could. We'll see
about speed.

Well, I have an AMD X2 3800+ running Mandriva Linux sitting here with a few
extra cpu cycles and a little extra RAM.

I'm just wondering how I could run the SQL database on the big box and have
the little linksys serve it up.

I limited pretty much everything. I halved everything I could. We'll see about speed.

Well, I have an AMD X2 3800+ running Mandriva Linux sitting here with a few
extra cpu cycles and a little extra RAM.

I'm just wondering how I could run the SQL database on the big box and have the little linksys serve it up.

Any suggestions?

>From: Glen Duncan <
dazed@...>>Reply-To:
nslu2-linux@yahoogroups.com>To: nslu2-linux@yahoogroups.com>Subject: Re: [nslu2-linux] http stress
>Date: Mon, 30 Jan 2006 21:31:52 -0500>>>>>>>>On Jan 30, 2006, at 8:29 PM, Gelan Hopkins wrote:>>>> > Hi there!>> >
>> > I've just set up a blog using wordpress for myself and am a little>> > concerned>> > about the stress that it seems to be putting on my little slug. I>> > notice it
>> > takes a long time to load pages, which I can live with because it's>> > a little>> > tiny box ;)>> >>> > But, it seems to me accessing the hard disk a lot. It's probably
>> > just using>> > the swap space, but I'm concerned that It might not have enough swap.>> >>> > Is there a lighter alternative to apache that I could use, or maybe
>> > a way to>> > disable modules in apache that I don't need for wordpress?>>>>Try reducing the number of child servers. Goto the prefork.c section>
>of /etc/apache/httpd.conf. Lower>>MaxClients, MaxSpareServers, MinSpareServers, and StartServers to>>sane values. The default config>>starts five with child processes and allows up to 10. Top reveals
>>that each process consumes 9% of memory.>>My slug started with 5 and a 6th soon appeared. Those first five>>consumed *HALF* of the available memory.>>This is without PHP or MySQL. Hopefully you're running the db on
>>another machine, otherwise it isn't likely>>you're going to keep the machine from swapping out. Good luck!>>(you're gonna need it!) :p>>>>-Glen>
>>>>>>>>>>> SPONSORED LINKS>>>>> Communication and networking>>> Wireless communication and networking
>>> Linksys nslu2>>>>>>>>>>>>>>>> YAHOO! GROUPS LINKS>>>
>> Visit your group "nslu2-linux" on the web.>> To unsubscribe from this group, send an email to:>
nslu2-linux-unsubscribe@yahoogroups.com>> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.>>>>>>>>>>>
>>>

Hi, As for running MySQL on your Win32 box, it can be done fairly easily. To make your life easier, install something like EasyPHP 1.8 or so. Once that is

Message 4 of 10
, Jan 31, 2006

0 Attachment

Hi,

As for running MySQL on your Win32 box, it can be done fairly easily. To make your life easier, install something like EasyPHP 1.8 or so. Once that is installed, go into phpMyAdmin and edit the mysql host, user and db tables to restrict access to the wordpress database running on the Win32 box. After that, reload MySQL and ensure you edit
wp-config.php to point to the Win32 box. I had two turbo slugs (MySQL on second slug) before, but have resorted to just one slug after tweaking my configuration a bit through trial and error. If you need more help, let me know.

I limited pretty much everything. I halved everything I could. We'll see about speed.

Well, I have an AMD X2 3800+ running Mandriva Linux sitting here with a few
extra cpu cycles and a little extra RAM.

I'm just wondering how I could run the SQL database on the big box and have the little linksys serve it up.

Any suggestions?

>From: Glen Duncan <
dazed@...>>Reply-To:
nslu2-linux@yahoogroups.com>To: nslu2-linux@yahoogroups.com>Subject: Re: [nslu2-linux] http stress
>Date: Mon, 30 Jan 2006 21:31:52 -0500>>>>>>>>On Jan 30, 2006, at 8:29 PM, Gelan Hopkins wrote:>>>> > Hi there!>> >
>> > I've just set up a blog using wordpress for myself and am a little>> > concerned>> > about the stress that it seems to be putting on my little slug. I>> > notice it
>> > takes a long time to load pages, which I can live with because it's>> > a little>> > tiny box ;)>> >>> > But, it seems to me accessing the hard disk a lot. It's probably
>> > just using>> > the swap space, but I'm concerned that It might not have enough swap.>> >>> > Is there a lighter alternative to apache that I could use, or maybe
>> > a way to>> > disable modules in apache that I don't need for wordpress?>>>>Try reducing the number of child servers. Goto the prefork.c section>
>of /etc/apache/httpd.conf. Lower>>MaxClients, MaxSpareServers, MinSpareServers, and StartServers to>>sane values. The default config>>starts five with child processes and allows up to 10. Top reveals
>>that each process consumes 9% of memory.>>My slug started with 5 and a 6th soon appeared. Those first five>>consumed *HALF* of the available memory.>>This is without PHP or MySQL. Hopefully you're running the db on
>>another machine, otherwise it isn't likely>>you're going to keep the machine from swapping out. Good luck!>>(you're gonna need it!) :p>>>>-Glen>
>>>>>>>>>>> SPONSORED LINKS>>>>> Communication and networking>>> Wireless communication and networking
>>> Linksys nslu2>>>>>>>>>>>>>>>> YAHOO! GROUPS LINKS>>>
>> Visit your group "nslu2-linux" on the web.>> To unsubscribe from this group, send an email to:>
nslu2-linux-unsubscribe@yahoogroups.com>> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.>>>>>>>>>>>
>>>

>Hi there!
>
>I've just set up a blog using wordpress for myself and am a little concerned
>about the stress that it seems to be putting on my little slug. I notice it
>takes a long time to load pages, which I can live with because it's a little
>tiny box ;)
>
>But, it seems to me accessing the hard disk a lot. It's probably just using
>the swap space, but I'm concerned that It might not have enough swap.
>
>Is there a lighter alternative to apache that I could use, or maybe a way to
>disable modules in apache that I don't need for wordpress?
>

Cherokee with the CgiPhp module is an alternative worth trying. Do note
that there is a small bug with the latest Cherokee installer. You will
probably need to create an empty config file /opt/etc/cherokee/mime.conf
for it to work.

You can find the location of the CgiPhp module by searching through
these groups.

Cherokee rocks on the NSLU2.

I started with Phphttpd and had many problems getting it to load some
Php web pages. Then moved to Apache, works just fine but is resource
heavy. Now moved on to Cherokee with the CgiPhp module.

--
Robert Hammond
PGP:0x154144DA

Gelan Hopkins

Win32 *scoff* Yeah right, I won t touch windows with a 10 foot pole for being a server. Linux baby. But That sounds great. I m not a newbie to linux, but when

Message 6 of 10
, Jan 31, 2006

0 Attachment

Win32 *scoff* Yeah right, I won't touch windows with a 10 foot pole for
being a server. Linux baby.

But That sounds great. I'm not a newbie to linux, but when it comes to
setting up my own server and the like, I'm a real novice.