DragonOS/README.md

105 lines
5.4 KiB
Markdown
Raw Normal View History

2023-11-17 04:26:10 +00:00
<div align="center">
<img width="40%" src="docs/_static/dragonos-logo.svg" alt="dragonos-logo"></br>
<h2>Lightweight Cloud-Native Kernel</h2>
<a href="https://dragonos.org"><img alt="官网" src="https://img.shields.io/badge/%E5%AE%98%E7%BD%91-DragonOS.org-4c69e4?link=https%3A%2F%2Fbbs.dragonos.org.cn" ></a>
<a href="https://bbs.dragonos.org.cn"><img alt="bbs" src="https://img.shields.io/badge/BBS-bbs.dragonos.org.cn-purple?link=https%3A%2F%2Fbbs.dragonos.org.cn" ></a>
新的内存管理模块 (#303) &emsp;&emsp;实现了具有优秀架构设计的新的内存管理模块,对内核空间和用户空间的内存映射、分配、释放、管理等操作进行了封装,使得内核开发者可以更加方便地进行内存管理。 &emsp;&emsp;内存管理模块主要由以下类型的组件组成: - **硬件抽象层(MemoryManagementArch)** - 提供对具体处理器架构的抽象,使得内存管理模块可以在不同的处理器架构上运行 - **页面映射器(PageMapper)**- 提供对虚拟地址和物理地址的映射,以及页表的创建、填写、销毁、权限管理等操作。分为两种类型:内核页表映射器(KernelMapper)和用户页表映射器(位于具体的用户地址空间结构中) - **页面刷新器(PageFlusher)** - 提供对页表的刷新操作(整表刷新、单页刷新、跨核心刷新) - **页帧分配器(FrameAllocator)** - 提供对页帧的分配、释放、管理等操作。具体来说,包括BumpAllocator、BuddyAllocator - **小对象分配器** - 提供对小内存对象的分配、释放、管理等操作。指的是内核里面的SlabAllocator (SlabAllocator的实现目前还没有完成) - **MMIO空间管理器** - 提供对MMIO地址空间的分配、管理操作。(目前这个模块待进一步重构) - **用户地址空间管理机制** - 提供对用户地址空间的管理。 - VMA机制 - 提供对用户地址空间的管理,包括VMA的创建、销毁、权限管理等操作 - 用户映射管理 - 与VMA机制共同作用,管理用户地址空间的映射 - **系统调用层** - 提供对用户空间的内存管理系统调用,包括mmap、munmap、mprotect、mremap等 - **C接口兼容层** - 提供对原有的C代码的接口,是的C代码能够正常运行。 除上面的新增内容以外,其它的更改内容: - 新增二进制加载器,以及elf的解析器 - 解决由于local_irq_save、local_irq_restore函数的汇编不规范导致影响栈行为的bug。 - 解决local_irq_save未关中断的错误。 - 修复sys_gettimeofday对timezone参数的处理的bug --------- Co-authored-by: kong <kongweichao@dragonos.org>
2023-07-22 08:27:02 +00:00
---
2023-11-17 04:26:10 +00:00
</div>
# DragonOS
**Languages** [中文](README_CN.md)|English
2022-01-29 06:27:38 +00:00
&nbsp;
&emsp;&emsp;DragonOS is a 64-bit operating system with a completely independent kernel, designed for lightweight cloud computing scenarios, offering Linux binary compatibility. It aims to provide lightweight, high-performance solutions for containerized workloads. Developed using Rust for enhanced reliability.
2022-01-29 06:27:38 +00:00
&emsp;&emsp;The DragonOS open-source community was established in July 2022 and is entirely commercially neutral. We warmly welcome interested developers and enthusiasts to join us!
2022-09-08 07:24:48 +00:00
&emsp;&emsp;DragonOS features excellent and comprehensive architectural design. Compared to other systems of similar scale, DragonOS supports eBPF and virtualization. Currently, we are actively advancing container support, cloud platform compatibility, RISC-V support, as well as porting compilers and application software. Our goal is to achieve large-scale production environment deployment within five years.
2022-09-08 07:24:48 +00:00
&emsp;&emsp;DragonOS is rapidly evolving under community-driven development. Currently, DragonOS has implemented approximately 1/4 of Linux interfaces. In the future, we will provide 100% Linux compatibility along with new features.
2022-01-29 06:27:38 +00:00
## How to Run?
新的内存管理模块 (#303) &emsp;&emsp;实现了具有优秀架构设计的新的内存管理模块,对内核空间和用户空间的内存映射、分配、释放、管理等操作进行了封装,使得内核开发者可以更加方便地进行内存管理。 &emsp;&emsp;内存管理模块主要由以下类型的组件组成: - **硬件抽象层(MemoryManagementArch)** - 提供对具体处理器架构的抽象,使得内存管理模块可以在不同的处理器架构上运行 - **页面映射器(PageMapper)**- 提供对虚拟地址和物理地址的映射,以及页表的创建、填写、销毁、权限管理等操作。分为两种类型:内核页表映射器(KernelMapper)和用户页表映射器(位于具体的用户地址空间结构中) - **页面刷新器(PageFlusher)** - 提供对页表的刷新操作(整表刷新、单页刷新、跨核心刷新) - **页帧分配器(FrameAllocator)** - 提供对页帧的分配、释放、管理等操作。具体来说,包括BumpAllocator、BuddyAllocator - **小对象分配器** - 提供对小内存对象的分配、释放、管理等操作。指的是内核里面的SlabAllocator (SlabAllocator的实现目前还没有完成) - **MMIO空间管理器** - 提供对MMIO地址空间的分配、管理操作。(目前这个模块待进一步重构) - **用户地址空间管理机制** - 提供对用户地址空间的管理。 - VMA机制 - 提供对用户地址空间的管理,包括VMA的创建、销毁、权限管理等操作 - 用户映射管理 - 与VMA机制共同作用,管理用户地址空间的映射 - **系统调用层** - 提供对用户空间的内存管理系统调用,包括mmap、munmap、mprotect、mremap等 - **C接口兼容层** - 提供对原有的C代码的接口,是的C代码能够正常运行。 除上面的新增内容以外,其它的更改内容: - 新增二进制加载器,以及elf的解析器 - 解决由于local_irq_save、local_irq_restore函数的汇编不规范导致影响栈行为的bug。 - 解决local_irq_save未关中断的错误。 - 修复sys_gettimeofday对timezone参数的处理的bug --------- Co-authored-by: kong <kongweichao@dragonos.org>
2023-07-22 08:27:02 +00:00
&emsp;&emsp;Running DragonOS is straightforward. You can refer to the following resources to get DragonOS up and running in as little as 15 minutes!
2022-11-04 07:04:42 +00:00
- [Building DragonOS — DragonOS dev documentation](https://docs.dragonos.org.cn/locales/en/introduction/build_system.html)
## Want to Contribute?
Read the [DragonOS Community Introduction Document] carefully to understand how the community operates and how you can contribute!
2022-01-29 06:27:38 +00:00
&emsp;&emsp;If you'd like to join us, check out the issues and participate in discussions or share your ideas. You can also visit the DragonOS forum to stay updated on development progress and tasks: [https://bbs.dragonos.org.cn](https://bbs.dragonos.org.cn)
2022-01-29 06:27:38 +00:00
&emsp;&emsp;You can also bring your creativity and ideas to discuss with the community and contribute new features to DragonOS.
2022-01-29 06:27:38 +00:00
## Sites
2022-03-22 10:05:07 +00:00
- Official Website: **[DragonOS.org](https://dragonos.org)**
- Documentation: **[docs.dragonos.org](https://docs.dragonos.org)**
- Community Introduction: **[community.dragonos.org](https://community.dragonos.org)**
- QQ Group: 476358494
2022-01-29 06:27:38 +00:00
## How to Connect with the Community?
2022-03-22 10:05:07 +00:00
Please read the [Contributor Guide](https://community.dragonos.org/contributors/#%E7%A4%BE%E5%8C%BA)~
2022-01-29 06:27:38 +00:00
- You can find contact details for members of various committees in the [Community Management Team] section.
- You can also locate the contact information for leaders of specific community groups via the [SIGs] and [WGs] pages.
2022-01-29 06:27:38 +00:00
## Contributor List
[Contributors to DragonOS-Community/DragonOS · GitHub](https://github.com/DragonOS-Community/DragonOS/graphs/contributors)
2022-01-29 06:27:38 +00:00
## Sponsorship
[![Sponsor this project](https://img.shields.io/badge/Sponsor_This_Project-DragonOS_Community-ff69b4?style=for-the-badge)](https://dragonos.org/?page_id=37)
2022-01-29 06:27:38 +00:00
&emsp;&emsp;DragonOS is a non-profit open-source project, and its development relies on financial support. All sponsors will be publicly acknowledged. Every contribution you make will help advance DragonOS!
2022-01-29 06:27:38 +00:00
### Where Will Sponsorship Funds Be Used?
2022-09-08 07:24:48 +00:00
We guarantee that all sponsorship funds and items will be used for:
2022-01-29 06:27:38 +00:00
- Event organization, cloud service expenses, and any other purposes beneficial to the development and growth of the DragonOS community.
2022-01-29 06:27:38 +00:00
## 🌟 Sponsor List
**Special thanks to these generous financial supporters** (in reverse chronological order):
2022-11-04 07:04:42 +00:00
- **[中国雅云](https://yacloud.net)** 雅安大数据产业园 - 🥇 Long-term supporter (since 2023)
- **[Tencent Cloud EdgeOne](https://edgeone.ai/?from=github)** EdgeOne CDN by TencentCloud
### CDN Sponsor
<div align="center">
<p>This project's CDN acceleration and security protection are sponsored by Tencent EdgeOne.</p>
<a href="https://edgeone.ai/?from=github">
<img src="https://edgeone.ai/media/34fe3a45-492d-4ea4-ae5d-ea1087ca7b4b.png" alt="腾讯EdgeOne CDN" width="200">
</a>
</div>
2022-11-04 07:04:42 +00:00
### Individual Sponsors List
See [Supporters.md](./SUPPORTERS.md)
2022-01-29 06:27:38 +00:00
## Open Source License Notice
2022-03-15 15:16:42 +00:00
This project is open-sourced under the GPLv2 license. You are welcome to use the code in compliance with the open-source license!
2022-03-15 15:16:42 +00:00
If you encounter any violations of the open-source license, we encourage you to email pmc@dragonos.org to report them. Let's work together to build a trustworthy open-source community.
2022-03-15 15:16:42 +00:00
---
## 👩💻 Contributors
2022-03-15 15:16:42 +00:00
> *"Open source shines because of you!"* ✨
2022-03-15 15:16:42 +00:00
**Thanks to all developers who submitted code, fixed issues, or reviewed PRs**:
<a href="https://github.com/DragonOS-Community/dragonos/graphs/contributors">
<img src="https://contrib.rocks/image?repo=dragonos-community/dragonos" />
</a>
[DragonOS Community Introduction Document]: https://community.dragonos.org/
[Community Management Team]: https://community.dragonos.org/governance/staff-info.html
[SIGs]: https://community.dragonos.org/sigs/
[WGs]: https://community.dragonos.org/wgs/