Re: large data transfer between 2 processes
- From: "Stanislav Sobol" <stas@xxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 22:57:06 +0300
And, I think you have to optimize your code ;-) and databases.
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> ???????/???????? ? ????????
?????????: news:tOGdnZUtjbRVBqTeRVn-gQ@xxxxxxxxxxxxxx
> pierre.bru@xxxxxxxxx wrote:
>> hi,
>>
>> fist the context: I have a web server which query a mySql database. but
>> as the number of parralel queries increase, the server slows down too
>> much.
>>
>> I got 2 ideas, one of which is to run N deamons which effectively
>> execute requests. the PHP uses message queuing(1) to queue queries
>> request to the daemons. but the answer may be quite large, larger than
>> messages the message queueing service can handle.
>>
>> I thought to open back a communication link between the current daemon
>> and the waiting PHP to tranfer/process the result, using the message
>> queueing service to send back info regarding the opened link.
>>
>> I thought to open a pipe between the current daemon and the PHP. is
>> this possible? and if so, how? if not, is an IP link to localhost be as
>> fast as a pipe?
>>
>> TIA,
>> Pierre.
>>
>> (1) http://www.phpfreaks.com/phpmanual/page/function.msg-get-queue.html
>>
>
> Pierre,
>
> How is that going to help you? You're just adding another layer to an
> already slow process.
>
> First of all you need to determine why the slowdown occurs. Is it lack of
> CPU cycles? Insufficient real memory? Disk access time? Insufficient
> buffers/cache? Or any of a number of other things.
>
> Once you determine *why* the slowdown occurs, you can work on that
> problem. It may be tuning parameters, a faster CPU, multiple physical
> disks, more memory, or even another machine to run your MySQL queries.
>
> But just trying things without understanding the cause of the slowdown is
> a very hit-and-miss way of "fixing" it.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@xxxxxxxxxxxxx
> ==================
.
- References:
- large data transfer between 2 processes
- From: pierre . bru
- Re: large data transfer between 2 processes
- From: Jerry Stuckle
- large data transfer between 2 processes
- Prev by Date: Re: php trivia: =>
- Next by Date: Re: large data transfer between 2 processes
- Previous by thread: Re: large data transfer between 2 processes
- Next by thread: imagecopyresampled() Help Needed
- Index(es):
Relevant Pages
|