Unikernel

Comparison of a traditional OS stack and a MirageOS unikernel

A unikernel is a type of computer program that is statically linked with the operating system code on which it depends. Unikernels are built with a specialized compiler that identifies the operating system services that a program uses and links it with one or more library operating systems that provide them. Such a program requires no separate operating system and can run instead as the guest of a hypervisor.[1]

The unikernel architecture builds on concepts developed by Exokernel and Nemesis in the late 1990s.

Design

In a library operating system, protection boundaries are pushed to the lowest hardware layers, resulting in:

  1. a set of libraries that implement mechanisms such as those needed to drive hardware or talk network protocols;
  2. a set of policies that enforce access control and isolation in the application layer.

The library OS architecture has several advantages and disadvantages compared with conventional OS designs. One of the advantages is that since there is only a single address space, there is no need for repeated privilege transitions to move data between user space and kernel space. Therefore, a library OS can provide improved performance by allowing direct access to hardware without having to transition between user mode and kernel mode (on a traditional kernel this transition consists of a single TRAP instruction[2] and is not the same as a context switch[3]). Performance gains may be realised by elimination of the need to copy data between user space and kernel space, although this is also possible with Zero-copy device drivers in traditional operating systems.

A disadvantage is that because there is no separation, trying to run multiple applications side by side in a library OS, but with strong resource isolation, can become complex.[4] In addition, device drivers are required for the specific hardware the library OS runs on. Since hardware is rapidly changing this creates the burden of regularly rewriting drivers to remain up to date.

OS virtualization can overcome some of these drawbacks on commodity hardware. A modern hypervisor provides virtual machines with CPU time and strongly isolated virtual devices. A library OS running as a virtual machine only needs to implement drivers for these stable virtual hardware devices and can depend on the hypervisor to drive the real physical hardware. However, protocol libraries are still needed to replace the services of a traditional operating system. Creating these protocol libraries is where the bulk of the work lies when implementing a modern library OS.[1] Additionally, reliance on a hypervisor may reintroduce performance overheads when switching between the unikernel and hypervisor, and when passing data to and from hypervisor virtual devices.

By reducing the amount of code deployed, unikernels necessarily reduce the likely attack surface and therefore have improved security properties.[5][6]

An example unikernel-based messaging client has around 4% the size of the equivalent code bases using Linux.[7]

Due to the nature of their construction, it is possible to perform whole-system optimisation across device drivers and application logic, thus improving on the specialisation.[8][9][10] For example, off-the-shelf applications such as nginx, SQLite, and Redis running over a unikernel have shown a 1.7x-2.7x performance improvement.[11]

Unikernels have been regularly shown to boot extremely quickly, in time to respond to incoming requests before the requests time-out.[12][13][14]

Unikernels lend themselves to creating systems that follow the service-oriented or microservices software architectures.

Unikernels are unsuitable for the kind of general purpose, multi-user computing that traditional operating systems are used for, due to Unikernels' high degree of specialization. Adding additional functionality or altering a compiled unikernel is generally not possible and instead the approach is to compile and deploy a new unikernel with the desired changes.

See also

References

  1. ^ a b "Unikernels: Rise of the Virtual Library Operating System". Retrieved 31 August 2015.
  2. ^ Tanenbaum, Andrew S. (2008). Modern Operating Systems (3rd ed.). Prentice Hall. pp. 50–51. ISBN 978-0-13-600663-3. . . . nearly all system calls [are] invoked from C programs by calling a library procedure . . . The library procedure . . . executes a TRAP instruction to switch from user mode to kernel mode and start execution . . .
  3. ^ Context switch#User and kernel mode switching
  4. ^ Chia-Che, Tsai; Arora, Kumar-Saurabh; Bandi, Nehal; Jain, Bhushan; Jannen, William; John, Jitin; Kalodner, Harry; Kulkarni, Vrushali; Oliviera, Daniela; Porter, Donald E. (2014). "Cooperation and security isolation of library OSes for multi-process applications". Proceedings of the Ninth European Conference on Computer Systems (PDF). pp. 1–14. CiteSeerX 10.1.1.589.1837. doi:10.1145/2592798.2592812. ISBN 9781450327046. S2CID 13771821. Archived from the original (PDF) on 2016-03-04. Retrieved 2015-08-31.
  5. ^ "Why Unikernels Can Improve Internet Security". April 2015. Retrieved 31 August 2015.
  6. ^ Madhavapeddy, Anil; Mortier, Richard; Charalampos, Rotsos; Scott, David; Singh, Balraj; Gazagnaire, Thomas; Smith, Steven; Hand, Steven; Crowcroft, Jon (March 2013). "Unikernels: Library Operating Systems for the Cloud" (PDF). SIGPLAN Notices (ASPLOS 13). 48 (4): 461. doi:10.1145/2499368.2451167.
  7. ^ Kaloper-Meršinjak, David; Mehnert, Hannes; Madhavapeddy, Anil; Sewell, Peter (2015). "Not-Quite-So-Broken TLS: Lessons in Re-Engineering a Security Protocol Specification and Implementation". Proceedings of the 24th USENIX Security Symposium (USENIX Security 15).
  8. ^ Thibault, Samuel; Deegan, Tim (2008). "Improving Performance by Embedding HPC Applications in Lightweight Xen Domains" (PDF). 2nd Workshop on System-level Virtualization for High Performance Computing (HPCVIRT'08). doi:10.1145/1435452.1435454.
  9. ^ Madhavapeddy, Anil; Mortier, Richard; Sohan, Ripduman; Gazagnaire, Thomas; Hand, Steven; Deegan, Tim; McAuley, Derek; Crowcroft, Jon (2010). "Turning Down the LAMP: Software Specialisation for the Cloud" (PDF). Proceedings of the 2nd USENIX Conference on Hot Topics in Cloud Computing.
  10. ^ Martins, Joao; Mohamed, Ahmed; Raiciu, Costin; Huici, Felipe (2013). "Enabling fast, dynamic network processing with clickOS". Proceedings of the second ACM SIGCOMM workshop on Hot topics in software defined networking (PDF). pp. 67–72. doi:10.1145/2491185.2491195. ISBN 9781450321785. S2CID 12514038.
  11. ^ Kuenzer, Simon; Bădoiu, Vlad-Andrei; Lefeuvre, Hugo; Santhanam, Sharan; Jung, Alexander; Gain, Gaulthier; Soldani, Cyril; Lupu, Costin; Teodorescu, Ştefan; Răducanu, Costi; Banu, Cristian (2021-04-21). "Unikraft: fast, specialized unikernels the easy way". Proceedings of the Sixteenth European Conference on Computer Systems. Online Event United Kingdom: ACM. pp. 376–394. arXiv:2104.12721. doi:10.1145/3447786.3456248. ISBN 978-1-4503-8334-9. S2CID 241528818.
  12. ^ "Just-in-Time Summoning of Unikernels (v0.2)". Magnus Skjegstad. Retrieved 30 August 2015.
  13. ^ "Zerg". Zerg — an instance per request demo. Retrieved 30 August 2015.
  14. ^ Madhavapeddy, Anil; Leonard, Thomas; Skjegstad, Magnus; Gazagnaire, Thomas; Sheets, David; Scott, David; Mortier, Richard; Chaudhry, Amir; Singh, Balraj; Ludlam, Jon; Crowcroft, Jon; Leslie, Ian (2015). "Jitsu: Just-In-Time Summoning of Unikernels" (PDF). The 12th USENIX Conference on Networked Systems Design and Implementation (NSDI). ISBN 978-1-931971-218.

Read other articles:

районТюлькубасский районТүлкібас ауданы Герб 42°27′43″ с. ш. 70°20′24″ в. д.HGЯO Страна Казахстан Входит в Туркестанская область Адм. центр Турар Рыскулов Аким Нурлан Байғұт[1] История и география Дата образования 1928 год Площадь 2300 км² Часовой пояс UTC+6 Населени

 

伊莲·N·摩根出生1920年11月7日 龐特普里斯 逝世2013年7月12日  (92歲)阿什山 (朗達卡嫩塔夫) 就讀學校牛津大学玛格丽特夫人学堂 職業編劇、專欄作家、作家、女權活動家 獎項大英帝國官佐勳章、皇家文学学会会员  伊莲·N·摩根(英語:Elaine Neville Morgan,1920年11月7日—2013年7月12日)是一位威尔士科普作家和演化人類學家[1],毕业于牛津大学...

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Januari 2023. '''Shita Laksmi''' (lahir di Palembang tanggal 25 November 1976).[1] Shita adalah Sarjana Ilmu Komunikasi dari Universitas Indonesia dan lulus pada tahun 2000. Shita kemudian melanjutkan pendidikannya untuk meraih gelar Master of Arts in Journa...

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (يوليو 2019) منتخب غانا تحت 20 سنة لكرة القدم بلد الرياضة غانا  الفئة كرة قدم تحت 20 سنة للرجا

 

Cet article est une ébauche concernant une localité néerlandaise. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Vechten Héraldique Administration Pays Pays-Bas Commune Bunnik Province Utrecht Code postal 3981 (Bunnik) Indicatif téléphonique international +(31) Démographie Population 130 hab. (2004) Géographie Coordonnées 52° 03′ 54″ nord, 5° 10′ 30″ est Loca...

 

Reinout Willem (Rein) van Bemmelen (14 April 1904 – 19 November 1983) adalah seorang geolog berkebangsaan Belanda yang lahir di Indonesia (sewaktu masih sebagai Hindia-Belanda). Karya-karyanya mengenai vulkanologi di Indonesia banyak menjadi rujukan bagi geologi dan sejarah Indonesia modern. Masa Hidup Masa kecilnya dihabiskan di Hindia Belanda dan pada usia ke 17 tahun ia pergi berangkat ke Belanda untuk menuntut ilmu di Universitas Delft. Van Bemmelen menyelesaikan studinya ...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يوليو 2017) متلازمة ملكة النحل تم تعريفها لأول مرة من قبل غل ستينس وتي جاياراتن وسي تافريس في عام 1973.[1] وهي تصف المرأة التي تكون في منصب قيادي وتعامل المرؤوسين الآناث...

 

Rois et Reine Léda et le Cygne par Le Corrège, 1532 Données clés Réalisation Arnaud Desplechin Scénario Arnaud DesplechinRoger Bohbot Musique Grégoire Hetzel Acteurs principaux Emmanuelle DevosMathieu Amalric Catherine DeneuveMaurice Garrel Sociétés de production Why Not Productions Pays de production France Genre Comédie dramatique Durée 150 minutes Sortie 2004 Pour plus de détails, voir Fiche technique et Distribution Rois et Reine est un film français réalisé par Arnaud Desp...

 

British research expedition to the Arctic undertaken between 1875 and 1876 HMS Alert in pack ice The British Arctic Expedition of 1875–1876, led by Sir George Nares, was sent by the British Admiralty to attempt to reach the North Pole via Smith Sound. Although the expedition failed to reach the North Pole, the coasts of Greenland and Ellesmere Island were extensively explored and large amounts of scientific data were collected. History Two ships, HMS Alert and HMS Discovery...

Erik Edward LYLYNickname(s)Erkki, Eka, radiocall PukkiBorn(1914-08-05)5 August 1914LoimaaDied5 February 1990(1990-02-05) (aged 75)Haaparanta, SwedenAllegianceFinlandService/branchFinnish Air ForceYears of service1939–44Rankylikersantti (Staff Sergeant)UnitLeLv 24, LeLv 34Battles/wars World War II Winter War Continuation War Awards Cross of Liberty, 4th Class with Oak Leaves and Swords Cross of Liberty, 4th Class with Oak Leaves Medal of Liberty, 1st Class Medal of Liberty, 2nd Cla...

 

Life insurance and pensions company located in Edinburgh Scottish Widows LimitedTypeSubsidiaryIndustryFinancial servicesFounded1815; 208 years ago (1815)HeadquartersLondon, England, UKKey peopleChirantan Barua (Chief Executive) Scott Wheway(Chair)ProductsLife insurancePensionsInvestmentsSavingsNumber of employees3,500 (2011)[1]ParentLloyds Banking GroupWebsitewww.scottishwidows.co.uk Scottish Widows is a life insurance and pensions company located in Edinburgh, Scotl...

 

Railway station in Tochigi, Tochigi Prefecture, Japan Shizuwa Station静和駅Shizuwa Station in August 2021General informationLocation2143 Shizuwa Iwafune-machi, Tochigi-shi, Tochigi-ken 329-4304JapanCoordinates36°18′59″N 139°41′06″E / 36.3163°N 139.6850°E / 36.3163; 139.6850Operated by Tobu RailwayLine(s) Tobu Nikko LineDistance37.3 km from Tōbu-Dōbutsu-KōenPlatforms1 island platformOther informationStation codeTN-09WebsiteOfficial websiteHistoryOpened...

В Википедии есть статьи о других людях с такой фамилией, см. Копылов; Копылов, Иван. Иван Андреевич Копылов Дата рождения 30 марта 1921(1921-03-30) Место рождения посёлок Фряново, Щёлковский район, Московская область Дата смерти 23 мая 1985(1985-05-23) (64 года) Место смерти Москва Прин...

 

Comics character Comics character American DreamArt by Ron FrenzPublication informationPublisherMarvel ComicsFirst appearanceA-Next #1(August 1998)Created byTom DeFalcoBrent AndersonIn-story informationAlter egoShannon CarterSpeciesHumanPlace of originEarth-982Team affiliationsDream TeamA-NextAbilities Peak physical condition Olympic level athlete Skilled martial artist Excellent aim Carries an indestructible shield Use of disc weapons American Dream (Shannon Carter) is a superhero appearing ...

 

Pennsylvania Department of StateAgency overviewFormed1919JurisdictionState government of PennsylvaniaHeadquarters302 North Office Building, 401 North Street, Harrisburg, Pennsylvania 17120Agency executiveAl Schmidt, Secretary of the Commonwealth of PennsylvaniaWebsitewww.dos.pa.gov The Pennsylvania Department of State is a cabinet-level state agency in the Commonwealth of Pennsylvania.[1] The department is headed by the secretary of the Commonwealth of Pennsylvania. Responsibilities C...

بطولة ويمبلدون 1999 رقم الفعالية 113  البلد المملكة المتحدة  التاريخ 1999  الرياضة كرة المضرب  الفعاليات بطولة ويمبلدون 1999 - فردي الرجال،  وبطولة ويمبلدون 1999 - فردي السيدات،  وبطولة ويمبلدون 1999 - زوجي الرجال،  وبطولة ويمبلدون 1999 - زوجي السيدات،  وبطولة ويمبلدو...

 

Daniel Dias Gunasekera was a Ceylonese businessman and politician.[1] Gunasekera was elected to the 2nd State Council of Ceylon representing Bandarawela on 22 February 1936,[2] where he sat on the Executive Committee of Health.[3] In April 1943 the Bribery Commissioner found that Gunasekera, E. W. Abeygunasekera, Charles Batuwantudawe, E. R. Tambimuttu and H. A. Goonesekera had accepted bribes in the exercise of their duties as members of the Home Affairs Committee. ...

 

Lauingen Lambang kebesaranLetak Lauingen NegaraJermanNegara bagianBayernWilayahSchwabenKreisDillingen an der DonauPemerintahan • MayorWolfgang Schenk (SPD)Luas • Total44,39 km2 (1,714 sq mi)Ketinggian439 m (1,440 ft)Populasi (2013-12-31)[1] • Total10.598 • Kepadatan2,4/km2 (6,2/sq mi)Zona waktuWET/WMPET (UTC+1/+2)Kode pos89415Kode area telepon09072Pelat kendaraanDLGSitus webwww.lauingen.de Lauingen adal...

Humberto Ceballos BozaBoza at 2022 Premios Nuestra TierraBackground informationBirth nameHumberto Ceballos BozaAlso known as El Boza Born (1997-07-25) July 25, 1997 (age 26)Panama City, PanamaGenres Reggaeton Occupation(s) Rapper songwriter Instrument(s)VocalsYears active2014–presentLabels Rollin Bower Group Panama Music Sony Music Latin Musical artist Humberto Ceballos Boza (born Panama City, July 25, 1997),[1] better known by his stage name Boza, is a Panamanian singer and so...

 

Roy Miller Datos personalesNombre completo Roy Miller HernándezNacimiento San José24 de noviembre de 1984 (39 años)País Costa RicaNacionalidad(es) CostarricenseAltura 1,88 m (6′ 2″)Peso 75 kg (165 lb)Pareja Laura ValverdeCarrera deportivaDeporte FútbolClub profesionalDebut deportivo 10 de febrero de 2002(C. S. Cartaginés)Posición DefensaDorsal(es) 21Goles en clubes 18Selección nacionalSelección CRC Costa RicaDebut 16 de febrero de 2005Part. (goles) 5...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!