public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Optimising apache on a single core 32bit machine with hyperthreading
@ 2011-09-24  9:32 Mick
  2011-09-24 10:12 ` Florian Philipp
  0 siblings, 1 reply; 3+ messages in thread
From: Mick @ 2011-09-24  9:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1670 bytes --]

If I haven't enabled USE= apache2_mpms_prefork and apache2_mpms_worker, how 
does apache behave with regards to threading responses?

This question is for a box with an Intel P4 single core cpu:

# cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 15
model		: 3
model name	: Intel(R) Pentium(R) 4 CPU 3.40GHz
stepping	: 4
cpu MHz		: 3401.107
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs 
bts pni dtes64 monitor ds_cpl cid xtpr
bogomips	: 6802.21
clflush size	: 64
cache_alignment	: 128
address sizes	: 36 bits physical, 32 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 15
model		: 3
model name	: Intel(R) Pentium(R) 4 CPU 3.40GHz
stepping	: 4
cpu MHz		: 3401.107
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 1
initial apicid	: 1
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs 
bts pni dtes64 monitor ds_cpl cid xtpr
bogomips	: 6800.63
clflush size	: 64
cache_alignment	: 128
address sizes	: 36 bits physical, 32 bits virtual
power management:
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Optimising apache on a single core 32bit machine with hyperthreading
  2011-09-24  9:32 [gentoo-user] Optimising apache on a single core 32bit machine with hyperthreading Mick
@ 2011-09-24 10:12 ` Florian Philipp
  2011-09-24 11:27   ` Mick
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Philipp @ 2011-09-24 10:12 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

Am 24.09.2011 11:32, schrieb Mick:
> If I haven't enabled USE= apache2_mpms_prefork and apache2_mpms_worker, how 
> does apache behave with regards to threading responses?
> 
[...]

If you have neither enabled, the ebuild (apache-2 eclass, to be
specific) chooses one of them based on USE=threads. Enabled=worker,
disabled=prefork.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Optimising apache on a single core 32bit machine with hyperthreading
  2011-09-24 10:12 ` Florian Philipp
@ 2011-09-24 11:27   ` Mick
  0 siblings, 0 replies; 3+ messages in thread
From: Mick @ 2011-09-24 11:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1232 bytes --]

On Saturday 24 Sep 2011 11:12:48 Florian Philipp wrote:
> Am 24.09.2011 11:32, schrieb Mick:
> > If I haven't enabled USE= apache2_mpms_prefork and apache2_mpms_worker,
> > how does apache behave with regards to threading responses?
> 
> [...]
> 
> If you have neither enabled, the ebuild (apache-2 eclass, to be
> specific) chooses one of them based on USE=threads. Enabled=worker,
> disabled=prefork.

Thanks,

I have threads unset globally so from what you're saying apache must be 
running in preforked mode.  I thought that I would need to define explicitely 
USE="apache2_mpms_prefork" and enable or configure this in the apache modules 
(I couldn't find any configurations related to preforked when I looked).

I'm trying to troubleshoot why a dev't machine that also runs a KDE desktop 
continues to freeze after a few hours of heavy usage (and repeated reloading 
of web pages for testing).  It usually unlocks itself if left alone over a 
coffee break - say after 5 -15 minutes depending on how many desktop apps are 
running at the time.

I don't think it is apache that causes it (I'm suspecting KDE of course ;p ), 
but it may be one of the things that contributes to it.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-24 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-24  9:32 [gentoo-user] Optimising apache on a single core 32bit machine with hyperthreading Mick
2011-09-24 10:12 ` Florian Philipp
2011-09-24 11:27   ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox