77325

The RiDE.C microkernel

Научная статья

Информатика, кибернетика и программирование

C microkernel M. t this point it is resonble to begin with description of microkernel RiDE. nd microkernel rchitecture ssumes to orgnize services mnging resources in the form of userlevel servers which re ccessed over interprocess communiction mchinery IPC nd over the stck of protocols built on IPC.C microkernel re determined by bsic intertsk exchnge protocol RiDE.

Английский

2015-02-02

12 KB

0 чел.

The RiDE.C microkernel

M.O. Bakhterev

IMM UrB RAS, Yekaterinburg

It was shown earlier that it is rational to develop distributed OS with new application programming interface (API) allowing to exploit more efficient and easier abilities of modern distributed nonuniform computing systems. The basic principles for structure of such an OS and the basic elements of its API have been already designed, and that allows to proceed to presentation of software components being intended to form the OS. At this point it is reasonable to begin with description of microkernel (RiDE.C), because its design reflects the main features of the OS.

Distributed systems (DS) might be build in the framework of traditional OSes with big monolithic kernels (macrokernels). But overall system structure becomes more complex with this approach. Distributed OS should give applications access to resources in the manner independent of mutual layout of these applications and resources on the system nodes, after all. To achieve that within macrokernel architectures it is needed to use some resource through proxy server. Such server using network service of the kernel provides connectivity with remote nodes of system: it receives external resource requests, translates them (translation TQ) into calls to kernel service maintaining the resource, translates the results of the calls to form replies (TR), and sends them out.

And microkernel architecture assumes to organize services managing resources in the form of user-level servers, which are accessed over inter-process communication machinery (IPC) and over the stack of protocols built on IPC. Traditionally, that serves as the premise to conclusion about  inefficiency of such architectures, because the task context switching is needed to execute application requests. But the working through proxy server in DS based on macrokernel architecure also demands to switch the contexts, even in the case when the resource and the application using it are on the same node. And the need to develop additional protocol and to communicate over it (TR, TQ) makes solution with macrokernel for distributed OS less effective and more complex.

Many features of RiDE.C microkernel are determined by basic inter-task exchange protocol – RiDE.P. It describes interaction over areas of shared memory, and allows to translate over the network transparently for applications the acts of interaction with the help of software agents executed outside microkernel. The RiDE.P protocol only demands from microkernel to support simple synchronization primitive – r-semaphore (unidirectional ring, in contrast to stack behavior of counter, point-to-point semaphore), operations on which are also translatable through agents over the RiDE.P (property ST).

Some features of the RiDE.C microkernel follow.

1. Every  algorithm used in RiDE.C functionality implementation has time complexity of O(1). Even the time management subsystems, algorithms for which in traditional OSes have complexity of O(n*n) or O(n*log(n),  n – the number of software timers being used.

2. The architecture of OS being developed assumes that load balancing functions are carried out to user-level process. The RiDE.C scheduler does not solve the task of balancing, because it cannot be solved qualitatively enough without taking into account the peculiarities of specific application.

3. The RiDE.C scheduler was designed to provide good execution conditions for interactive tasks (at DS they are tasks controlling data exchange), as well as for tasks with large computational time. Optimizing the work of first ones, the scheduler tracks task groups, which occupy processor for a long time, and lowers their interactivity level. Supporting the second ones, the scheduler reprograms hardware timer to provide processor-bounded tasks with long intervals of uninterrupted work. Both types of tasks in many traditional OSes are interrupted equally frequently, and user can get unfair long amount of processor time for her/his application, because only the individual behaviors of tasks forming the application are analyzed.

4. Only two actions with r-semaphores are defined by RiDE.C API as system calls. Access to all other microkernell functionality is defined by API as protocol over RiDE.P, that together with property ST allows to flexibly adjust access to microkernel. The tasks working with microkernel on some remote node of system, as well as the tasks having no control over microkernel running the local for tasks node are standard for OS being developed. Such capability is important element in the dataflow based model of parallel programming for nonuniform DS, which was proposed earlier.

5.The RiDE.C API prescribe to allocate and to tune data structures for microkernel at the external user level manager and to begin their usage at the microkernel itself after simple registration. Such functions as “create task” or “create r-semaphore” are absent, because they demand to work with memory at the microkernel level leading to difficulties when virtual memory is used. This approach does not lower the general system security (the memory manager is always trusted component), but allows to make microkernel simpler and, what is more important for big computations, opens access to states of tasks and r-semaphores connecting them from user level. That, in its turn, leads to simplification of the implementation of orthogonal persistence machinery: checkpoints, task migration between nodes of DS. Also that allows to run load balancers specialized for concrete applications at the user level.

By present uniprocessor version of microkernel has been implemented. The work on drivers providing task interaction in multiprocessor systems and the work on drivers providing access to modern hardware timers are carried out.


 

А также другие работы, которые могут Вас заинтересовать

6859. Визначення геометричних параметрів зубчатих коліс 84 KB
  Визначення геометричних параметрів зубчатих коліс Ціль роботи: засвоєння методики розрахунку геометричних параметрів евольвентних зубчатих передач визначення геометричних параметрів (розшифровка) евольвентних зубчатих коліс засвоєння правил офо...
6860. Визначення механічних характеристик електричних двигунів 3.09 MB
  Визначення механічних характеристик електричних двигунів Мета роботи: визначення залежностей частоти обертання ротору електродвигуна та його механічної потужності від моменту, який розвиває двигун Електродвигуни постійного струму...
6861. Вивчення конструкцій механізмів слідкуючих систем дистанційного керування 66.5 KB
  Вивчення конструкцій механізмів слідкуючих систем дистанційного керування Ціль роботи...
6862. Изучение конструкций механизмов следящих систем дистанционного управления 43 KB
  Изучение конструкций механизмов следящих систем дистанционного управления. Выходной вал следящего привода с заданной степенью точности воспроизводит в виде механического перемещения входной управляющий сигнал....
6863. Визначення пружних властивостей та характеристик гвинтових пружин 1.46 MB
  Визначення пружних властивостей та характеристик гвинтових пружин Мета роботи - визначення: пружних властивостей гвинтових пружин методів розрахунків міцності та жорсткості пружин при проектуванні методів експериментального...
6864. Визначення моментів тертя у підшипниках кочення 53 KB
  Визначення моментів тертя у підшипниках кочення Мета роботи: визначення моментів тертя у шарикопідшипниках. Розрахункові методи визначення моментів тертя у підшипниках кочення Моменти тертя Тп, Н.мм, у шарикопідшипниках із внутріш...
6865. Понятие и виды инвестиций. Источники инвестиций 44 KB
  Понятие и виды инвестиций. Источники инвестиций. Понятие инвестиции и их значение. Слово инвестиция происходит от латинского слова инвест-вкладывать. Если обратиться к терминологическому словарю - то это использование денег для полу...
6866. Понятие, субъекты и объекты инвестиционной деятельности 40.5 KB
  Понятие, субъекты и объекты инвестиционной деятельности. Понятие инвестиционной деятельности. - ФЗ от 25.01.99г. №39-ФЗ Об инвестиционной деятельности РФ, осуществляемой в форме капитальных вложений в статье 1 й предусматривает. Инвестиционная...
6867. Правовые основы инвестиционной деятельности 33 KB
  Правовые основы инвестиционной деятельности. Классификация правовых актов, регулирующих инвестиционную деятельность: -По уровням: Федеральные правовые акты Конституция (положения о праве собственности, положение о едином экономическом пр...