User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
Admin
Wyvern-shaped software developer and hobby vector artist. Also sometimes a fluffy werewolf alien creature (Areon) or a bird (Corveon).

Creator of the neofoxes, neocats and other emojis.
wvrnBox
Website
https://volpeon.ink/
Speaking German, English
Age 30s
Pronouns he / him
Backup Account @volpeon@goto.wyvern.rip
Bonus Content @areon@icy.wyvern.rip
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
I used to be a moderator on a forum for a while and this is very accurate. Moderation was done according to the rules, and as a result we had assholes constantly testing the limits. That was some proper bullshit.
On the other side, though, IIRC before my time someone actually had gotten a lawyer involved due to a dispute with the moderators, so I guess there simply was no winning for us.
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@krutonium Listen, if I have a GPU that can handle shaders at high settings, I'm not going to run the game on the potato GPU wvrnFlat
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@krutonium It has the powerful GPU drgn_cool
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
The thread says to use the OpenGL renderer. I tried it and it does fix the memory issue, but there's lots of lagging instead. Makes sense that it's very noticeable at 4K.
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
Oh hey, I'm not the only one: forum.level1techs.com/t/looking-glass-client-causes-unreclaimed-host-memory-leak/235632
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
Got that solved as well. Now the only downside compared to looking-glass is that I can't view the VM through a window anymore which I can just hide when I need to do something on the host.
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
Actually, there's nothing stopping me from using the old looking-glass version without the memory leak woozy_baa Definitely going to report it, though
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
Ah, I remember why I didn't play Minecraft with this setup. It's unplayable because the camera speed is like 1000x for some reason woozy_baa But at least I don't have to worry about my art projects anymore
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
I'm now using the VM just how I did it like, uh... 5 years ago or so? With Synergy (now Deskflow)
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@xoagray Hence why I said I might stop playing it on the VM. The thing is, though, that I need to solve this problem because it happens all the same when I want to use software like Affinity Designer.
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@xoagray The VM has the powerful GPU
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
I'm beginning to think the culprit is looking-glass. That would suck big time because it makes working on both host and guest system simultaneously super convenient.
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@Houl It has the way more powerful Nvidia GPU, while the Linux host gets the RX 570
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
Well, I won't keep playing Minecraft on my Windows VM if the RAM problem persists. Having to reboot the computer to free up the RAM every 30 minutes is kind of a pain.
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
I always have grand ideas, just like with my art and programming projects
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
I should've done this sooner because I always get frustrated that material I need for my buildings is way too cumbersome too obtain at scale drgn_woozy
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
I never played Minecraft in creative mode so I'm doing that now. drgn_uwu
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@anthropy I added the numa part for virtiofs. Looks weird to me, too, but that's what you're supposed to do according to their docs: virtio-fs.gitlab.io/howto-qemu.html

(I only did one thing differently, and that is using memory-backend-memfd instead of memory-backend-file)
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@anthropy I really need to clean this thing up. It grew over the years. drgn_woozy
User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
8mo
@anthropy I allocated 32gb. I'm not sure about ballooning, but here's the command I use:
taskset -c ${CPU_CORE} qemu-system-x86_64 \
   -name "Windows 10" \
   -machine q35,mem-merge=off,vmport=off \
   -accel kvm \
   -accel kvm,kernel-irqchip=on \
   -cpu host,+topoext,kvm=off,hv_spinlocks=0x1fff,hv_relaxed,hv_vapic,hv_time,hv_crash,hv_reset,hv_vpindex,hv_runtime,hv_synic,hv_stimer,hv_vendor_id=Gigabyte \
   -smp 12,sockets=1,cores=6,threads=2 \
   -global ICH9-LPC.disable_s3=1 \
   -global ICH9-LPC.disable_s4=1 \
   -m ${RAM_SIZE} \
   -mem-prealloc \
   -rtc clock=host,base=localtime,driftfix=slew \
   -global kvm-pit.lost_tick_policy=delay \
   -overcommit mem-lock=off \
   -global kvm-pit.lost_tick_policy=discard \
   -nographic \
   -vga none \
   -serial none \
   -parallel none \
   -k en-us \
   -msg timestamp=on \
   -spice port=${SPICE_PORT},disable-ticketing=on \
   -usb \
   -audio driver=pipewire,model=hda,id=snd1 \
   -device ioh3420,chassis=1,bus=pcie.0,addr=03.0,id=ioh3420-root-port-1 \
   -device ivshmem-plain,memdev=ivshmem,bus=pcie.0 \
   -object memory-backend-file,id=ivshmem,share=on,mem-path=/dev/shm/looking-glass,size=128M \
   -chardev socket,id=chrtpm,path=/var/run/emulated_tpm/swtpm-sock \
   -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0 \
   -object iothread,id=iothread0 \
   -netdev bridge,id=virbr0 \
   -device virtio-net-pci,netdev=virbr0,id=nic1 \
   -object input-linux,id=kbd1,evdev=${EV_KBD},grab_all=on,repeat=on,grab-toggle=alt-alt \
   -object input-linux,id=mouse1,evdev=${EV_MOUSE} \
   -device virtio-mouse-pci \
   -device virtio-keyboard-pci \
   -device vfio-pci,host=${VGA_ADDR},bus=ioh3420-root-port-1,addr=00.0,x-pci-sub-device-id=${VGA_SSID},x-pci-sub-vendor-id=${VGA_SVID},multifunction=on,x-vga=on \
   -drive file=${KVM_CODE},if=pflash,format=raw,unit=0,readonly=on \
   -drive file=${KVM_VARS},if=pflash,format=raw,unit=1 \
   -device virtio-scsi-pci,iothread=iothread0,num_queues=8,id=scsi \
   -drive file="${KVM_DISK}",index=0,media=disk,format=raw,if=none,aio=native,cache.direct=on,id=disk \
   -drive file="${KVM_DISK_2}",index=1,media=disk,format=raw,if=none,aio=native,cache.direct=on,id=disk2 \
   -device scsi-hd,drive=disk \
   -device scsi-hd,drive=disk2 \
   -drive file="${KVM_OPTI}",index=1,media=cdrom \
   -drive file="${KVM_CDRV}",index=2,media=cdrom \
   -device usb-tablet ${USB_DEVS} \
   -boot menu=on \
   -chardev stdio,mux=on,id=monitor-0 \
   -mon chardev=monitor-0 \
   -chardev socket,id=char0,path=/tmp/vhostqemu \
   -device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=Host \
   -object memory-backend-memfd,id=vfsmem,size=${RAM_SIZE},share=on \
   -numa node,memdev=vfsmem