Skip to main content

Real-Time Unikernels: A First Look

  • Conference paper
  • First Online:
High Performance Computing (ISC High Performance 2023)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13999))

Included in the following conference series:

  • 1091 Accesses

Abstract

Real-time virtualization is currently a hot topic, and there is much ongoing research on real-time Virtual Machines and hypervisors. However, most of the previous research focused on the virtualization stack (hypervisor, host Operating System, Virtual Machine scheduling, etc.) and did not investigate the impact of the guest Operating System architecture on real-time performance. This paper is a first step in filling this gap and investigates the suitability of unikernels for serving real-time applications. The most important existing unikernels are investigated, evaluating their usability in the context of real-time virtualization. Finally, the real-time performance of OSv is compared with the ones of the Linux kernel.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://cloudius-systems.com.

  2. 2.

    It seems that musl developers implemented the function in this way because they think the Linux sched_setscheduler() system call is not POSIX compliant.

  3. 3.

    For example, using PVH https://stefano-garzarella.github.io/posts/2019-08-23-qemu-linux-kernel-pvh.

  4. 4.

    https://qemu.readthedocs.io/en/latest/system/i386/microvm.html.

  5. 5.

    https://www.cloudhypervisor.org.

References

  1. Abeni, L., Biondi, A., Bini, E.: Hierarchical scheduling of real-time tasks over Linux-based virtual machines. J. Syst. Softw. 149, 234–249 (2019)

    Article  Google Scholar 

  2. Abeni, L., Biondi, A., Bini, E.: Partitioning real-time workloads on multi-core virtual machines. J. Syst. Archit. 131, 102733 (2022). https://doi.org/10.1016/j.sysarc.2022.102733, https://www.sciencedirect.com/science/article/pii/S1383762122002181

  3. Abeni, L., Cucinotta, T., Pinczel, B., Mátray, P., Srinivasan, M.K., Lindquist, T.: On the use of Linux real-time features for RAN packet processing in cloud environments. In: Anzt, H., Bienz, A., Luszczek, P., Baboulin, M. (eds.) High Performance Computing. ISC High Performance 2022 International Workshops. ISC High Performance 2022. LNCS, vol. 13387, pp. 371–382. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-23220-6_26

  4. Abeni, L., Faggioli, D.: An experimental analysis of the Xen and KVM latencies. In: Proceedings of the IEEE 22nd International Symposium on Real-Time Distributed Computing (ISORC), pp. 18–26, May 2019

    Google Scholar 

  5. Abeni, L., Faggioli, D.: Using Xen and KVM as real-time hypervisors. J. Syst. Archit. 106, 101709 (2020)

    Article  Google Scholar 

  6. Abeni, L., Goel, A., Krasic, C., Snow, J., Walpole, J.: A measurement-based analysis of the real-time performance of Linux. In: Proceedings of the 8th IEEE Real-Time and Embedded Technology and Applications Symposium, pp. 133–142. IEEE, San Jose, California, September 2002

    Google Scholar 

  7. Agache, A., et al.: Firecracker: lightweight virtualization for serverless applications. In: 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI 20), pp. 419–434. USENIX Association, Santa Clara, CA, February 2020. https://www.usenix.org/conference/nsdi20/presentation/agache

  8. Almeida, L., Pedreiras, P.: Scheduling within temporal partitions: response-time analysis and server design. In: Proceedings of the 4th ACM International Conference on Embedded Software, pp. 95–103, September 2004

    Google Scholar 

  9. Anderson, T.: The case for application-specific operating systems. In: Proceedings Third Workshop on Workstation Operating Systems, pp. 92,93,94. IEEE Computer Society, Los Alamitos, CA, USA, April 1992. https://doi.org/10.1109/WWOS.1992.275682, https://doi.ieeecomputersociety.org/10.1109/WWOS.1992.275682

  10. Banga, G., Druschel, P., Mogul, J.C.: Resource containers: a new facility for resource management in server systems. In: OSDI, vol. 99, pp. 45–58 (1999)

    Google Scholar 

  11. Barham, P., et al.: Xen and the art of virtualization. SIGOPS Oper. Syst. Rev. 37(5), 164–177 (2003)

    Article  Google Scholar 

  12. Biondi, A., et al.: Sphere: a multi-SoC architecture for next-generation cyber-physical systems based on heterogeneous platforms. IEEE Access 9, 75446–75459 (2021). https://doi.org/10.1109/ACCESS.2021.3080842

    Article  Google Scholar 

  13. de Oliveira, D.B., Casini, D., de Oliveira, R.S., Cucinotta, T.: Demystifying the real-Time Linux scheduling latency. In: Völp, M. (ed.) 32nd Euromicro Conference on Real-Time Systems (ECRTS 2020). Leibniz International Proceedings in Informatics (LIPIcs), vol. 165, pp. 9:1–9:23. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2020). https://doi.org/10.4230/LIPIcs.ECRTS.2020.9, https://drops.dagstuhl.de/opus/volltexte/2020/12372

  14. Feng, X., Mok, A.K.: A model of hierarchical real-time virtual resources. In: Proceedings of the 23rd IEEE Real-Time Systems Symposium, pp. 26–35 (2002)

    Google Scholar 

  15. Kantee, A., Cormack, J.: Rump kernels: no os? No problems!; Login Mag. USENIX SAGE 39(5), 11–17 (2014)

    Google Scholar 

  16. Kantee, A.: Flexible operating system internals: the design and implementation of the anykernel and rump kernels. Ph.D. thesis, Department of Computer Science and Engineering, October 2012

    Google Scholar 

  17. Kivity, A., Kamay, Y., Laor, D., Lublin, U., Liguori, A.: KVM: the Linux virtual machine monitor. In: Proceedings of the Linux Symposium, vol. 1, pp. 225–230 (2007)

    Google Scholar 

  18. Kivity, A., Laor, D., Costa, G., Enberg, P., Har’El, N., Marti, D., Zolotarov, V.: OSv: optimizing the operating system for virtual machines. In: Proceedings of the 2014 USENIX Conference on USENIX Annual Technical Conference, pp. 61–72. USENIX ATC’14, USENIX Association, USA (2014)

    Google Scholar 

  19. Kuenzer, S., et al.: Unikraft: fast, specialized unikernels the easy way. In: Proceedings of the Sixteenth European Conference on Computer Systems, pp. 376–394. EuroSys ’21, Association for Computing Machinery, New York, NY, USA (2021). https://doi.org/10.1145/3447786.3456248

  20. Kuo, H.C., Williams, D., Koller, R., Mohan, S.: A Linux in unikernel clothing. In: Proceedings of the Fifteenth European Conference on Computer Systems. EuroSys ’20, Association for Computing Machinery, New York, NY, USA (2020). https://doi.org/10.1145/3342195.3387526

  21. Lankes, S., Pickartz, S., Breitbart, J.: Hermitcore: a unikernel for extreme scale computing. In: Proceedings of the 6th International Workshop on Runtime and Operating Systems for Supercomputers. ROSS ’16, Association for Computing Machinery, New York, NY, USA (2016). https://doi.org/10.1145/2931088.2931093

  22. Lelli, J., Scordino, C., Abeni, L., Faggioli, D.: Deadline scheduling in the Linux kernel. Softw. Pract. Exp. 46(6), 821–839 (2016)

    Google Scholar 

  23. Li, H., Xu, X., Ren, J., Dong, Y.: ACRN: a big little hypervisor for IoT development. In: Proceedings of the 15th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments. VEE 2019 (2019). https://doi.org/10.1145/3313808.3313816, https://doi.acm.org/10.1145/3313808.3313816

  24. Lipari, G., Bini, E.: Resource partitioning among real-time applications. In: Proceedings of the 15th Euromicro Conference on Real-Time Systems, pp. 151–158, July 2003

    Google Scholar 

  25. Liu, C.L., Layland, J.W.: Scheduling algorithms for multiprogramming in a hard real-time environment. J. Assoc. Comput. Mach. 20(1), 46–61 (1973)

    Article  MathSciNet  MATH  Google Scholar 

  26. Madhavapeddy, A., Scott, D.J.: Unikernels: the rise of the virtual library operating system. Commun. ACM 57(1), 61–69 (2014). https://doi.org/10.1145/2541883.2541895

  27. Martins, J., Tavares, A., Solieri, M., Bertogna, M., Pinto, S.: Bao: a lightweight static partitioning hypervisor for modern multi-core embedded systems. In: Bertogna, M., Terraneo, F. (eds.) Workshop on Next Generation Real-Time Embedded Systems (NG-RES 2020). OpenAccess Series in Informatics (OASIcs), vol. 77, pp. 3:1–3:14. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, Dagstuhl, Germany (2020). https://doi.org/10.4230/OASIcs.NG-RES.2020.3, https://drops.dagstuhl.de/opus/volltexte/2020/11779

  28. Mok, A.K., Feng, X., Chen, D.: Resource partition for real-time systems. In: Proceedings of the 7th IEEE Real-Time Technology and Applications Symposium, pp. 75–84 (2001)

    Google Scholar 

  29. Olivier, P., Chiba, D., Lankes, S., Min, C., Ravindran, B.: A binary-compatible unikernel. In: Proceedings of the 15th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, pp. 59–73. VEE 2019, Association for Computing Machinery, New York, NY, USA (2019). https://doi.org/10.1145/3313808.3313817

  30. Popek, G.J., Goldberg, R.P.: Formal requirements for virtualizable third generation architectures. Commun. ACM 17(7), 412–421 (1974)

    Article  MathSciNet  MATH  Google Scholar 

  31. Porter, D.E., Boyd-Wickizer, S., Howell, J., Olinsky, R., Hunt, G.C.: Rethinking the library OS from the top down. In: Proceedings of the Sixteenth International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 291–304. ASPLOS XVI, Association for Computing Machinery, New York, NY, USA (2011). https://doi.org/10.1145/1950365.1950399

  32. Raza, A., et al.: Unikernels: the next stage of Linux’s dominance. In: Proceedings of the Workshop on Hot Topics in Operating Systems, pp. 7–13. HotOS ’19, Association for Computing Machinery, New York, NY, USA (2019). https://doi.org/10.1145/3317550.3321445

  33. Riel, R.V.: Real-time KVM from the ground up. In: KVM Forum 2015 (2015)

    Google Scholar 

  34. Rostedt, S.: Internals of the RT patch. In: Proceedings of the Linux Symposium, pp. 161–172. Ottawa, Canada, June 2007

    Google Scholar 

  35. Shin, I., Lee, I.: Periodic resource model for compositional real-time guarantees. In: Proceedings of 24th IEEE Real-Time Systems Symposium, pp. 2–13, December 2003

    Google Scholar 

  36. Shin, I., Lee, I.: Compositional real-time scheduling framework. In: 25th IEEE International Real-Time Systems Symposium, pp. 57–67, December 2004. https://doi.org/10.1109/REAL.2004.15

  37. Xi, S., et al.: Real-time multi-core virtual machine scheduling in Xen. In: Proceedings of the 2014 International Conference on Embedded Software (EMSOFT), pp. 1–10, October 2014

    Google Scholar 

  38. Yang, J., Kim, H., Park, S., Hong, C., Shin, I.: Implementation of compositional scheduling framework on virtualization. SIGBED Rev. 8(1), 30–37 (2011)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Luca Abeni .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Abeni, L. (2023). Real-Time Unikernels: A First Look. In: Bienz, A., Weiland, M., Baboulin, M., Kruse, C. (eds) High Performance Computing. ISC High Performance 2023. Lecture Notes in Computer Science, vol 13999. Springer, Cham. https://doi.org/10.1007/978-3-031-40843-4_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-40843-4_10

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-40842-7

  • Online ISBN: 978-3-031-40843-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics