Skip to content

Loading the ramdisk takes an insanely long time #549

Closed

Description

@NikoPit

Currently i have a 64MB ramdisk, and it takes like 30 seconds to load.
this is probably not normal
please lmk if you need the build.rs or source code

Activity

  1. NikoPit commented on Mar 17, 2026

    @NikoPit
    Author

    loading the kernel also takes a long time but its not as long as the ramdisk

  2. Freax13 commented on Mar 17, 2026

    @Freax13
    Member

    You mentioned that you don't use hardware virtualization. Are you sure that the bottleneck isn't caused by QEMU TCG's inherently lower performance? I'm guessing that the device drivers in the BIOS aren't all that optimized either, so loading any big file in a bootloader is going to be slow unless one replaces the disk driver.

  3. NikoPit commented on Mar 17, 2026

    @NikoPit
    Author

    does enabling hardware virtualization means enabling kvm?

  4. Freax13 commented on Mar 18, 2026

    @Freax13
    Member

    That'd be one way of enabling hardware virtualization, yes.

  5. NikoPit commented on Mar 18, 2026

    @NikoPit
    Author

    no, its still extremely laggy. i added --enable-kvm to it

  6. Freax13 commented on Mar 18, 2026

    @Freax13
    Member

    Yeah, the BIOS bootloader is significantly slower than the UEFI one.

    I think the main root cause seems to be that we're doing a lot of small disk accesses. I tried merging multiple FAT clusters to do larger reads for several clusters at once and that got the runtime of the large_ramdisk test down from 35s to 10s.

  7. NikoPit commented on Mar 18, 2026

    @NikoPit
    Author

    fixed on #550

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions