httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ricardo13 <ricardoogra...@gmail.com>
Subject Re: Where Do I Create Queues in MPM Worker
Date Tue, 07 Jul 2009 10:23:33 GMT



Graham Dumpleton-2 wrote:
> 
> 2009/7/7 ricardo13 <ricardoogrande@gmail.com>:
>>
>> Hi,
>>
>> Sorry, I didn't know that was in wrong forum. What's the best list to
>> write
>> this doubt ??
> 
> You may well be on the right list, but right now it isn't too clear
> that you really need to be modifying the actual MPM code.
> 
>> I want to modify MPM Worker (worker.c) to develop some scheduling
>> algorithms.
>>
>> A first scheduling algorithm would be implement priority. Two queues
>> (worker_queue1 and worker_queue2) of sockets where threads (workers)
>> "get"
>> all requests from worker_queue1 first, after"get" all requests from
>> worker_queue2.
> 
> By what criteria would requests get delegated to each queue? In other
> words, what is the high level outcome you are trying to achieve. For
> example, are you trying to give priority to certain virtual hosts or
> listener ports???
> 
> Firstly, The requests would be classified (module of classify) by IP.
> 
> For example:
>    If IP = x then forward_queue_1();
>    else if IP = y then forward_queue_2();
> 
> 
> I want explain. I'm studying graduate and my final test is a project about
> webservers.
> I choose subject about QoS in webservers (application-level). The concepts
> about QoS are apply in network-level.
> 
> Thank you
> Ricardo
> 
> 
> Graham
> 
>> That is what I wanted to do.
>>
>> Thank you
>> Ricardo
>>
>>
>>
>> Graham Dumpleton-2 wrote:
>>>
>>> Rather than keep demanding an answer to how to do whatever it is you
>>> want, that you explain why you want to do it in the first place. Given
>>> what looks like a rather inadequate knowledge of Apache, it is quite
>>> likely you are going about it all the completely wrong way. So, give
>>> some context about why you need it and people may be able to give more
>>> informed answers. At which point we may also be able to suggest you
>>> are in the wrong forum anyway and that you can do it as a module and
>>> so should use modules-dev list and not the list for development of the
>>> core of httpd.
>>>
>>> Graham
>>>
>>> 2009/7/7 ricardo13 <ricardoogrande@gmail.com>:
>>>>
>>>> Hi all,
>>>>
>>>> Can anybody explain what's doing the function worker_thread in worker.c
>>>> ?
>>>>
>>>> I dont't know APR and don't undestood the following lines:
>>>>
>>>>        worker_sockets[thread_slot] = csd;
>>>>        bucket_alloc = apr_bucket_alloc_create(ptrans);
>>>>        process_socket(ptrans, csd, process_slot, thread_slot,
>>>> bucket_alloc); // Here processing the csd socket ??
>>>>        worker_sockets[thread_slot] = NULL;
>>>>        requests_this_child--; /* FIXME: should be synchronized - aaron
>>>> */
>>>>
>>>> I need know it.
>>>>
>>>> Thank you
>>>> Ricardo
>>>>
>>>>
>>>> ricardo13 wrote:
>>>>>
>>>>> Anyone ??
>>>>>
>>>>>
>>>>> ricardo13 wrote:
>>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I would like to know how I create other queue of requests ?? Where
I
>>>>>> create ?? worker.c ??
>>>>>>
>>>>>> Thank you
>>>>>> Ricardo
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Where-Do-I-Create-Queues-in-MPM-Worker-tp24354526p24357634.html
>>>> Sent from the Apache HTTP Server - Dev mailing list archive at
>>>> Nabble.com.
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Where-Do-I-Create-Queues-in-MPM-Worker-tp24354526p24370202.html
>> Sent from the Apache HTTP Server - Dev mailing list archive at
>> Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Where-Do-I-Create-Queues-in-MPM-Worker-tp24354526p24370640.html
Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.


Mime
View raw message