bobwdn
July 10th, 2018, 12:26 PM
With the new changes to using swapfile in place of a swap partition on installs of 18.04 (server) I have a couple of questions.
I did two test installs on Virtualbox. One with 1Gb of RAM and another with 4GB of RAM to see what size swapfile would be generated during both install. This RAM size was the only difference between the two installs. Everything else I accepted the defaults. After installs both had the same size swapfile of 472Mb.
Then I start searching for 'how to adjust the size of swapfile' and there are too many suggestions that do not agree with one and other. Used 'Allocate' and the next one says 'no, don't use Allocate' use 'dd'! Old version, new version and the list goes on.
The "big deciders" (at Ubuntu) have some sort of plan for this but, what is it?
My questions is this. If the general rule is that server swap should be the same size or larger than the physical RAM then why is the installer only generating 472Mb for both 1Gb RAM and 4Gb RAM install (in this case)? What is the 'best/preferred method' to adjust this swapfile size? Why does the installer script not create an appropriate swapfile size that follows the (considered) standard practice of a swap size the same size or larger than the RAM on the MB?
The documentation on this subject is unclear. See my confusion?
I did two test installs on Virtualbox. One with 1Gb of RAM and another with 4GB of RAM to see what size swapfile would be generated during both install. This RAM size was the only difference between the two installs. Everything else I accepted the defaults. After installs both had the same size swapfile of 472Mb.
Then I start searching for 'how to adjust the size of swapfile' and there are too many suggestions that do not agree with one and other. Used 'Allocate' and the next one says 'no, don't use Allocate' use 'dd'! Old version, new version and the list goes on.
The "big deciders" (at Ubuntu) have some sort of plan for this but, what is it?
My questions is this. If the general rule is that server swap should be the same size or larger than the physical RAM then why is the installer only generating 472Mb for both 1Gb RAM and 4Gb RAM install (in this case)? What is the 'best/preferred method' to adjust this swapfile size? Why does the installer script not create an appropriate swapfile size that follows the (considered) standard practice of a swap size the same size or larger than the RAM on the MB?
The documentation on this subject is unclear. See my confusion?