I am using Kubuntu which is Ubuntu with KDE. My swap partition is too small causing me some lag. I have 16GB Ram but it is set to 1.9GB. Attached is screen shots of my current partition. vgkubuntu is the Volume Group. I was thinking to just create a swapfile instead of a partition. Can I just create the swapfile inside the ext4 filesystem without having to adjust partitions?
My plan is to boot live and use kparted. I believe it's doable from that tool.
Adding: free -m and before closing Chrome, after Chrome and closing Godot IDE. Notice swap never changes.
~$ free -m
total used free shared buff/cache available
Mem: 15673 12407 1430 2401 4571 3266
Swap: 1955 1955 0
~$ free -m
total used free shared buff/cache available
Mem: 15673 10299 3554 2123 4305 5373
Swap: 1955 1955 0
~$ free -m
total used free shared buff/cache available
Mem: 15673 8100 5727 1302 3510 7573
Swap: 1955 1955 0
Edit: I finally took the easy way out. I created a 16G swap file and disabled the swap partition. I don't have to mess around with LVM stuff.


free -mshow when slow? Note that Linux caches apps into RAM so if RAM full it releases unused apps before using swap, You can easily expand swap in LVM if you have space in the volume. discourse.ubuntu.com/t/how-to-expand-disk-space/68505/4 & unix.stackexchange.com/questions/733982/…cat /proc/pressure/memoryaround a lag issue. Pressure stall information is a "better load average" that will show if there are actual delays waiting on memory.