--- license: mit tags: - operating-system - rust - bare-metal - x86_64 - research - memory-management --- # Rust OS — 64-Bit Bare-Metal Operating System A custom 64-bit operating system kernel written in pure **Rust** and assembly (\oot.s\), running in Ring 0 Long Mode with 4-Level Paging. Developed by **Sonam** (sonam112006\). ![Rust OS Boot Screen](screenshot_boot.png) --- ## Download Bootable ISO Image You can download the hybrid bootable ISO and run it directly in **VirtualBox**, **QEMU**, or flash it to a USB drive: * **[Download rust-os.iso (12.5 MB)](https://huggingface.co/rsonam112006/rust-os/resolve/main/rust-os.iso)** --- ## Research Topic: Page Replacement Under Locality of Reference This OS incorporates a bare-metal experimental evaluation of page replacement algorithms under temporal and spatial locality workloads: * **FIFO** (First-In, First-Out) * **LRU** (Least Recently Used) * **Optimal (MIN)** (Theoretical lowest fault bound) * **Second-Chance / Clock** ### Belady\'s Anomaly Proof * **3 Frames**: 9 Page Faults (75.0% Fault Ratio) * **4 Frames**: 10 Page Faults (83.3% Fault Ratio) * **Confirmed**: Adding memory frames increases page fault rate under FIFO replacement! --- ## Interactive Kernel Commands Boot the ISO in VirtualBox and use the native ust-os>\ shell: * \wifi\ — Wi-Fi 6 status, IP 172.20.10.3, 574 Mbps * \wifi scan\ — Scan 2.4 GHz & 5.0 GHz wireless networks * \ping \ — Send ICMP echo packets with latency measurement * \enchmark\ — Run the 5 page replacement algorithms * \nomaly\ — Execute the Belady\'s Anomaly audit * \memory\ — Show 4096 MB RAM & page table map * \storage\ — Show 512 MB Virtual RAM Disk * \cpu\ — Display 13th Gen Intel Core i7 & Long Mode specs * \window\ — Launch Graphical Window Dashboard * \clear\ — Clear screen * eboot\ — Hardware restart via PS/2 0x64 --- ## Documentation Full academic paper and telemetry: * **[RESEARCH_REPORT.md](RESEARCH_REPORT.md)**