On question what is better a swap partition or a swapfile for Manjaro? And how to implement it. And for example systemd swap for 8 gb ram do I need to enable zram or zswap? I dont know whats better. And easy to do for a newbie. And when I install Manjaro on ssd via automatic install does it optimize the partitions for ssd use? Like 2 unallocated partitions or fully install?
I have a I5-4670k 64 bits cpu
8 gb ddr3 ram
240 gb wd ssd
1 tb toshiba
A swap partition is usually a bit harder to change size – due to it being a partition next to others – whereas a swapfile is a file in one of your data partitions, and as such is easier to change size.
Although the size of swap isn’t something you change regularly anyway…
A SSD can access any block anytime, contrarily to HDD which needs to move the heads at the right place before reading/writing. Thus there is no partition optimization needed on a SSD.
AFAIK a default installation creates a single partition including both system and data. Many people prefer a different partitioning, each to his own taste…
Right now I am running pop os on my ssd, and on my hdd there is nothing special. I would like to run Manjaro on SSD both are disks are gpt. Do I need to use a partition for swap or a file? Do I need to put some free space on the ssd? Or can I just use it fullly for manjaro.
Pop os automated install made this on my ssd.
2.1mb free space
522 mb Efi partition
4.3 GB recovery
231 GB ext4 Data
4.3 GB Swap
2.1 MB free space
Regards,
Marcel
Partitietabel: gpt
Schijfvlaggen:
Nummer Begin Einde Grootte Bestandssysteem Naam Vlaggen
1 2097kB 524MB 522MB fat32 opstart, esp
2 524MB 4819MB 4295MB fat32 recovery msftdata
3 4819MB 236GB 231GB ext4
4 236GB 240GB 4295MB linux-swap(v1) swap
Note that if you want to enable hibernation with your swap partition, you may need to regenerate initramfs with a resume hook. To do so, add the keyword resume to the HOOKS line in /etc/mkinitcpio.conf after udev, then run mkinitcpio -p linux