| 3 Jan 2024 |
K900 | In reply to@atemu12:matrix.org You need to set that up on the host side however NixOS defaults to madvise | 11:03:45 |
K900 | Which QEMU can use | 11:03:48 |
@atemu12:matrix.org | And you need to set up HP manually because QEMU's THP might not actually use HP if memory is too fragmented and defrag can't be done with PCIe passthru | 11:03:58 |
K900 | In reply to@crushing-smite:matrix.org what's THP, and what was before it? THP is "transparent huge pages", which basically means the kernel manages memory in bigger chunks | 11:04:04 |
@atemu12:matrix.org | In reply to @atemu12:matrix.org And you need to set up HP manually because QEMU's THP might not actually use HP if memory is too fragmented and defrag can't be done with PCIe passthru Defrag at a later time that is | 11:04:50 |
K900 | https://developers.redhat.com/blog/2021/04/27/benchmarking-transparent-versus-1gib-static-huge-page-performance-in-linux-virtual-machines#benchmarks | 11:04:58 |
K900 | Found a Red Hat blog post | 11:05:02 |
K900 | 3% performance difference | 11:05:06 |
@atemu12:matrix.org | In games it's a lot more than that | 11:05:15 |
@atemu12:matrix.org | Especially CPU-bound ones | 11:05:30 |
@atemu12:matrix.org | It was a little while ago but something on the order of 10-20% | 11:05:56 |
crushing-smite | can I automate game installation with lutris on nixos? | 11:13:37 |
crushing-smite | provide installation instruction for the install wizard, or such? | 11:13:47 |
@atemu12:matrix.org | Theoretically that's possible but I would highly recommend against it | 11:14:12 |
@atemu12:matrix.org | Treat game installations as state. | 11:14:22 |
crushing-smite | would it be possible with some other software? | 11:14:39 |
crushing-smite | "possible" as "close to a sensible approach" | 11:15:16 |
@atemu12:matrix.org | Likely but what problem are you trying to solve with that? | 11:15:19 |
crushing-smite | have my games in dotfiles and nixstore | 11:15:32 |
@atemu12:matrix.org | And what problem are you trying to solve by doing so? | 11:16:21 |
crushing-smite | satisfy my curiosity | 11:16:55 |
crushing-smite | push the boundaries of possible | 11:17:00 |
crushing-smite | git clone nixos-rebuild switch to install my games | 11:17:16 |
K900 | You can definitely automate downloading games with something like steamcmd | 11:17:45 |
K900 | And then build Wine prefixes in Nix | 11:17:52 |
K900 | But there's a lot of small details | 11:18:00 |
crushing-smite | for a few select games though | 11:19:17 |
crushing-smite | mostly old games, but a handful of recent AAA too | 11:19:27 |
K900 | It's definitely possible | 11:20:08 |
K900 | But you'll have to set it up yourself | 11:20:37 |