https://old.reddit.com/r/BSD/comments/197vfmq/a_netbsdamd64_guest_can_now_boot_in_40ms_details/ jump to content my subreddits edit subscriptions * popular * -all * -random * -users | * pics * -AskReddit * -gaming * -mildlyinteresting * -worldnews * -funny * -explainlikeimfive * -movies * -todayilearned * -DIY * -OldSchoolCool * -books * -news * -videos * -dataisbeautiful * -TwoXChromosomes * -tifu * -aww * -Showerthoughts * -nottheonion * -Music * -LifeProTips * -Jokes * -Futurology * -sports * -askscience * -science * -space * -gadgets * -IAmA * -nosleep * -food * -gifs * -history * -UpliftingNews * -InternetIsBeautiful * -GetMotivated * -announcements * -philosophy * -Documentaries * -WritingPrompts * -EarthPorn * -creepy * -listentothis * -photoshopbattles * -blog more >> BSD BSD * comments Want to join? Log in or sign up in seconds.| * English [ ][] [ ]limit my search to r/BSD use the following search parameters to narrow your results: subreddit:subreddit find submissions in "subreddit" author:username find submissions by "username" site:example.com find submissions from "example.com" url:text search for "text" in url selftext:text search for "text" in self post contents self:yes (or self:no) include (or exclude) self posts nsfw:yes (or nsfw:no) include (or exclude) results marked as NSFW e.g. subreddit:aww site:imgur.com dog see the search faq for details. advanced search: by author, subreddit... this post was submitted on 16 Jan 2024 32 points (97% upvoted) shortlink: [https://redd.it/197v] [ ][ ] [ ]remember mereset password login Submit a new link Submit a new text post Get an ad-free experience with special benefits, and directly support Reddit. get reddit premium BSD joinleave17,169 readers 144 users here now A place for all things BSD. Get it! * DragonFlyBSD * FreeBSD * NetBSD * OpenBSD * TrueOS (formerly PC-BSD) --------------------------------------------------------------------- Similar reddits * /r/unix * /r/dragonflybsd * /r/freebsd * /r/netbsd * /r/openbsd * /r/trueos (formerly /r/pcbsd) *** Man(ual) Pages * DragonFlyBSD * FreeBSD * NetBSD * OpenBSD --------------------------------------------------------------------- Tutorial on reddit's markup rules. a community for 15 years MODERATORS * message the mods discussions in r/BSD <> X 33 * 9 comments A NetBSD/amd64 guest can now boot in 40ms (details in comments) 0 * 18 comments Looking for a Linux & Unix Discord Community? 3 * 37 comments Should I try bsd? 12 * 3 comments Install OpenBSD 7.4 and KDE Plasma 5 in QEMU VM tutorial 0 * 1 comment Poll in Mastodon: what operating systems (or Linux distros) do you use on a regular basis? -- one day left 19 * 3 comments Announcing NetBSD 10.0 RC2 (Jan 1, 2024) 9 * 22 comments New to BSD 4 * 16 comments Linux vs BSD 17 * 1 comment GhostBSD and MATE 8 * 1 comment Upgrading from NetBSD 5.1 to 10_RC1 on an old 1998 laptop Welcome to Reddit, the front page of the internet. Become a Redditor and join one of thousands of communities. x 31 32 33 A NetBSD/amd64 guest can now boot in 40ms (details in comments) ( i.redd.it) submitted 17 hours ago by iMil * 9 comments * share * save * hide * report [fva671v8qqcc1] all 9 comments sorted by: best topnewcontroversialoldrandomq&alive (beta) [ ] Want to add to the discussion? Post a comment! Create an account [-]iMil[S] 12 points13 points14 points 17 hours ago (4 children) I've been working the past 3 months into catching up with Colin Percival's work on FreeBSD with the Firecracker hypervisor. The result is that NetBSD/amd64 can now boot in PVH mode, i.e. directly into the kernel using qemu's -kernel flag or the PVH-enabled version of AWS's Firecracker. I then added support for MMIO kernel command line parameters, so NetBSD now supports memory mapped backed devices like ld(4) or vioif (4). Last but not least, I've been tracking boot time until reaching 40ms from the assembly entry point to handling over to userland. The latest branch with performances is here: https://github.com/ NetBSDfr/NetBSD-src/tree/perf The experimental branch with "only" PVH and MMIO support is here: https://github.com/NetBSDfr/NetBSD-src/tree /mmio_cmdline * permalink * embed * save * report * reply [-]iMil[S] 11 points12 points13 points 13 hours ago (2 children) Cherry on the cake: 18ms is the new score. * permalink * embed * save * parent * report * reply [-]johnklos 1 point2 points3 points 8 hours ago (1 child) Very nice! I'm looking forward to trying it :) How much of the time currently depends on the speed of the system running the VM? * permalink * embed * save * parent * report * reply [-]iMil[S] 1 point2 points3 points 4 hours ago (0 children) The host speed definitely plays an important role, but for the record my CPU is a humble i5-7600K from 2017, I suppose I could reach much lower times with a more recent CPU. * permalink * embed * save * parent * report * reply [-]rahen 0 points1 point2 points 3 hours ago (0 children) Is this based on the SmolBSD project you published a few months ago in Linux Mag FR? * permalink * embed * save * parent * report * reply [-]dynfi 3 points4 points5 points 15 hours ago (2 children) Seems like really nice work. Congratulations. Do you know if anyone is working on porting this to FreeBSD ? * permalink * embed * save * report * reply [-]iMil[S] 10 points11 points12 points 15 hours ago (0 children) Thanks! Actually this already exists in FreeBSD, including the performance boost, Colin did a hell of a job from which I get most of the inspiration for NetBSD. * permalink * embed * save * parent * report * reply [-]Bsdimp- 0 points1 point2 points 2 hours ago (0 children) Colin is already searching for the last few ms to trim... he was so proud of low 20s ms too. * permalink * embed * save * parent * report * reply [-]gumnos 2 points3 points4 points 8 hours ago (0 children) I don't really use NetBSD or AWS, but I can certainly appreciate both the effort required to do this, and also marvel in the mind-bogglingly impressive results you've achieved. So just adding my "huzzah, way to go!" here. * permalink * embed * save * report * reply * about * blog * about * advertising * careers * help * site rules * Reddit help center * reddiquette * mod guidelines * contact us * apps & tools * Reddit for iPhone * Reddit for Android * mobile website * <3 * reddit premium Use of this site constitutes acceptance of our User Agreement and Privacy Policy. (c) 2024 reddit inc. All rights reserved. REDDIT and the ALIEN Logo are registered trademarks of reddit inc. [pixel] p Rendered by PID 24623 on reddit-service-r2-loggedout-7c745c67fd-dw95v at 2024-01-16 23:01:57.148423+00:00 running 1380ee2 country code: US.