闲来无事,无意中刷到了gullo家的nat小鸡,openvz虚拟化,128MB内存+2G硬盘,ipv4仅可使用20个端口,似乎什么也干不了……
不过,使用优惠码 LEB-NAT-128MB
后仅需$2一年,这还要什么自行车!就当个玩具吧
目前只有芝加哥、加拿大、芬兰、波兰地区的有货,我选的在芝加哥,母鸡在GigeNET
付款时强烈建议PayPal,虽然支持微信/支付宝等,但stripe最低充值$20,还得等老板手动给你开机
默认装了Debian11,虽然已经极度精简过了(curl都没有),但128MB的内存还是有些不堪重负
接着在LET上找到了个帖子:Converts your OpenVZ VPS to Alpine Linux,可以给openvz虚拟化的VPS装上Alpine Linux,一个极其轻量的嵌入式系统
代码放在GitHub,直接下载运行就好了
wget https://gist.github.com/trimsj/c1fefd650b5f49ceb8f3efc1b6a1404d/raw/8c2439d5d583dd40d5af3e570949b9f0974357ba/alpine.sh
bash alpine.sh
之后ssh会断开,重新连接即可享受超轻量系统
Warnings:
- 硬盘上已有的数据会被全部清除,但root密码会继承
- 仅限openvz,KVM请勿尝试
装好后内存占用4MB,硬盘占用70MB,清爽!
本来想跑个bench.sh,不过……
-------------------- A Bench.sh Script By Teddysun -------------------
Version : v2022-06-01
Usage : wget -qO- bench.sh | bash
----------------------------------------------------------------------
CPU Model : Intel(R) Xeon(R) CPU E3-1270 v3 @ 3.50GHz
CPU Cores : 1 @ 1849.975 MHz
CPU Cache : 8192 KB
AES-NI : Enabled
VM-x/AMD-V : Enabled
Total Disk : ( Used)
Total Mem : 128.0 MB (5.2 MB Used)
System uptime : 0 days, 14 hour 1 min
Load average : 1.13, 0.64, 0.29
OS : Alpine Linux v3.16
Arch : x86_64 (64 Bit)
Kernel : 4.19.0
TCP CC :
Virtualization : OpenVZ
Organization : AS32181 GigeNET
Location : Chicago / US
Region : Illinois
----------------------------------------------------------------------
I/O Speed(1st run) : dd: invalid argument 'fdatasync' to 'conv'
I/O Speed(2nd run) : dd: invalid argument 'fdatasync' to 'conv'
I/O Speed(3rd run) : dd: invalid argument 'fdatasync' to 'conv'
awk: cmd. line:1: Unexpected token
awk: cmd. line:1: Unexpected end of string
I/O Speed(average) : MB/s
----------------------------------------------------------------------
Node Name Upload Speed Download Speed Latency
Speedtest.net Mbps (data Mbps (data 18.49 ms
Los Angeles, US Mbps (data Mbps (data 58.36 ms
Dallas, US Mbps (data Mbps (data 23.83 ms
Montreal, CA Mbps (data Mbps (data 18.94 ms
Paris, FR Mbps (data Mbps (data 104.21 ms
Amsterdam, NL Mbps (data Mbps (data 97.42 ms
Shanghai, CN Mbps (data Mbps (data 202.40 ms
Nanjing, CN Mbps (data Mbps (data 184.36 ms
Hongkong, CN Mbps (data Mbps (data 247.50 ms
Seoul, KR Mbps (data Mbps (data 172.63 ms
Singapore, SG Mbps (data Mbps (data 212.92 ms
Tokyo, JP Mbps (data Mbps (data 139.89 ms
----------------------------------------------------------------------
Finished in : 7 min 10 sec
Timestamp : 2022-10-28 05:23:21 UTC
----------------------------------------------------------------------
h:~#
好像各大测试脚本都不支持alpine,算了…
虽然性能真的极其弱鸡,不过,跑些简单的程序应该还是没问题的,这里先留个坑,下次再更吧