Replies: 8 comments
-
This does not deserve to be closed, like EVER! |
Beta Was this translation helpful? Give feedback.
-
Thanks, I appreciate that! A few suggestions to cut down the size more:
|
Beta Was this translation helpful? Give feedback.
-
@copy: doesn't close the issue. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the optimization suggestions!
the web server actually serves it gzipped, even though it's slightly bigger - 398504 bytes. libv86 also compresses pretty well, just 99887 bytes.
What's the best way to detect that this command has finished running from the JavaScript end? I'm taking the snapshot automatically, so I need some way for the VM to tell the JS code when to take the snapshot. Also, is there any way to speed up the boot process? looking at the output of dmesg, there seem to be a 3 second delay after the "PCI: CLS 0 bytes, default 32" message:
I wonder if this delay can be avoided by disabling something in the kernel configuration? |
Beta Was this translation helpful? Give feedback.
-
I don't think you can. In my scripts I simply sleep 30 seconds.
I don't know. Let me know if you find out. |
Beta Was this translation helpful? Give feedback.
-
@urish there are some tips here that could be useful in your case, I think: https://bootlin.com/doc/training/boot-time/boot-time-slides.pdf. Booting the kernel with debug logs enabled could also help where the time is spent. |
Beta Was this translation helpful? Give feedback.
-
Oh, wow! Seems like sysfs/rootfs/tracefs (whatever that might be) are the main culprits. Not sure if there's anything I can do about it, but still fascinating to see this breakdown of the boot time: |
Beta Was this translation helpful? Give feedback.
-
nice! I have found other optimizations here: https://fr.slideshare.net/righiandr/linux-boottime-23817352 and https://elinux.org/images/c/c1/Tools-and-techniques-for-reducing-bootup-time.pdf maybe you could remove the loop devices, sysfs, tracefs, pnp support from the kernel? also, you can try playing with |
Beta Was this translation helpful? Give feedback.
-
I just wanted to say thanks for creating and maintaining this great project.
I use it to run GDB in the browser, and it's pretty amazing that this is even possible. I shared all the details, source code and praises to v86 in a blog post, as well as some of the alternatives that I tried. v86 has been a true enabler for this project.
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions