Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 94011 invoked from network); 7 Jul 2009 10:23:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 10:23:55 -0000 Received: (qmail 98960 invoked by uid 500); 7 Jul 2009 10:24:05 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 98850 invoked by uid 500); 7 Jul 2009 10:24:04 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 98841 invoked by uid 99); 7 Jul 2009 10:24:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 10:24:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 10:23:54 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MO7pl-0002Do-60 for dev@httpd.apache.org; Tue, 07 Jul 2009 03:23:33 -0700 Message-ID: <24370640.post@talk.nabble.com> Date: Tue, 7 Jul 2009 03:23:33 -0700 (PDT) From: ricardo13 To: dev@httpd.apache.org Subject: Re: Where Do I Create Queues in MPM Worker In-Reply-To: <88e286470907070306j3e6aecw945b1c8230f9d2d2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: ricardoogrande@gmail.com References: <24354526.post@talk.nabble.com> <24355319.post@talk.nabble.com> <24357634.post@talk.nabble.com> <88e286470907061440p341ebc60ucaa941034e59eaaa@mail.gmail.com> <24370202.post@talk.nabble.com> <88e286470907070306j3e6aecw945b1c8230f9d2d2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Graham Dumpleton-2 wrote: >=20 > 2009/7/7 ricardo13 : >> >> Hi, >> >> Sorry, I didn't know that was in wrong forum. What's the best list to >> write >> this doubt ?? >=20 > 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. >=20 >> 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. >=20 > 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??? >=20 > Firstly, The requests would be classified (module of classify) by IP. >=20 > For example: > If IP =3D x then forward_queue_1(); > else if IP =3D y then forward_queue_2(); >=20 >=20 > I want explain. I'm studying graduate and my final test is a project abou= t > webservers. > I choose subject about QoS in webservers (application-level). The concept= s > about QoS are apply in network-level. >=20 > Thank you > Ricardo >=20 >=20 > Graham >=20 >> 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 : >>>> >>>> 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: >>>> >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0worker_sockets[thread_slot] =3D csd; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0bucket_alloc =3D apr_bucket_alloc_create(pt= rans); >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0process_socket(ptrans, csd, process_slot, t= hread_slot, >>>> bucket_alloc); // Here processing the csd socket ?? >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0worker_sockets[thread_slot] =3D NULL; >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0requests_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-tp2435452= 6p24357634.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-tp24354526p= 24370202.html >> Sent from the Apache HTTP Server - Dev mailing list archive at >> Nabble.com. >> >> >=20 >=20 --=20 View this message in context: http://www.nabble.com/Where-Do-I-Create-Queue= s-in-MPM-Worker-tp24354526p24370640.html Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com.