Personal test of how to expand SWAP burst memory using Bricklayer VPS host

888u

Last update at :2024-06-02,Edit by888u

Many of our netizens have reported that buying a high-end VPS host is good but too expensive. But the configuration of the low-end solution is too low. Is there any way to improve the performance? For example, can we increase memory. Here we can use technology to increase SWAP burst memory. Although it is not physical memory, it can still improve the memory effect to a certain extent and improve the performance efficiency of the VPS host.

Here we can increase the swap burst memory of the VPS host through the following steps.

1. Login directory

cd /var/

2. Get the 512MB file block:

dd if=/dev/zero of=swapfile bs=1M count=1024

Generally, it is set to 2 times the memory. The number after count is the swap size xxMB to be set. The following takes 1G as an example.

3. Create swap file

/sbin/mkswap swapfile

4. Activate swap file

/sbin/swapon swapfile

5. Check whether the swap is correct:

/sbin/swapon -s

In addition, for safety reasons, it is recommended to perform:

chmod 0644 /var/swapfile

6. Add it to the fstab file to automatically start when the system boots.

vi /etc/fstab

Add the following content at the end:

/var/swapfile swap swap defaults 0 0

You can also execute the following command directly.

echo “/var/swapfile swap swap defaults 0 0” >>/etc/fstab

In this way, we can add burst memory SWAP to the Bricklayer Server VPS host.

At present, the following solutions are mainly recommended.

Coupon code: BWH3HYATVBJW

Purchase tutorial: The latest bricklayer purchase tutorial and Alipay payment tutorial

Plan Memory CPU Hard disk Traffic/month Bandwidth Computer room Price Buy
CN2
(cheapest)
1GB 1 core 20GB 1TB 1Gbps DC3 CN2
DC8 ZNET
$49.99/year Buy
CN2 2GB 1 core 40GB 2TB 1Gbps $52.99/half a year
$99.99/year
Buy
CN2 GIA-E
(Most recommended)
1GB 2 cores 20GB 1TB 2.5Gbps DC6 CN2 GIA-E
DC9 CN2 GIA
Japan Softbank JPOS_1
Netherlands EUNL_9
$49.99/quarter
$169.99/year
Buy
CN2 GIA-E 2GB 3 core 40GB 2TB 2.5Gbps $89.99/quarter
$299.99/year
Buy
HK 2GB 2 cores 40GB 0.5TB 1Gbps Hong Kong, China CN2 GIA $89.99/month
$899.99/year
Buy
HK 4GB 4 core 80GB 1TB 1Gbps $155.99/month
$1559.99/year
Buy
TOKYO 2GB 2 cores 40GB 0.5TB 1.2Gbps Tokyo, Japan CN2 GIA $89.99/month
$899.99/year
Buy
TOKYO 4GB 4 core 80GB 1TB 1.2Gbps $155.99/month
$1559.99/year
Buy
Bricklayer Discount Code: BWH3HYATVBJW Tutorial on purchasing bricklayers: "The latest tutorial on purchasing bricklayers and Alipay payment tutorials"

Recommended site searches: Guangzhou website registration, virtual host rental, Korean server rental, Hong Kong domain name registration, US host reviews, com domain name registration for 1 yuan, ip proxy, free space in mainland China, vps Hong Kong, foreign server rental prices, < /p>

Personal test of how to expand SWAP burst memory using Bricklayer VPS host

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码