#(SOLVED) What is best for my Arch system? Zswap or Zram?
129 messages · Page 1 of 1 (latest)
I think a prime difference between the two is that zswap is compressed RAM cache for swap, whereas zram is swap on RAM block device.
Both uses RAM dynamically, but zswap may be better if you also want to use disk as a last defence against an OOM.
How did you enabled it?
If zram is setup runs automatically at boot time, you are probably using udev rules.
These are different concepts. and move the swap file to the swap partiton is just ... , what else can I say ? I wish not to say anything.
Please try your own solutions
Farewell
sure, it's really simple
make the partition at least the size of your ram, and then just swapon /dev/sdXx
add it to your fstab
oh you have a lot of ram
you don't need that much swap space
unless you do high ram stuff and plan to hibernate in the process
you want a 32 gb swap space?
put this in your fstab for the swap with the correct path and UUID
just do blkid /dev/sdXx on it
just sudo swapon /dev/sdXx with sdXx being your new swap partition
you can even do both a swap partition and swap file if you want
but I would just do partition
yeah
pretty sure zswap is default, let me check
dmesg | grep zswap:
np
Reboot since you just swapped
Then check cmd again with sudo
It should log off your boot
yeah that's good
yes
np
(SOLVED) What is best for my Arch system? Zswap or Zram?
https://superuser.com/questions/1727160/zram-vs-zswap-for-lower-end-hardware zswap is better btw
yeah I'm on a dinosaur lol
you got 20 cores, I got 4 lmao
I'm going to run this pc til the wheels fall off
I have nvidia gpu and a cpu with integrated graphics
but yes otherwise it's also possible
crypto mining rigs connect a lot of gpus together
for a massive amout of vram
I have the highest card my mobo can support
I'm going to slowly build a PC later
idk what any of that is except steam and borken display
also did you set the nvidia.hook?
that's important
in /etc/pacman.d/hooks/nvidia.hook ```
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
Target=linux
[Action]
Description=Update NVIDIA module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'
and in /etc/mkinitcpio.conf ```
vim:set ft=sh
MODULES
The following modules are loaded before any boot hooks are
run. Advanced users may wish to specify all system modules
in this array. For instance:
MODULES=(usbhid xhci_hcd)
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
#...snip
@bright fox
try it and see if it helps
after the pacman hook go ahead and sudo pacman -Syyuu as well
sync kernel with nvidia driver
or maybe sudo mkinitcpio -P
are you on xorg?
idk what spore is
is there a GUI for it
open terminal and type xkill and click it
if it has a window
wtf
xkill just kills the process running a window
sudo systemctl restart window-manager or something I can't remember one sec
display-manager
sudo systemctl restart display-manager
idk what abomination is either ;;
oh you mean the mess you're in?
was thinking a service named abomination lmfao
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) just this line really
in mkinitcpio.conf
ok that's all you need
idk if you use it
maybe not
wait
idk
I don't have it
I don't think so?
the way I have it, I can play games no problem on my ancient GPU, played them just fine on my old 750 ti as well
no
❯ pacman -Qs nvidia
local/cuda 12.2.0-1
NVIDIA's GPU programming toolkit
local/egl-wayland 2:1.1.12-1
EGLStream-based Wayland external platform
local/libvdpau 1.5-1
Nvidia VDPAU library
local/libxnvctrl 535.104.05-1
NVIDIA NV-CONTROL X extension
local/nvidia 535.104.05-2
NVIDIA drivers for linux
local/nvidia-settings 535.104.05-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 535.104.05-1
NVIDIA drivers utilities
local/opencl-nvidia 535.104.05-1
OpenCL implemention for NVIDIA
I got this 1050 ti for free for installing a newer GPU in someones pc
cuz they were afraid to take it apart and gave me their old one
lmao
well just know idk if it's a module so if something breaks you might need to chroot in and delete that
idk
the mkinitcpio config doesn't get called til you run mkinitcpio -P
or when you update the kernel and nvidia driver, it updates your initramfs with that pacman hook and calls it for you automatically
you might even do sudo pacman -S linux nvidia to force it to load the hook
kk
are you on lts kernel?
if so, why?
can you show me uname -a
idk I don't use zen kernel
if you have issues you might try using the regular linux kernel
You know what uou might need to add something to steam
oh heck I don't even have multilib on this install, one sec
err yeah I do
why can't my pc find steam tho
I never had this issue
just updated my mirrors too
is gamescope the new steam?
idk
wtf is going on here
@bright fox now I need your help lmao
why doesn't pacman find steam package now?
didn't know steam-git was a thing
I'm dumb, I didn't remove the comment before [multilib] as well
only the line loading it
@bright fox basically install gamemode and put in your steam game config gamemoderun %command%
sorry I typed it wrong at first
where
okay so sudo pacman -S linux-zen-headers
always use pacman first before an aur helper
daily I do sudo pacman -Syu (aliased to pacup) and then I just do yay
sudo pacman -S gamemode
also check out glorious eggroll for proton
maybe check out playonlinux in the aur as well idk, use to a crutch that maybe isn't needed anymore
use to be in the repos but now it's in the AUR, was great for Lutris
lol
okay well I'm going to bed, it's 1:20 am here, so good luck
if you need further help from me, tag me here and I'll get back to you tomorrow