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.



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.


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

44183. Разработка предложений по внедрению анимационных программ для повышения качества туристского обслуживания в ООО «Чор Минор» 944.5 KB
  Целью работы является разработка предложений по внедрению анимационных программ для повышения качества туристского обслуживания в ООО Чор Минор. Исходя из поставленной цели были определены следующие задачи исследования: систематизировать теоретические аспекты анимационного обслуживания туристов; провести анализ деятельности ООО Чор Минор; разработать предложения по...
44185. Маркетинг. Методические указания 676 KB
  Название организации ООО АВС условное. Разработка стратегии развития продуктов ОО АВС на различных рынках. Выбор географических рынков для ООО АВС Разработка бизнес-плана вывода на рынок новой услуги. Оценка эффективности инвестиционного проекта по внедрению CRMсистемы для предприятия на рынке В2В на примере ООО АВС Разработка процедуры исследования внутренней и внешней среды ООО АВС.
44186. Модернізація електричної частини комбікормового цеху із використанням новітнього електричного обладнання та автоматизація завантаження дробарки 2.17 MB
  На комбікормових виробництвах електродвигуни повинні відповідати умовам пилонепроникненю для роботи в приміщеннях класу ВІІ та ПІІ за класифікацією правил пристрою електроустановок. Отже виникає необхідність автоматизації основних технологічних процесів з метою зниження собівартості готової продукції шляхом зниження питомих витрат електроенергії на окремі технологічні операції скорочення холостої роботи технологічного обладнання та підвищення якості...
44187. Предложения по улучшению финансового состояния ОАО «Рошальская ЭЛЭК» 546.5 KB
  Теоретические основы анализа финансовохозяйственной деятельности предприятия . Основные показатели финансовохозяйственной деятельности предприятия. Анализ финансового состояния предприятия на примере ОАО Рошальская ЭЛЭК. Анализ техникоэкономических показателей Предприятия за период 20082011гг.
  Сондықтан банк жүйесінің алдында жаңа міндеттер мен басқа да мақсаттар тұр. Жүргізілген зерттеулер нарық жағдайында бақылаудың мәні де өзгеретінін көрсетті ендігі уақытта ол: басқарушылық қызметтің ажырамас бөлігі; басқарушылық шешім қабылдау процесінде ақпараттық қамтамасыз етудің көзі; басқарушылық шешімдердің орындалуы туралы қажетті ақпарат алуға болатын кері байланыс механизм ретінде болады. Кез келген өндірістік және коммерциялық қызмет өзіне тән тәуекелді болып табылады өйткені ісәрекет басталғанда олардың тиімділігі ішінара...
44190. Охрана труда и окружающей среды 248 KB
  Методические указания по выполнению главы пояснительной записки Охрана труда и окружающей среды в дипломном проекте Сост. Методические указания по выполнению главы пояснительной записки 0храна труда и окружающей среды в дипломном проекте. Рассматриваются требования к содержанию структуре и последовательности изложения вопросов охраны труда и окружающей среды в пояснительной записке к дипломному проекту.
44191. Теоретическая и прикладная лингвистика 187 KB
  Избранная тема необязательно должна быть абсолютно новаторской. Каждое исследование базируется на известных научных достижениях, являющихся опорой в поисковой работе, которая предполагает получение новых результатов, самостоятельные наблюдения и выводы.