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.


 

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

27700. Посягательство на жизнь лица, осуществляющего правосудие или предварительное расследование (ст. 295 УК), отличие этого преступления от убийства (ст. 105 УК) 25 KB
  295 УК отличие этого преступления от убийства ст. б 105 преступления против жизни; 295преступления против правосудия. Преступление считается оконченным с момента совершения действий направленных на лишение жизни; 105два главных критерия: деяние в форме действия или бездействия причинная связь между деянием и наступившими последствиями а также время место способ орудие материальный состав преступления считается оконченным с момента наступления общественно опасных последствий смерти; Субъективная сторона: 295характеризуется...
27702. Прикладная криптография. Протоколы, алгоритмы и исходные тексты на языке С 2.78 MB
  В криптографической науке есть особенность, отсутствующая в обычных академических дисциплинах: необходимость взаимодействия криптографии и криптоанализа. Причиной этого является отсутствие требований к передаче реальной информации, следовательно, нетрудно предложить систему, которая кажется непогрешимой.
27703. Умышленное причинение лёгкого вреда здоровью (ст. 115 УК). Признаки легкого вреда здоровью. Отличие этого преступления от нанесения побоев (ст. 116 УК) и истязания (ст. 117УК) 31 KB
  Отличие этого преступления от нанесения побоев ст. 116состоит из следующих элементов: нанесение побоев или причинение иных действий повлекших физ. Для квалификации необходимо установить причинную связь между фактом нанесения побоев и причинением физ. Побои – нанесение побоев или совершение иных насильственных действий причинивших физ.
27705. Умышленное причинение тяжкого и средней тяжести вреда здоровью (ст. ст. 111, 112 УК). Признаки тяжкого и средней тяжести вреда здоровью. Отличие преступления, предусмотренного ч.4 ст. 111 УК, от убийства 37 KB
  Признаки тяжкого и средней тяжести вреда здоровью. Кроме того причинение тяжкого вреда здоровью приносит длительные физические страдания инвалидность и прочие негативные для потерпевшего последствия. 2 Объективная сторона: выражается в противоправном причинении тяжкого вреда здоровью человека.
27707. Условное осуждение. Основания, условия и порядок его применения. Условия продления испытательного срок и отмены условного осуждения 32 KB
  Условия продления испытательного срок и отмены условного осуждения. Применение условного осуждения возможно только при назначении наказания в виде: – исправительных работ; – ограничения по военной службе; – ограничения свободы; – содержания в дисциплинарной воинской части; – лишения свободы на срок до восьми лет. Законодатель ограничивает возможность применения условного осуждения не только определенными видами наказания но и максимальным сроком. Закон предусматривает возможность применения условного осуждения при назначении лишения свободы...