VFIO fixes and malachite things

This commit is contained in:
stitchy 2024-11-03 11:11:06 -08:00
parent c4e46d0a28
commit 53ef1f28c6
Signed by: stitchy
SSH key fingerprint: SHA256:p+xeQgmOvQ2br1d2STl5OnRRMef2LRqCtGA7SO4WYk0
3 changed files with 24 additions and 10 deletions

View file

@ -92,7 +92,6 @@
:monitor 0
:geometry (geometry :x "4px"
:y "1%"
:width "2.5%"
:height "98%"
:anchor "left center")
:stacking "fg"

View file

@ -40,6 +40,14 @@ let
# Load VFIO Kernel Module
modprobe vfio vfio_pci vfio_iommu_type1
# Performance Governer
for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > "$file"; done
# Isolating CPU
systemctl set-property --runtime -- user.slice AllowedCPUs=16-19
systemctl set-property --runtime -- system.slice AllowedCPUs=16-19
systemctl set-property --runtime -- init.scope AllowedCPUs=16-19
elif [[ "$HOOK_NAME/$STATE_NAME" == "release/end" ]]; then
modprobe -r vfio_iommu_type1 vfio_pci vfio
@ -61,6 +69,13 @@ let
# Reload Modules
modprobe amdgpu
# Back to On-Demand Scheduler
for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "ondemand" > "$file"; done
systemctl set-property --runtime -- user.slice AllowedCPUs=0-19
systemctl set-property --runtime -- system.slice AllowedCPUs=0-19
systemctl set-property --runtime -- init.scope AllowedCPUs=0-19
fi
fi

View file

@ -20,22 +20,22 @@
"/" =
{ device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
fsType = "btrfs";
options = [ "subvol=nix" ];
options = [ "subvol=nix" "compress=zstd" ];
};
"/home" = {
device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
fsType = "btrfs";
options = [ "subvol=homes/stitchymain" ];
options = [ "subvol=homes/stitchymain" "compress=zstd" ];
};
"/nix/store" = {
device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
fsType = "btrfs";
options = [ "subvol=store" ];
options = [ "subvol=store" "noatime" "compress=zstd" ];
};
"/persist" = {
device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
fsType = "btrfs";
options = [ "subvol=@persist" ];
options = [ "subvol=@persist" "compress=zstd" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/CB12-5062";
@ -44,27 +44,27 @@
"/home/stitchynyan/Music" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
options = [ "subvol=music/stitchtunes" "x-systemd.automount" ];
options = [ "subvol=music/stitchtunes" "compress=zstd" "x-systemd.automount" ];
};
"/home/stitchynyan/Pictures" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
options = [ "subvol=pictures/stitchpics" "x-systemd.automount" ];
options = [ "subvol=pictures/stitchpics" "compress=zstd" "x-systemd.automount" ];
};
"/home/stitchynyan/Programs/Steam" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
options = [ "subvol=games/stitchgames" "x-systemd.automount" ];
options = [ "subvol=games/stitchgames" "compress=zstd" "x-systemd.automount" ];
};
"/home/stitchynyan/Videos" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
options = [ "subvol=videos/stitchshows" "x-systemd.automount" ];
options = [ "subvol=videos/stitchshows" "compress=zstd" "x-systemd.automount" ];
};
"/home/stitchynyan/VirtualMachines" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
options = [ "subvol=virtualmachines/stitchvms" "x-systemd.automount" ];
options = [ "subvol=virtualmachines/stitchvms" "compress=zstd" "x-systemd.automount" ];
};
};