最近买VPS上瘾了,这次看到32MB的VPS,毫不犹豫地下手了,还配套买了个域名32mb.cn。

不要怀疑32MB内存的VPS不能建站哦。 eg:http://32mb.org

这次的目标就是山寨一个32mb.org。

主机商是CLoudShards,一家很新的主机商,

这货的购买链接:https://www.cloudshards .com/aff.php?a=add&aff=043&pid=123(心动的同学使用我的Aff购买吧) 已经倒闭了

CPU:E5-2630L

真心不地道,限制了CPU频率 频率是自动调整的

root@cal:~# cat /proc/cpuinfo
processor ​​: 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz
stepping : 7
cpu MHz : 839.062
cache size : 15360 KB
physical id : 0
siblings : 12
core id : 0
cpu cores : 6
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ​​ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 3999.81
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

内存信息

主机商比较人性化,准备了Debian的Minimal版本,默认只占用10M内存,已经相当不错了。

root@cal:~# cat /proc/meminfo
MemTotal: 32768 kB
MemFree: 12216 kB
Cached: 10676 kB
Active: 8096 kB
Inactive: 8856 kB
Active(anon): 2172 kB
Inactive(anon): 4104 kB
Active(file): 5924 kB
Inactive(file): 4752 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 32768 kB
SwapFree: 32768 kB
Dirty: 12 kB
Writeback: 0 kB
AnonPages: 6276 kB
Shmem: 3968 kB
Slab: 3588 kB
SReclaimable: 1564 kB
SUnreclaim: 2024 kB</pre>
<pre>root@cal:~# free
             total used free shared buffers cached
Mem: 32768 20808 11960 0 0 10916
-/+ buffers/ca​​che: 9892 22876
Swap: 32768 0 32768

硬盘5G

root@cal:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 5.0G 405M 4.7G 8% /
tmpfs 16M 0 16M 0% /lib/init/rw
tmpfs 16M 0 16M 0% /dev/shm</pre>
<pre>root@cal:~# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/simfs 2621440 25724 2595716 1% /
tmpfs 4096 4 4092 1% /lib/init/rw
tmpfs 4096 1 4095 1% /dev/shm</pre>
带宽 cachefly 100MB
<pre>root@cal:~# wget http://cachefly.cachefly.net/100mb.test
--2013-12-22 03:49:23-- http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net... 205.234.175.175
Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: `100mb.test'

100%[=============================================== ============================&gt;] 104,857,600 54.7M/s in 1.8s

2013-12-22 03:49:26 (54.7 MB/s) - `100mb.test' saved [104857600/104857600]

带宽测试脚本

root@cal:~# wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash
CPU model : Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz
Number of cores : 1
CPU frequency : 1328.515 MHz
Total amount of ram : 32 MB
Total amount of swap : 32 MB
System uptime : 16:51,
Download speed from CacheFly: 45.9MB/s
Download speed from Coloat, Atlanta GA: 14.4MB/s
Download speed from Softlayer, Dallas, TX: 18.5MB/s
Download speed from Linode, Tokyo, JP: 7.86MB/s
Download speed from i3d.net, Rotterdam, NL: 4.76MB/s
Download speed from Leaseweb, Haarlem, NL: 8.51MB/s
Download speed from Softlayer, Singapore: 7.39MB/s
Download speed from Softlayer, Seattle, WA: 28.0MB/s
Download speed from Softlayer, San Jose, CA: 41.5MB/s
Download speed from Softlayer, Washington, DC: 15.3MB/s
I/O speed : 109 MB/s

硬盘IO

dd

root@cal:~# dd if=/dev/zero of=test bs=64k count=16k conv=f​​datasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 11.2227 s, 95.7 MB/s

跑分

一点意外都没有398分。

c​​loudshards_bench title=

然后无聊再测了一次

BYTE UNIX Benchmarks (Version 5.1.2)

   System: cal: GNU/Linux
   OS: GNU/Linux -- 2.6.32-042stab078.22 -- #1 SMP Sat Jun 8 16:43:06 MSK 2013
   Machine: i686 (unknown)
   Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collat​​e="ANSI_X3.4-1968")
   CPU 0: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz (3999.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   08:08:39 up 1:21, 1 user, load average: 0.07, 0.02, 0.00; runlevel 2

-------------------------------------------------- ----------------------
Benchmark Run: Sun Dec 22 2013 08:08:40 - 08:37:22
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 8182626.1 lps (10.0 s, 7 samples)
Double-Precision Whetstone 1895.1 MWIPS (10.1 s, 7 samples)
Execl Throughput 2088.3 lps (29.5 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 206255.2 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 56825.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 555798.3 KBps (30.0 s, 2 samples)
Pipe Throughput 361085.8 lps (10.0 s, 7 samples)
Pipe-based Context Switching 79171.0 lps (10.0 s, 7 samples)
Process Creation 4062.9 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 1977.9 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 288.8 lpm (60.1 s, 2 samples)
System Call Overhead 316663.9 lps (10.0 s, 7 samples)

System Benchmarks Index Values​​ BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 8182626.1 701.2
Double-Precision Whetstone 55.0 1895.1 344.6
Execl Throughput 43.0 2088.3 485.7
File Copy 1024 bufsize 2000 maxblocks 3960.0 206255.2 520.8
File Copy 256 bufsize 500 maxblocks 1655.0 56825.4 343.4
File Copy 4096 bufsize 8000 maxblocks 5800.0 555798.3 958.3
Pipe Throughput 12440.0 361085.8 290.3
Pipe-based Context Switching 4000.0 79171.0 197.9
Process Creation 126.0 4062.9 322.5
Shell Scripts (1 concurrent) 42.4 1977.9 466.5
Shell Scripts (8 concurrent) 6.0 288.8 481.3
System Call Overhead 15000.0 316663.9 211.1
                                                                   ========
System Benchmarks Index Score 401.7

国内Ping

略有丢包的现象,Ping值200左右跟Urpad的洛杉矶差不多,哦LA也是加州的。

c​​loudshards_ping title=

小结

1、可能有人会说这是用钱买罪受,是,我就是闲的蛋疼,怎么着。

2、这样袖珍的VPS用于学习真心不错,倘若我能用好这32MB的VPS,Linux我算是入门了。

3、用于建站和卖SSH,VPN的同学请不要关注这款VPS。