Re: Threading & PHP
| From: | Mark Charette | Date: | Mon, 26 Jan 2004 12:43:26 +0000 |
| Subject: | Re: Threading & PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175748@lists.php.net to get a copy of this message | ||
On Sun, 25 Jan 2004, Galen wrote:
> I'm not 100% sure what you're talking about, to be honest. I think I'm
> in the second half of the people... :)
>
> As far as I can tell, Apache runs as many processes (httpd) as needed
> on my local machine. As far as my server, I haven't seen this behavior,
> but I admit I don't sit there watching top all the time unless
> something is broken, and even then, I usually can't fix whatever is
> broken. I don't have root or other special access to the server - it's
> a shared machine, pretty lightly loaded most of the time. I do have SSH
> access.
Processor affinity isn't nearly as complex as threading; it means to set
up a system whereby certain processes run on a particular processor set;
e.g., all httpd processes run on CPU set 1, all image processing tasks run
on CPU set 2. That way CPU set 1 can continue servicing httpd requests
without being bogged down by the CPU intensive tasks running on CPU set 2.
If pset is available as a command on your multiple CPU machine then you
can probably set up processor affinity.