Skip to content

OpenLight-Studio/BrightS

Repository files navigation

BrightS

A lightweight x86_64 operating system kernel

Arch License UEFI Version


✨ Features

Category Features
Boot UEFI boot, x86_64 architecture
Memory Virtual memory management, Slab allocator (8MB heap)
Process Round-robin scheduling, Time-slice preemption (10 tick quantum)
Filesystem VFS2 abstraction, RAMFS, DevFS, Btrfs support
Network TCP/IP stack, VirtIO-Net
Storage AHCI, NVMe, block device interface
Shell Built-in shell with pipes, redirection, history, tab completion
Multi-lang Rust, Python, C++ runtime support

📦 Build

# Build kernel
mkdir build && cd build
cmake ..
make -j$(nproc)

# Run in QEMU
make run

🌍 Documentation

Language Links
🇺🇸 English docs/README.md
🇨🇳 简体中文 docs/README_zh_CN.md
🇯🇵 日本語 docs/README_ja.md

Quick Links

User Guide Developer Guide
Commands (EN) Development (EN)
命令参考 (中) 开发指南 (中)
コマンド (日) 開発ガイド (日)

📊 Performance Optimizations

Component Optimization
kmalloc Slab allocator with 10 size classes, 8MB heap
sched O(1) runqueue with __builtin_ctzll, 10-tick quantum
runtime ERMS for ≥256B, 64-byte cache-line copy, SSE2 memset
proc O(1) PID allocation via bitmap, inline helpers

📁 Project Structure

BrightS/
├── kernel/           # Core kernel
│   ├── arch/        # Architecture (x86_64)
│   ├── fs/          # Filesystems (VFS2, RAMFS, DevFS, Btrfs)
│   ├── net/         # Network stack
│   ├── kmalloc.c    # Memory allocator
│   ├── sched.c      # Process scheduler
│   └── proc.c       # Process management
├── drivers/         # Device drivers
├── docs/            # Documentation
└── scripts/         # Build scripts

BrightS v0.1.2.2 · GPL v2 License