Skip to content

feat(mm, fs, smp): optimize virtio read/write and support prefetch for anonymous lazy allocation, enable multi-core startup and basic shell support#10

Closed
li041 wants to merge 3 commits intoStarry-OS:mainfrom
li041:main

Conversation

@li041
Copy link
Copy Markdown

@li041 li041 commented Nov 7, 2025

Summary:

  • This PR introduces two performance-related improvements in the memory management and filesystem subsystems:

Details:

  1. Anonymous mapping prefetch:
    Implements a prefetch mechanism for anonymous lazy allocation during page fault handling.
    When a page fault occurs in a lazily allocated anonymous region, the kernel now prefetches adjacent pages to reduce subsequent faults and improve overall memory access efficiency.

  2. VirtIO read/write optimization:
    Optimizes the read/write path in virtio_drivers to avoid unnecessary memory copies between buffers.
    This reduces CPU overhead and improves I/O throughput, especially for large or frequent data transfers.

  3. Implements SMP initialization to start secondary CPUs during kernel boot.
    Each secondary CPU runs its own runtime initialization and joins the scheduler, enabling parallel execution of tasks and improved CPU utilization.

@li041 li041 changed the title feat(mm, fs): optimize virtio read/write and support prefetch for anonymous lazy allocation feat(mm, fs, smp): optimize virtio read/write and support prefetch for anonymous lazy allocation, enable multi-core startup and basic shell support Nov 10, 2025
@AsakuraMizu
Copy link
Copy Markdown

Nonono plz don't bundle everything into one PR. SMP support should be in a separate PR.

@li041 li041 closed this Nov 10, 2025
@AsakuraMizu
Copy link
Copy Markdown

See #11 and #12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants