OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Dec 08, 2021 3:31 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 98 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7
Author Message
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Thu Oct 14, 2021 8:27 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 3500
codyd51 wrote:
Code:
    exit_bs();
    return 0;

You can't return from main() after you exit boot services!


Top
 Profile  
 
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Thu Oct 21, 2021 10:40 am 
Offline
Member
Member

Joined: Fri May 20, 2016 2:29 pm
Posts: 75
Location: Paris, France
Ah, of course! I was a bit hasty there :D thanks.

I've squashed some bugs and cleaned up the code and this issue has gone away, so it's safe to say this was all me.

Thanks again.

_________________
www.github.com/codyd51/axle.git


Top
 Profile  
 
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Tue Nov 02, 2021 5:41 pm 
Offline
Member
Member

Joined: Fri May 20, 2016 2:29 pm
Posts: 75
Location: Paris, France
I've noticed file reads taking much, much longer using UEFI's Read API than GRUB would take to map my ramdisk. I'm seeing read speeds of around 1mb/s in QEMU, which is really hurting my tweak-test-repeat workflow as my ramdisk is upwards of 20mb. I'm now thinking of decompressing my ramdisk at boot time, but I'd really like to avoid this if possible. I'm wondering if anyone else can corroborate this or knows of a fix. Thanks!

_________________
www.github.com/codyd51/axle.git


Top
 Profile  
 
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Tue Nov 02, 2021 7:28 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 722
A ramdisk is supposed to be in memory. That's why it is called a "ram disk". Load your whole file in memory at once and then access it in RAM. It will be just as fast.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Wed Nov 03, 2021 3:57 am 
Offline
Member
Member

Joined: Fri May 20, 2016 2:29 pm
Posts: 75
Location: Paris, France
kzinti wrote:
A ramdisk is supposed to be in memory. That's why it is called a "ram disk". Load your whole file in memory at once and then access it in RAM. It will be just as fast.


I am referring to loading the ramdisk into memory =) at 1mb/s it takes upwards of 20 seconds before control is passed from my bootloder to the kernel.

_________________
www.github.com/codyd51/axle.git


Top
 Profile  
 
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Wed Nov 03, 2021 4:10 am 
Offline
Member
Member

Joined: Fri May 20, 2016 2:29 pm
Posts: 75
Location: Paris, France
Fixed! It looks as though QEMU's emulated USB is much slower than its emulated CD.

Bootloader runtime of ~25 seconds:
Code:
qemu-system-x86_64 [...] -usb -drive if=none,id=stick,format=raw,file={image_name.as_posix()} -device usb-storage,drive=stick [...]


Bootloader runtime of ~2 seconds:
Code:
qemu-system-x86_64 [...] -cdrom {image_name.as_posix()} [...]

_________________
www.github.com/codyd51/axle.git


Top
 Profile  
 
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Thu Nov 04, 2021 8:54 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 456
Location: North Dakota, United States
Try adding -device qemu-xhci and see if that's slow -- it shouldn't be.


Top
 Profile  
 
 Post subject: Re: Announcing POSIX-UEFI
PostPosted: Tue Nov 09, 2021 9:43 am 
Offline
Member
Member

Joined: Fri May 20, 2016 2:29 pm
Posts: 75
Location: Paris, France
Ethin wrote:
Try adding -device qemu-xhci and see if that's slow -- it shouldn't be.


This does indeed make USB super speedy (sub-second speeds) - nice one!

_________________
www.github.com/codyd51/axle.git


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 98 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group