Re: Running Apache with as few modules as possible

2009-04-30 Thread Tom Worster
On 4/29/09 4:59 PM, "Charles Howse"  wrote:

> I recall Bill Gates saying, "640k is enough for anybody."  I agree,
> it's not much of a savings, and there's always the possibility that
> the webmaster may add something later that needs a module that's
> commented, and run around in circles before she/he realizes it.

right.

one thing to remember about optimizations is to put your effort where you
need it most. for example, in my apps that's always been in the database
queries. so i have logging techniques that allow me to run pareto analyses
on query timing data and use that to direct my efforts.

spending a couple of weeks optimizing malloc(), a surprisingly popular
activity, is seldom worth it.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Running Apache with as few modules as possible

2009-04-29 Thread Charles Howse


On Apr 29, 2009, at 3:18 PM, Tom Worster wrote:


On 4/28/09 6:45 PM, "Adam Vandemore"  wrote:


OK, here we go:
With Apache running on the development machine, modules commented as
in my first post --
CPU:  0.8% user,  0.0% nice,  0.4% system,  0.8% interrupt, 98.1%  
idle
Mem: 27M Active, 139M Inact, 64M Wired, 11M Cache, 34M Buf, 648K  
Free

Swap: 512M Total, 60K Used, 512M Free

Apache running on the same machine without any modules commented
except mod_ssl --
CPU:  0.8% user,  0.0% nice,  0.8% system,  0.4% interrupt, 98.1%  
idle
Mem: 27M Active, 134M Inact, 64M Wired, 13M Cache, 34M Buf, 3584K  
Free

Swap: 512M Total, 60K Used, 512M Free

I just ran 'top' after starting httpd to get these figures, maybe I
should have done something different?
'bout the only thing that makes sense to me is I have more Free  
Memory

when commenting all those modules.
What is the list's opinion on this?


You should probably use pmap for a more accurate comparison.  you may
also want to set CFLAGS= -Os for size considerations(CPUTYPE as  
well),
and remove unnecessary modules from kernel if you haven't done so  
already.


agreed. top lines of top  are too imprecise to really tell. but so  
far as
the data goes, this is consistent with my findings, i.e. disabling  
mods in
the apache runtime config file doesn't save enough to justify the  
effort.


I recall Bill Gates saying, "640k is enough for anybody."  I agree,  
it's not much of a savings, and there's always the possibility that  
the webmaster may add something later that needs a module that's  
commented, and run around in circles before she/he realizes it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Running Apache with as few modules as possible

2009-04-29 Thread Tom Worster
On 4/28/09 6:45 PM, "Adam Vandemore"  wrote:

>> OK, here we go:
>> With Apache running on the development machine, modules commented as
>> in my first post --
>> CPU:  0.8% user,  0.0% nice,  0.4% system,  0.8% interrupt, 98.1% idle
>> Mem: 27M Active, 139M Inact, 64M Wired, 11M Cache, 34M Buf, 648K Free
>> Swap: 512M Total, 60K Used, 512M Free
>> 
>> Apache running on the same machine without any modules commented
>> except mod_ssl --
>> CPU:  0.8% user,  0.0% nice,  0.8% system,  0.4% interrupt, 98.1% idle
>> Mem: 27M Active, 134M Inact, 64M Wired, 13M Cache, 34M Buf, 3584K Free
>> Swap: 512M Total, 60K Used, 512M Free
>> 
>> I just ran 'top' after starting httpd to get these figures, maybe I
>> should have done something different?
>> 'bout the only thing that makes sense to me is I have more Free Memory
>> when commenting all those modules.
>> What is the list's opinion on this?
>> 
> You should probably use pmap for a more accurate comparison.  you may
> also want to set CFLAGS= -Os for size considerations(CPUTYPE as well),
> and remove unnecessary modules from kernel if you haven't done so already.

agreed. top lines of top  are too imprecise to really tell. but so far as
the data goes, this is consistent with my findings, i.e. disabling mods in
the apache runtime config file doesn't save enough to justify the effort.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Running Apache with as few modules as possible

2009-04-28 Thread Adam Vandemore

Charles Howse wrote:


On Apr 28, 2009, at 2:29 PM, Tom Worster wrote:


On 4/28/09 3:14 PM, "Charles Howse"  wrote:


Can anyone see anything that I've commented that I'll be sorry for?
Can anyone suggest any more testing I should do?


unfortunately i can't but i'd like to ask you to tell us, once you're 
done

with removing modules, how much memory you saved relative to where you
started.

i'm curious because i went through a similar exercise not long ago 
and would

be interested to compare notes.


OK, here we go:
With Apache running on the development machine, modules commented as 
in my first post --

CPU:  0.8% user,  0.0% nice,  0.4% system,  0.8% interrupt, 98.1% idle
Mem: 27M Active, 139M Inact, 64M Wired, 11M Cache, 34M Buf, 648K Free
Swap: 512M Total, 60K Used, 512M Free

Apache running on the same machine without any modules commented 
except mod_ssl --

CPU:  0.8% user,  0.0% nice,  0.8% system,  0.4% interrupt, 98.1% idle
Mem: 27M Active, 134M Inact, 64M Wired, 13M Cache, 34M Buf, 3584K Free
Swap: 512M Total, 60K Used, 512M Free

I just ran 'top' after starting httpd to get these figures, maybe I 
should have done something different?
'bout the only thing that makes sense to me is I have more Free Memory 
when commenting all those modules.

What is the list's opinion on this?

You should probably use pmap for a more accurate comparison.  you may 
also want to set CFLAGS= -Os for size considerations(CPUTYPE as well), 
and remove unnecessary modules from kernel if you haven't done so already.


--
Adam Vandemore
Systems Administrator
IMED Mobility
(605) 498-1610

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Running Apache with as few modules as possible

2009-04-28 Thread Charles Howse


On Apr 28, 2009, at 2:29 PM, Tom Worster wrote:


On 4/28/09 3:14 PM, "Charles Howse"  wrote:


Can anyone see anything that I've commented that I'll be sorry for?
Can anyone suggest any more testing I should do?


unfortunately i can't but i'd like to ask you to tell us, once  
you're done

with removing modules, how much memory you saved relative to where you
started.

i'm curious because i went through a similar exercise not long ago  
and would

be interested to compare notes.


OK, here we go:
With Apache running on the development machine, modules commented as  
in my first post --

CPU:  0.8% user,  0.0% nice,  0.4% system,  0.8% interrupt, 98.1% idle
Mem: 27M Active, 139M Inact, 64M Wired, 11M Cache, 34M Buf, 648K Free
Swap: 512M Total, 60K Used, 512M Free

Apache running on the same machine without any modules commented  
except mod_ssl --

CPU:  0.8% user,  0.0% nice,  0.8% system,  0.4% interrupt, 98.1% idle
Mem: 27M Active, 134M Inact, 64M Wired, 13M Cache, 34M Buf, 3584K Free
Swap: 512M Total, 60K Used, 512M Free

I just ran 'top' after starting httpd to get these figures, maybe I  
should have done something different?
'bout the only thing that makes sense to me is I have more Free Memory  
when commenting all those modules.

What is the list's opinion on this?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Running Apache with as few modules as possible

2009-04-28 Thread Tom Worster
On 4/28/09 3:14 PM, "Charles Howse"  wrote:

> Can anyone see anything that I've commented that I'll be sorry for?
> Can anyone suggest any more testing I should do?

unfortunately i can't but i'd like to ask you to tell us, once you're done
with removing modules, how much memory you saved relative to where you
started.

i'm curious because i went through a similar exercise not long ago and would
be interested to compare notes. 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"