@lina@vt.social titelbild
@lina@vt.social avatar

lina

@lina@vt.social

Hello everyone, Asahi Lina here! I'm a Linux developer VTuber!
I also help run VT Social!

EN/日本語|she/her|🎨 #AsahiLinArt
Model https://twitter.com/NananoNanase
Design https://twitter.com/shiranui_illust

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

lina , an Random Englisch
@lina@vt.social avatar

So today's stream ended up with... finding out that getcwd() is randomly broken inside the microVM??!??!!?!??!

I get the weirdest bugs...

lina OP ,
@lina@vt.social avatar

@t8d I think it's the other way around, reading from /proc/self/cwd just internally calls something like getcwd so it has the same problem...

lina OP ,
@lina@vt.social avatar
lina OP ,
@lina@vt.social avatar

@jkunkee This wasn't an app compat/emulation issue, it was just a bug in the virtual filesystem implementation of libkrun ^^;;

No emulation involved...

lina , an Random Englisch
@lina@vt.social avatar

💫 Linux dev stream! 💫

More Steam games running on Asahi Linux!! How many can we get to work? 🎮

🕐 Jun 2nd at 17:30 JST / 8:30 UTC (IN 10 MINUTES!)
▶️ https://youtube.com/live/XI1O0Fg_h7Q

lina , an Random Englisch
@lina@vt.social avatar

Stream will be tomorrow! I'm kinda busy today and I think people like it more when I play games on weekends anyway ^^

slp , an Random Englisch
@slp@fosstodon.org avatar

On her streams, @lina has demonstrated the ability to run many commercial games on Asahi Linux. This may seem simple (they're just games!) but actually requires the combination of multiple bleeding edge technologies:

  • FEX-Emu: a high-performance x86_64 emulator for aarch64.
  • TSO enabling.
  • Alyssa's superb reverse engineered GL drivers.
  • An implementation of Rob Clark's DRM native context for asahi.
  • krun for lightweight virtualization and virglrenderer integration.

https://vt.social/@lina/112524118075585601

lina ,
@lina@vt.social avatar

@slp Hey I worked on the GPU driver too! ^^;;

lina , an Random Englisch
@lina@vt.social avatar

The list of working Steam games is getting longer~ ✨

All running on an M2 Pro Mac Mini with Asahi Linux, krun, and FEX-Emu! 🎮

Subnautica was cool to see working!!

lina OP ,
@lina@vt.social avatar

@slyecho Just one minimal x86 rootfs for FEX (and the host arm64 filesystem for the native OS). No more ^^ (unless you count the wine prefixes that Proton makes automatically)

lina OP ,
@lina@vt.social avatar

@slyecho The guide mentions a distrobox container just so you don't mess around with your host OS, but you don't need it, it's just safer while the packages are in flux ^^

lina OP ,
@lina@vt.social avatar

@slyecho You don't really want an OCI image since it's not a stand-alone container, it's just an overlay which is intended to overlay your arm64 binaries with x86 ones ^^

lina OP ,
@lina@vt.social avatar

@micr0 FEX-Emu!

lina OP ,
@lina@vt.social avatar

@cuddle Yes, it's like Rosetta (though pretty different architecturally) ^^

lina OP ,
@lina@vt.social avatar

@gabboman Yes ^^ (with some changes and some new builds!)

lina OP ,
@lina@vt.social avatar

@synfi To get proton working you need a krun VM, FEX-Emu, and unreleased versions of multiple components and libraries ^^

lina OP ,
@lina@vt.social avatar

@patrick It's the Linux OpenGL version! Our OpenGL drivers are better than Apple's in many ways so it wouldn't surprise me if it runs better (I hear Minecraft also runs better on Asahi ^^)

lina , an Random Englisch
@lina@vt.social avatar

💫 Linux dev stream! 💫

We got a ton of Steam games running!! Let's try a few more and see how they work~ 🎮

But before that, there are some memory management issues! Can we fix them?

🕐 May 29th at 14:00 JST / 5:00 UTC (IN 1 HOUR!)
▶️ https://youtube.com/live/qTj60x9eMu4

lina , an Random Englisch
@lina@vt.social avatar

✨ We got a bunch of Steam games to run on Asahi Linux!!! ✨

Most of them run at a solid 60FPS and all of them are playable on my M2 Pro~ 🚀

All running on a krun microVM with FEX and full TSO support 💪

I was not expecting Party Animals to run! That's a DX11 game, running with the classic WineD3D on our OpenGL 4.6 driver! 🤯

Watch the stream:
▶️ https://youtube.com/live/JT9a_MrFV18

lina OP ,
@lina@vt.social avatar

@sterophonick All OpenGL only!

lina OP ,
@lina@vt.social avatar

@DenJohn It always had that, but it's a hack that doesn't work with Wine... I don't know why they announced it like that, it's misleading.

As far as I know the only thing that changed in the new release is that the 16K hacks are now enabled at runtime instead of having to do a special 16K build at compile time. But there's no way to make those hacks fully compatible, that's why we're working on microVMs. If it were possible to do cleanly without a VM we wouldn't be spending all this time on VMs ^^

Regular 4K box64 in the krun VM would be interesting to compare to FEX though!

lina OP ,
@lina@vt.social avatar

@cperon It's all in flux and not really ready to be released widely ^^

Once things stabilize and settle down a bit more, maybe!

lina OP ,
@lina@vt.social avatar

@edinbruh No, Rosetta is only licensed to run on VMs in macOS, not on native Linux ^^

(And besides it's closed source and we can't improve it so it doesn't make much sense!)

lina OP ,
@lina@vt.social avatar

@teohhanhui Did you increase the microVM RAM allocation? The default 4G is unusable for steam + any game...

Stardew Valley worked fine for me (and all the other games) once I increased the RAM to 10G ^^

lina OP ,
@lina@vt.social avatar

@ayke Regular programs should work already, but stuff that accesses hardware directly is going to be a problem since the microVM cannot pass that through... I don't think that will ever work as seamlessly as on macOS due to the extra VM layer, sorry!

(I thought there were native open source apps to use the Saleae on Linux though? Sigrok maybe? You could also try the Linux app on box64 with the page size hacks, maybe it'll work?)

lina OP ,
@lina@vt.social avatar

@niko That's the goal~ ^^

lina OP ,
@lina@vt.social avatar

@teohhanhui @slp I think it should be set to 80% or so, yeah, though this is iffy until some change is made to bypass the guest page cache ^^ (Sergio said it's coming)

There's also a GPU memory leak in krun, but that accidentally helped me test memory pressure and the VM seems to fairly gracefully get swapped out/zram compressed when it's too much so I think it will work ^^

I also mentioned to Sergio that we should definitely look into a client-server architecture so there is only ever one krun VM even if you launch multiple apps from the host, since multiple VMs competing for RAM is probably a bad idea...

lina , an Random Englisch
@lina@vt.social avatar

💫 Linux dev stream! 💫

Time to play some games again and see how far we got since last year!

But first, we need to implement TSO support for microVMs to make them go fast! Can we do it? 🚀

🕐 NOW
▶️ https://youtube.com/live/JT9a_MrFV18

lina , an Random Englisch
@lina@vt.social avatar

おはようございます!✨

I woke up kinda late today... stream might be a bit later than usual ^^;;

lina , an Random Englisch
@lina@vt.social avatar

Hey eveyrone~ I'm still here!

It's been a busy week so I couldn't stream on my usual schedule ^^;;

I'll move today's stream to Saturday at the usual time instead! See you then~ ✨✨

lina , an Random Englisch
@lina@vt.social avatar

I'm feeling a little sick today so the stream will be postponed... sorry 😔

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine