Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

M/G/1 queue

From Wikipedia, the free encyclopedia

Aspect of queueing theory

Inqueueing theory, a discipline within the mathematicaltheory of probability, anM/G/1 queue is a queue model where arrivals areMarkovian (modulated by aPoisson process), service times have aGeneraldistribution and there is a single server.[1] The model name is written inKendall's notation, and is an extension of theM/M/1 queue, where service times must beexponentially distributed. The classic application of the M/G/1 queue is to model performance of a fixed headhard disk.[2]

Model definition

[edit]

A queue represented by a M/G/1 queue is a stochastic process whosestate 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 statei toi + 1 represent the arrival of a new customer: the times between such arrivals have anexponential distribution with parameter λ. Transitions from statei toi − 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 arerandom variables which are assumed to bestatistically independent.

Scheduling policies

[edit]

Customers are typically served on afirst-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 themean 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

[edit]

Pollaczek–Khinchine method

[edit]

Theprobability generating function of thestationary queue length distribution is given by thePollaczek–Khinchine transform equation[2]

π(z)=(1z)(1ρ)g(λ(1z))g(λ(1z))z{\displaystyle \pi (z)={\frac {(1-z)(1-\rho )g(\lambda (1-z))}{g(\lambda (1-z))-z}}}

where g(s) is the Laplace transform of the service time probability density function.[8] In the case of anM/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 themethod of supplementary variables. ThePollaczek–Khinchine formula gives the mean queue length and mean waiting time in the system.[9][10]

Recently, thePollaczek–Khinchine formula has been extended to the case of infinite service moments, thanks to the use of Robinson's Non-Standard Analysis.[11]

Matrix analytic method

[edit]
Main article:Matrix analytic method

Consider theembedded 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 statei the chain can move to statei – 1,i,i + 1,i + 2, ....[12] The embeddedMarkov chain hastransition matrix

P=(a0a1a2a3a4a0a1a2a3a40a0a1a2a300a0a1a2000a0a1){\displaystyle P={\begin{pmatrix}a_{0}&a_{1}&a_{2}&a_{3}&a_{4}&\cdots \\a_{0}&a_{1}&a_{2}&a_{3}&a_{4}&\cdots \\0&a_{0}&a_{1}&a_{2}&a_{3}&\cdots \\0&0&a_{0}&a_{1}&a_{2}&\cdots \\0&0&0&a_{0}&a_{1}&\cdots \\\vdots &\vdots &\vdots &\vdots &\vdots &\ddots \end{pmatrix}}}

where

av=0eλu(λu)vv!dF(u)  for v0{\displaystyle a_{v}=\int _{0}^{\infty }e^{-\lambda u}{\frac {(\lambda u)^{v}}{v!}}{\text{d}}F(u)~{\text{ for }}v\geq 0}

andF(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,[13] a term coined byMarcel F. Neuts.[14][15]

An M/G/1 queue has a stationary distribution if and only if the traffic intensityρ=λE(G){\displaystyle \rho =\lambda \mathbb {E} (G)} is less than 1, in which case the unique such distribution hasprobability-generating function:[16]

G(s)=(1ρ)(1s)1s/MS(λ(s1)){\displaystyle G(s)={\frac {(1-\rho )(1-s)}{1-s/M_{S}(\lambda (s-1))}}}

whereMS{\displaystyle M_{S}} is themoment-generating function of a general service time. The stationary distribution of an M/G/1 type Markov model can be computed using thematrix analytic method.[17]

Busy period

[edit]

The busy period is the time spent in states1,2,3,...{\textstyle 1,2,3,...} between visits to the state0{\textstyle 0}. Theexpected length of a busy period is1μλ{\textstyle {\dfrac {1}{\mu -\lambda }}} where1μ{\textstyle {\dfrac {1}{\mu }}} is theexpected length of service time andλ{\textstyle \lambda } the rate of the Poisson process governing arrivals.[18] Letϕ(s){\displaystyle \phi (s)} denote theLaplace transform of the busy periodprobability density function (soϕ(s){\displaystyle \phi (s)} is also theLaplace–Stieltjes transform of the busy period cumulative distribution function). Thenϕ(s){\displaystyle \phi (s)} can be shown to obey the Kendall functional equation[19][20]: 92 

ϕ(s)=g[s+λλϕ(s)]{\displaystyle \phi (s)=g[s+\lambda -\lambda \phi (s)]}

where as aboveg{\textstyle g} is the Laplace–Stieltjes transform of the service time distribution function. This relationship can only be solved exactly in special cases (such as theM/M/1 queue), but for anys{\textstyle s} the value ofϕ(s){\textstyle \phi (s)} can be calculated and by iteration with upper and lower bounds the distribution function numerically computed.[21]

Sojourn time

[edit]

Writing S*(s) for theLaplace–Stieltjes transform of the sojourn time distribution,[22] is given by the Pollaczek–Khinchine transform as

S(s)=(1ρ)sg(s)sλ(1g(s)){\displaystyle S^{\ast }(s)={\frac {(1-\rho )sg(s)}{s-\lambda (1-g(s))}}}

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


Waiting/response time

[edit]

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

W(s)=(1ρ)ssλ(1g(s)){\displaystyle W^{\ast }(s)={\frac {(1-\rho )s}{s-\lambda (1-g(s))}}}

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

Arrival theorem

[edit]

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

Multiple servers

[edit]
Main article:M/G/k queue

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

See also

[edit]

References

[edit]
  1. ^Gittins, John C. (1989).Multi-armed Bandit Allocation Indices. John Wiley & Sons. p. 77.ISBN 0471920592.
  2. ^abHarrison, Peter; Patel, Naresh M. (1992).Performance Modelling of Communication Networks and Computer Architectures. Addison–Wesley.
  3. ^abHarchol-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 (1):9–19.Bibcode:1996DSE.....3....9P.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. Retrieved2011-07-14.
  11. ^Fiorini, Francesco; Cococcioni, Marco; Pagano, Michele (2024). "Extending the Applicability of the Pollaczek-Khinchin Formula to the Case of Infinite Service Moments".IEEE Transactions on Communications.73 (4):2313–2328.doi:10.1109/TCOMM.2024.3476126.ISSN 0090-6778.
  12. ^Stewart, William J. (2009).Probability, Markov chains, queues, and simulation. Princeton University Press. p. 510.ISBN 978-0-691-14062-9.
  13. ^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.
  14. ^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)
  15. ^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.
  16. ^Grimmett, G. R.; Stirzaker, D. R. (1992).Probability and Random Processes (second ed.). Oxford University Press. p. 422.ISBN 0198572220.
  17. ^Bini, D. A.; Latouche, G.;Meini, B. (2005).Numerical Methods for Structured Markov Chains.doi:10.1093/acprof:oso/9780198527688.001.0001.ISBN 9780198527688.
  18. ^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.
  19. ^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.
  20. ^Mitrani, I. (1997). "Queueing systems: average performance".Probabilistic Modelling. Cambridge University Press. pp. 74–121.doi:10.1017/CBO9781139173087.004.ISBN 9781139173087.
  21. ^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.
  22. ^abDaigle, 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.
Single queueing nodes
Arrival processes
Queueing networks
Service policies
Key concepts
Limit theorems
Extensions
Information systems
Discrete time
Continuous time
Both
Fields and other
Time series models
Financial models
Actuarial models
Queueing models
Properties
Limit theorems
Inequalities
Tools
Disciplines
Retrieved from "https://en.wikipedia.org/w/index.php?title=M/G/1_queue&oldid=1332267710"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp