Share to: share facebook share twitter share wa share telegram print page

M/G/1 queue

In queueing theory, a discipline within the mathematical theory of probability, an M/G/1 queue is a queue model where arrivals are Markovian (modulated by a Poisson process), service times have a General distribution and there is a single server.[1] The model name is written in Kendall's notation, and is an extension of the M/M/1 queue, where service times must be exponentially distributed. The classic application of the M/G/1 queue is to model performance of a fixed head hard disk.[2]

Model definition

A queue represented by a M/G/1 queue is a stochastic process whose state space is the set {0,1,2,3...}, where the value corresponds to the number of customers in the queue, including any being served. Transitions from state i to i + 1 represent the arrival of a new customer: the times between such arrivals have an exponential distribution with parameter λ. Transitions from state i to i − 1 represent a customer who has been served, finishing being served and departing: the length of time required for serving an individual customer has a general distribution function. The lengths of times between arrivals and of service periods are random variables which are assumed to be statistically independent.

Scheduling policies

Customers are typically served on a first-come, first-served basis, other popular scheduling policies include

  • processor sharing where all jobs in the queue share the service capacity between them equally
  • last-come, first served without preemption where a job in service cannot be interrupted
  • last-come, first served with preemption where a job in service is interrupted by later arrivals, but work is conserved[3]
  • generalized foreground-background (FB) scheduling also known as least-attained-service where the jobs which have received least processing time so far are served first and jobs which have received equal service time share service capacity using processor sharing[3]
  • shortest job first without preemption (SJF) where the job with the smallest size receives service and cannot be interrupted until service completes
  • preemptive shortest job first where at any moment in time the job with the smallest original size is served[4]
  • shortest remaining processing time (SRPT) where the next job to serve is that with the smallest remaining processing requirement[5]

Service policies are often evaluated by comparing the mean sojourn time in the queue. If service times that jobs require are known on arrival then the optimal scheduling policy is SRPT.[6]: 296 

Policies can also be evaluated using a measure of fairness.[7]

Queue length

Pollaczek–Khinchine method

The probability generating function of the stationary queue length distribution is given by the Pollaczek–Khinchine transform equation[2]

where g(s) is the Laplace transform of the service time probability density function.[8] In the case of an M/M/1 queue where service times are exponentially distributed with parameter μ, g(s) = μ/(μ + s).

This can be solved for individual state probabilities either using by direct computation or using the method of supplementary variables. The Pollaczek–Khinchine formula gives the mean queue length and mean waiting time in the system.[9][10]

Matrix analytic method

Consider the embedded Markov chain of the M/G/1 queue, where the time points selected are immediately after the moment of departure. The customer being served (if there is one) has received zero seconds of service. Between departures, there can be 0, 1, 2, 3,... arrivals. So from state i the chain can move to state i – 1, i, i + 1, i + 2, ....[11] The embedded Markov chain has transition matrix

where

and F(u) is the service time distribution and λ the Poisson arrival rate of jobs to the queue.

Markov chains with generator matrices or block matrices of this form are called M/G/1 type Markov chains,[12] a term coined by Marcel F. Neuts.[13][14]

An M/G/1 queue has a stationary distribution if and only if the traffic intensity is less than 1, in which case the unique such distribution has probability-generating function:[15]

where is the moment-generating function of a general service time. The stationary distribution of an M/G/1 type Markov model can be computed using the matrix analytic method.[16]

Busy period

The busy period is the time spent in states between visits to the state . The expected length of a busy period is where is the expected length of service time and the rate of the Poisson process governing arrivals.[17] Let denote the Laplace transform of the busy period probability density function (so is also the Laplace–Stieltjes transform of the busy period cumulative distribution function). Then can be shown to obey the Kendall functional equation[18][19]: 92 

where as above is the Laplace–Stieltjes transform of the service time distribution function. This relationship can only be solved exactly in special cases (such as the M/M/1 queue), but for any the value of can be calculated and by iteration with upper and lower bounds the distribution function numerically computed.[20]

Waiting/response time

Writing W*(s) for the Laplace–Stieltjes transform of the waiting time distribution,[21] is given by the Pollaczek–Khinchine transform as

where g(s) is the Laplace–Stieltjes transform of service time probability density function.

Arrival theorem

As the arrivals are determined by a Poisson process, the arrival theorem holds.

Multiple servers

Many metrics for the M/G/k queue with k servers remain an open problem, though some approximations and bounds are known.

See also

References

  1. ^ Gittins, John C. (1989). Multi-armed Bandit Allocation Indices. John Wiley & Sons. p. 77. ISBN 0471920592.
  2. ^ a b Harrison, Peter; Patel, Naresh M. (1992). Performance Modelling of Communication Networks and Computer Architectures. Addison–Wesley.
  3. ^ a b Harchol-Balter, M. (2012). "Scheduling: Preemptive, Non-Size-Based Policies". Performance Modeling and Design of Computer Systems. pp. 482–498. doi:10.1017/CBO9781139226424.038. ISBN 9781139226424.
  4. ^ Harchol-Balter, M. (2012). "Scheduling: Preemptive, Size-Based Policies". Performance Modeling and Design of Computer Systems. pp. 508–517. doi:10.1017/CBO9781139226424.040. ISBN 9781139226424.
  5. ^ Harchol-Balter, M. (2012). "Scheduling: SRPT and Fairness". Performance Modeling and Design of Computer Systems. pp. 518–530. doi:10.1017/CBO9781139226424.041. ISBN 9781139226424.
  6. ^ Gautam, Natarajan (2012). Analysis of Queues: Methods and Applications. CRC Press. ISBN 9781439806586.
  7. ^ Wierman, A.; Harchol-Balter, M. (2003). "Classifying scheduling policies with respect to unfairness in an M/GI/1" (PDF). ACM SIGMETRICS Performance Evaluation Review. 31: 238–249. doi:10.1145/885651.781057.
  8. ^ Peterson, G. D.; Chamberlain, R. D. (1996). "Parallel application performance in a shared resource environment". Distributed Systems Engineering. 3: 9–19. doi:10.1088/0967-1846/3/1/003.
  9. ^ Pollaczek, F. (1930). "Über eine Aufgabe der Wahrscheinlichkeitstheorie". Mathematische Zeitschrift. 32: 64–75. doi:10.1007/BF01194620. S2CID 125053340.
  10. ^ Khintchine, A. Y (1932). "Mathematical theory of a stationary queue". Matematicheskii Sbornik. 39 (4): 73–84. Retrieved 2011-07-14.
  11. ^ Stewart, William J. (2009). Probability, Markov chains, queues, and simulation. Princeton University Press. p. 510. ISBN 978-0-691-14062-9.
  12. ^ Neuts, Marcel F. (1981). Matrix-geometric solutions in stochastic models: an algorithmic approach (Johns Hopkins Studies in Mathematical Sciences). Johns Hopkins University Press. p. 2. ISBN 0-486-68342-7.
  13. ^ Neuts, M. F . (1989). "Structured Stochastic Matrices of M/G/1 Type and Their Applications". New York: Marcel Dekk. {{cite journal}}: Cite journal requires |journal= (help)
  14. ^ Meini, B. (1998). "Solving m/g/l type markov chains: Recent advances and applications". Communications in Statistics. Stochastic Models. 14 (1–2): 479–496. doi:10.1080/15326349808807483.
  15. ^ Grimmett, G. R.; Stirzaker, D. R. (1992). Probability and Random Processes (second ed.). Oxford University Press. p. 422. ISBN 0198572220.
  16. ^ Bini, D. A.; Latouche, G.; Meini, B. (2005). Numerical Methods for Structured Markov Chains. doi:10.1093/acprof:oso/9780198527688.001.0001. ISBN 9780198527688.
  17. ^ Ross, Sheldon M.; Seshadri, Sridhar (1999). "Hitting time in an M/G/1 queue" (PDF). Journal of Applied Probability. 36 (3): 934–940. doi:10.1239/jap/1029349991. JSTOR 3215453.
  18. ^ Abate, J.; Choudhury, G. L.; Whitt, W. (1995). "Calculating the M/G/1 busy-period density and LIFO waiting-time distribution by direct numerical transform inversion" (PDF). Operations Research Letters. 18 (3): 113–119. doi:10.1016/0167-6377(95)00049-6.
  19. ^ Mitrani, I. (1997). "Queueing systems: average performance". Probabilistic Modelling. Cambridge University Press. pp. 74–121. doi:10.1017/CBO9781139173087.004. ISBN 9781139173087.
  20. ^ Abate, J.; Whitt, W. (1992). "Solving probability transform functional equations for numerical inversion" (PDF). Operations Research Letters. 12 (5): 275–281. doi:10.1016/0167-6377(92)90085-H.
  21. ^ Daigle, John N. (2005). "The Basic M/G/1 Queueing System". Queueing Theory with Applications to Packet Telecommunication. pp. 159–223. doi:10.1007/0-387-22859-4_5. ISBN 0-387-22857-8.

Read other articles:

مقراب التصوير الآلي كاتزمان   البلد الولايات المتحدة  الاحداثيات 37°20′36″N 121°38′05″W / 37.34334444°N 121.63482222°W / 37.34334444; -121.63482222  بُني في وسيط property غير متوفر. طراز المرقاب تلسكوب بصري  قطر 76 سنتيمتر  الموقع على الشبكة الموقع الرسمي،  والموقع الرسمي  تعدي...

2009 American adventure comedy film Year OneTheatrical release posterDirected byHarold RamisScreenplay byHarold RamisGene StupnitskyLee EisenbergStory byHarold RamisProduced byHarold RamisJudd ApatowClayton TownsendStarring Jack Black Michael Cera Oliver Platt David Cross Hank Azaria CinematographyAlar KiviloEdited byCraig HerringSteve WelchMusic byTheodore ShapiroProductioncompaniesColumbia PicturesThe Apatow CompanyOcean PicturesDistributed bySony Pictures ReleasingRelease date June 19...

نادي سرقسطة لكرة السلة شعار نادي سرقسطة لكرة السلةشعار نادي سرقسطة لكرة السلة معلومات النادي البلد إسبانيا  تأسس عام 1981  الموقع سرقسطة، منطقة أرغون ألوان الفريق أحمر، أبيض     الموقع الرسمي الموقع الرسمي البطولات البطولات 2 أطقم الفريق     الطقم الأساسي   &#...

Este artículo o sección necesita referencias que aparezcan en una publicación acreditada.Este aviso fue puesto el 3 de octubre de 2011. Radio Latina 101.1La Ciento Uno Localización Suipacha 414, Ciudad Autónoma de Buenos Aires, ArgentinaÁrea de radiodifusión  ArgentinaEslogan La radio de los clásicosFrecuencia Área Metropolitana de Buenos Aires: 101.1 de FM Ver listaProvincia de Neuquén Villa La Angostura: 101.5 de FM Provincia de Mendoza Mendoza: 104.3 de FMProvincia de Río N...

Tzutzbén Bajo Localidad Tzutzbén BajoLocalización de Tzutzbén Bajo en México Tzutzbén BajoLocalización de Tzutzbén Bajo en ChiapasCoordenadas 16°53′37″N 92°42′57″O / 16.893704722222, -92.71579Entidad Localidad • País México México • Estado Chiapas • Municipio LarráinzarAltitud   • Media 1,954 m s. n. m.Población (2020)   • Total 191 hab.[1]​Huso horario Tiempo del Centro (UTC -6) • en ve...

بحث لنكولن عن الكويكبات القريبة من الأرض تعديل مصدري - تعديل   33°49′05″N 106°39′33″W / 33.81813889°N 106.65916667°W / 33.81813889; -106.65916667 يظهر هذا الرسم البياني أعداد الأجرام القريبة من الأرض التي اكتشفها كل من مشاريع البحث الكبرى عنها بين عامي 1995 و2014، اكتشافات مشروع بحث لنكولن موض

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أغسطس 2020) حكيم بن سعد معلومات شخصية اسم الولادة حكيم بن سعد الإقامة الكوفة  الكنية أبو يحيى اللقب الحتفي الكوفي الحياة العملية الطبقة التابعون النسب بنو حنيفة المه...

Ini adalah nama Karo, marganya adalah Sembiring Meliala. Raja Kami Sembiring MelialaPotret resmi, 1982Anggota Dewan Perwakilan RakyatMasa jabatan1 Oktober 1999 – 30 September 2009Daerah pemilihanSumatera Utara (Deli Serdang)(1999–2004)Papua Barat(2004–2009)Masa jabatan1987–1994Grup parlemenABRIPanglima Komando Daerah Militer XVII/CenderawasihMasa jabatan1983–1985PendahuluParjoko SuryokusumoPenggantiHasudungan Simanjuntak[a] Informasi pribadiLahir(1938-08-17)17 Agust...

حمض البيرأسيتيك حمض البيرأسيتيك حمض البيرأسيتيك التسمية المفضلة للاتحاد الدولي للكيمياء البحتة والتطبيقية Ethaneperoxoic acid[1] أسماء أخرى Peroxyacetic acidAcetic peroxideAcetyl hydroperoxideProxitanePeracetic acid المعرفات الاختصارات PAA رقم CAS 79-21-0 Y بوب كيم (PubChem) 6585 مواصفات الإدخال النصي المبسط للجزيئات CC(...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: VL Myrsky – news · newspapers · books · scholar · JSTOR (August 2020) (Learn how and when to remove this template message) Myrsky A Finnish Air Force VL Myrsky II in 1944 Role Reconnaissance, fighterType of aircraft National origin Finland Manufacturer Valtion ...

Wilhelm I. von Holte († 1260) war von 1259 bis 1260 der 29. Bischof von Münster. Leben Grab von Bischof Wilhelm (I.) von Holte im Altarraum des Domes zu Münster/Westfalen, Deutschland Er stammte aus dem Adelsgeschlecht von Holte mit dem Stammsitz Holter Burg. Er war der Sohn von Wikbold von Holte, einem Bruder des früheren Bischofs Ludolf von Holte und Hermann (Abt von Corvey). Sein Vater trat 1259 möglicherweise in Zusammenhang mit der Wahl von Wilhelm zum Bischof in ein Kloster ein. S...

Portuguese writer (1916–1996) Vergílio FerreiraCaricature of Vergílio Ferreira at the Lisbon AirportBorn(1916-01-28)28 January 1916Melo (near Gouveia)Died1 March 1996(1996-03-01) (aged 80)LisbonNationalityPortugueseOccupationWriterKnown forManhã Submersa Vergílio António Ferreira, JOSE (Melo, Gouveia, 28 January 1916 – Lisbon, 1 March 1996) was a Portuguese writer, essayist, professor and a key figure in Portuguese-language literature. His prolific literary output, comp...

Japanese manufacturer This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Oji Paper Company – news · newspapers · books · scholar · JSTOR (October 2009) (Learn how and when to remove this template message) Oji Holdings CorporationTypePublic (K.K)Traded asTYO: 3861Nikkei 225 ComponentIndustryPulp and PaperFounded...

Church in Somerset, England Church of St MaryLocationCompton Pauncefoot, Somerset, EnglandCoordinates51°02′01″N 2°30′32″W / 51.0337°N 2.5090°W / 51.0337; -2.5090Built15th century Listed Building – Grade II*Official nameChurch of St MaryDesignated24 March 1961[1]Reference no.1248577 Location of Church of St Mary in Somerset The Anglican Church of St Mary in Compton Pauncefoot, Somerset, England was built in the 15th century. It is a Grade II* ...

Shehu of Bornu Umar of BornoShehu of BornuUmar von Bornu on 6 June 1870 by Gustav Nachtigal in his travel's narrative, Sahara und Sudan, p.594Reign8th June 1837 - 4th October 1853 (deposed by coup)PredecessorMuhammad al-Amin al-Kanemi, KanemiSuccessorAbd ar-Rahman ibn Muhammad al-AminReign3rd September 1854 - December 1881PredecessorAbd ar-Rahman ibn Muhammad al-AminSuccessorBukar KuraBornUmar I ibn Muhammad al-AminDiedDecember 1881BornoBurialKukawaIssueBukar KuraAbba IbrahimHashimDynastyKane...

Italian sprinter Audrey AllohPersonal informationNationalityItalianBorn (1987-07-21) 21 July 1987 (age 36)Abidjan, Côte d'IvoireSportCountry ItalySportAthleticsEventSprintClubG.S. Fiamme AzzurreAchievements and titlesPersonal bests 60 m indoor: 7.24 (2015) 100 m: 11.37 (2017) 200 m: 24.06 (2012) Medal record Event 1st 2nd 3rd Summer Universiade 1 0 0 Mediterranean Games 1 0 0 European Cup 0 0 1 Batafoé N’Gnoron Jeanne Audrey Larissa Alloh (born 21 July 1987) is a sprinter who compete...

Internet-based TV platform Pluto TVLogo used since 2020Type of businessSubsidiaryType of site Entertainment OTT platform Available inDanishEnglishFinnishFrenchGermanItalianNorwegianPortugueseSpanishSwedishFoundedAugust 1, 2013; 10 years ago (2013-08-01)Headquarters United States: West Hollywood, California Canada: Toronto, Ontario Europe: Berlin, Germany Area served United States Canada Brazil Latin America Most of Europe United Kingdom Australia (via 10Play) Owner...

Character in Buffy the Vampire Slayer Fictional character Xander HarrisBuffy the Vampire Slayer characterNicholas Brendon as Xander Harris in 2001.First appearanceWelcome to the Hellmouth (1997)Last appearanceFinale (2018)Created byJoss WhedonPortrayed byNicholas BrendonKelly Donovan (Xander double)In-universe informationAffiliationScooby GangClassificationHumanNotable powersVague knowledge of military training, tactics, and weapons handling techniques due to his brief transformation into a s...

This article is part of a series onPolitics of the European Union Member states (27) Austria Belgium Bulgaria Croatia Cyprus Czech Republic Denmark Estonia Finland France Germany Greece Hungary Ireland Italy Latvia Lithuania Luxembourg Malta Netherlands Poland Portugal Romania Slovakia Slovenia Spain Sweden Candidate countries Albania Bosnia and Herzegovina Mo...

Antoni Norbert PotockiCountCoat of armsPilawaFull nameAntoni Norbert PotockiBorn(1780-06-17)17 June 1780Died18 October 1850(1850-10-18) (aged 70)FamilyPotockiSpouse(s)Róża PotockaIzabela JelskaIssuewith Róża PotockaWłodzimierz Stanisław PotockiRóża PotockaPrzemysław PotockiIzabela JelskaCecylia PotockaAniela PotockaAmelia PotockaMarta PotockaFatherJózef Makary PotockiMotherLudwika Lubomirska Count Antoni Norbert Potocki hr. Pilawa (1780–1850) was a Polish nobleman (szlachcic)...

Kembali kehalaman sebelumnya