Оптимальное управление двумя параллельными FIFO-очередями на бесконечном времени
Барковский Евгений Александрович, Соколов Андрей Владимирович · Информационно-управляющие системы · 2015
Introduction: FIFO queue is a very common data structure used in many hardware and software applications. In the development of various network devices and embedded operating systems, you often have to work with several FIFO queues located in a shared memory space. Also, there are architectures of multicore processors where two FIFO queues are allocated to one core. The purpose of this research is constructing and analyzing a mathematical model of two serial cyclic FIFO queues in a shared memory with the following protocol: insertion into one of the queues is performed on an odd step, and deletion is performed on an even step (the execution of the operations can be either serial or parallel). Results: The problem of optimal partitioning of the shared memory for FIFO-queues is formulated as a problem of integer programming, where the optimality criterion function is defined algorithmically. Mathematical and simulation models of this process were constructed for two queues, and numerical experiments based on theoretical data were performed. The mathematical model was built as a random walk on a two-dimensional integer lattice with reflecting screens, i.e. we deal with a regular uniform Markov chain. The optimality criterion is the minimum average share of lost (due to overflow) elements of the queues. The peculiarity of our approach is a specific execution of the queue operations: insertion and deletion of the elements occur according to the step (some amendments have been made to maintain homogeneity and regularity of the chain), and parallel execution of the operations is also possible. Practical relevance: With the help of the developed model, you can find the optimal partition of a limited shared memory to improve the system stability. The proposed models, algorithms and the developed software complex can be used in the design of networking devices, for example, routers, where packet losses are acceptable but unwanted. When we partition a shared memory for queues in the optimal way, we lose fewer packets and, as a result, the data is delivered quicker.
Cited by 0 works.