2

I have an updated desktop, to work with office/internet and some virtual machines. I have a:

  • MSI Z370-A Pro
  • Samsung SSD 970 EVO PCI-E NVMe M.2 500 GB
  • G.Skill Ripjaws V DDR4 3200 PC4-25600 16GB 2x8GB CL16
  • Intel Core i5-8400 2.8GHz BOX

I’ve read that recently Ubuntu has changed the swap partition to a file.

1 - Which size of partition/file would you recommend? Some people say to have almost no swap, others say that the same as RAM... I think that having swap is bad for me as I have a high RAM speed...

2 - How can I pass from a partition to a file? Suppose I have to disable swap partition, delete it, merge with home or root and then create a swap file.

Disco /dev/nvme0n1: 465,8 GiB, 500107862016 bytes, 976773168 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico/físico): 512 bytes / 512 bytes
Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes
Tipo de etiqueta de disco: dos
Identificador del disco: 0x00042ea4

Dispositivo    Inicio  Comienzo     Final  Sectores Tamaño Id Tipo
/dev/nvme0n1p1 *           2048   1048575   1046528   511M 83 Linux      /boot
/dev/nvme0n1p2          1048576   9433087   8384512     4G 82 Linux swap /swap Solaris
/dev/nvme0n1p3          9433088 811874303 802441216 382,6G 83 Linux     /
/dev/nvme0n1p4        811874304 976773119 164898816  78,6G 83 Linux     /home

3 - Can I stay without any swap partition or file?

Melebius
  • 11,750

0 Answers0