Linux Operating System

Linux FAQ Items

Totul despre Gentoo Linux

Linux FAQ Items

Postby Johneames » Wed Nov 22, 2017 3:23 pm

Hello Guys,

Sometimes it is necessary to add more swap space after installation. For example, you may upgrade the amount of RAM in your system from 64 MB to 128 MB, but there is only 128 MB of swap space. It might be advantageous to increase the amount of swap space to 256 MB if you perform memory-intense operations or run applications that require a large amount of memory.

You have two options: add a swap partition or add a swap file. The easiest way to achieve this it to through swap file.

To add a swap file:

Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.

mkswap /swapfile

To enable the swap file immediately but not automatically at boot time:

swapon /swapfile

To enable it at boot time, edit /etc/fstab to include:

/swapfile swap swap defaults 0 0

The next time the system boots, it will enable the new swap file.

After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat /proc/swaps or free.

bingo Linux

Let me know if you have any questions.

I didn't find the right solution from the Internet.

References ... 73e64d6e16

Best Corporate Motion Graphics
Posts: 71
Joined: Mon Oct 30, 2017 2:36 pm

Return to Gentoo

Who is online

Users browsing this forum: No registered users and 1 guest