380 likes | 541 Views
A class of Generalized Stochastic Petri Nets for the performance Evaluation of Mulitprocessor Systems. By M. Almone, G. Conte Presented by Yinglei Song. Outline. Background Modeling concurrent systems with Petri Nets Stochastic Petri Nets (SPN) Markov Chains (MC)
E N D
A class of Generalized Stochastic Petri Nets for the performance Evaluation of Mulitprocessor Systems By M. Almone, G. Conte Presented by Yinglei Song
Outline • Background • Modeling concurrent systems with Petri Nets • Stochastic Petri Nets (SPN) • Markov Chains (MC) • Generalized Stochastic Petri Nets (GSPN) • The steady state distribution in GSPN • Computing the steady state distribution more efficiently. • Examples. • Numerical results.
Petri Nets • A model that consists of • P, a set of places • T, a set of transitions • A, a set of directed arcs • M, a vector that stands for the number of tokens in each place. (referred to as a marking). • The reachability set of a marking. • k-bounded Petri Nets.
An Example • A Petri Net for modeling bisexual population
Stochastic Petri Nets • The modeling ability of a PN is limited • transition occurs with different probabilities in real systems. • New parameter sets are needed for modeling different transition rates or probabilities. • A new parameter set R is thus added to the definition of Petri Nets. • A Stochastic Petri Net (SPN) is defined as a five-tuple (P, T, A, M, R).
A Markov Chain • A Markov Model (MM) is comprised of • A Markov Chain (MC) is a sequence states generated following transitions in an MM. • S: a set of states • T: a set of transitions • P: a set of probabilities associated with each transition
SPN and MC • It can be proved that SPN is equivalent to a MC • The set of states in MC is equivalent to the set of all possible markings in the corresponding SPN • The transition probabilities in the MC can be computed with transition rates in the corresponding SPN • The transition probability matrix can thus be determined from the transition rates in SPN
SPN and MC • The sojourn time in each marking is an exponentially distributed random variable with average:
SPN and MC • The transition probabilities in the corresponding MC is determined by:
The transition matrix of MC • The transition matrix of a MC is defined as:
The dynamics of MC • The dynamical equation of a MC can be written as:
The steady state distribution of MC • The steady state distribution of the MC is a fixed point of the dynamical equation:
Generalized Stochastic Petri Nets • Neither PN nor SPN is able to perfectly model all the real systems. • Transition rates in real systems may span a wide range including a few orders of magnitude. • GSPN is a model that allows both timed transitions and immediate transitions. • GSPN is able to model real systems with an appropriate granularity of time.
Outline • Background • Modeling concurrent systems with Petri Nets • Stochastic Petri Nets (SPN) • Markov Chains (MC) • Generalized Stochastic Petri Nets (GSPN) • The steady state distribution in GSPN • Computing the steady state distribution more efficiently. • Examples. • Numerical results.
GSPN steady state distribution • Two types of markings (states) exist in a GSPN: • Tangible states are markings that are associated with only timed transitions. • Vanishing states are markings that are associated with at least on immediate transition.
Assumptions • The reachability set of GSPN is finite. • Transition rates remain constant and do not evolve with time. • The initial marking is reachable with a nonzero probability from any marking in the reachability set. • No marking exists that “absorbs” the process.
Notations • Following notations are used to derive the steady state distribution: • S: the set of states in the SPP. • T: the set of tangible states in S. • V: the set of vanishing states in S.
The steady state distribution • The steady state distribution must satisfy:
Outline • Background • Modeling concurrent systems with Petri Nets • Stochastic Petri Nets (SPN) • Markov Chains (MC) • Generalized Stochastic Petri Nets (GSPN) • The steady state distribution in GSPN • Computing the steady state distribution more efficiently. • Examples. • Numerical results.
Efficient computation of steady state distribution • The inverse of the transition matrix needs to be computed in time • The dimensionality of the transition matrix can become very big. • The computation of the inverse of the transition matrix can become very inefficient. • More efficient approaches are needed for computing the steady state distribution.
The approach • The dimensionality of the transition matrix can be reduced by observing the figure: i r t1 j
The effective transition matrix • If we only consider the tangible states, the transition matrix can be computed with:
Outline • Background • Modeling concurrent systems with Petri Nets • Stochastic Petri Nets (SPN) • Markov Chains (MC) • Generalized Stochastic Petri Nets (GSPN) • The steady state distribution in GSPN • Computing the steady state distribution more efficiently. • Examples. • Numerical results.
Interesting questions • Can we further simplify the GSPN used such that all resources can be abstracted as tokens? • If the answer is “no”, what actually determines that, the topology of the system? • Is a mathematical proof possible?
Outline • Background • Modeling concurrent systems with Petri Nets • Stochastic Petri Nets (SPN) • Markov Chains (MC) • Generalized Stochastic Petri Nets (GSPN) • The steady state distribution in GSPN • Computing the steady state distribution more efficiently. • Examples. • Numerical results.
Numerical results • The upper bound (M is infinitely large) • The lower bound (M is equal to b) • To understand the dependence of the throughput on M, further investigation is needed. • GSPN provides a convenient way for this purpose.
Conclusion • Extended from SPN and PN, the GSPN model can provide a finer description of the real system. • The GSPN is mathematically equivalent to a MC. • The steady state distribution of GSPN can be efficiently computed. • Real system can be analyzed to deeper level if GSPN is adopted. Exact solutions can be obtained for some complicated situations.