本帖最后由 zxxx 于 2019-12-16 08:33 编辑
NVMe 机器信息
单核 E5-2690 v2 @ 3.00 GHz
RAM 996 MB
SWAP 127 MB
硬盘 16 GB
流量 5T
续费 15刀
- root@server:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 488M 0 488M 0% /dev
- tmpfs 100M 12M 88M 12% /run
- /dev/vda1 16G 948M 15G 6% /
- tmpfs 499M 0 499M 0% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 499M 0 499M 0% /sys/fs/cgroup
- tmpfs 100M 0 100M 0% /run/user/0
- root@server:~# free -h
- total used free shared buff/cache available
- Mem: 996M 33M 744M 11M 218M 818M
- Swap: 127M 0B 127M
- root@server:~# cat /proc/cpuinfo
- processor : 0
- vendor_id : GenuineIntel
- cpu family : 6
- model : 62
- model name : Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
- stepping : 4
- microcode : 0x1
- cpu MHz : 2999.998
- cache size : 16384 KB
- physical id : 0
- siblings : 1
- core id : 0
- cpu cores : 1
- 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 mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm ssbd ibrs ibpb stibp kaiser fsgsbase tsc_adjust smep erms xsaveopt arat
- bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
- bogomips : 5999.99
- clflush size : 64
- cache_alignment : 64
- address sizes : 46 bits physical, 48 bits virtual
- power management:
复制代码
存储机器信息
单核 E5-2690 v2 @ 3.00 GHz
RAM 492 MB
SWAP 511 MB
硬盘 246 GB
流量 1T
续费 15刀
- root@server:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 236M 0 236M 0% /dev
- tmpfs 50M 6.9M 43M 14% /run
- /dev/vda1 246G 953M 245G 1% /
- tmpfs 247M 0 247M 0% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 247M 0 247M 0% /sys/fs/cgroup
- tmpfs 50M 0 50M 0% /run/user/0
- root@server:~# free -h
- total used free shared buff/cache available
- Mem: 492M 34M 243M 6.8M 214M 438M
- Swap: 511M 0B 511M
- root@server:~# cat /proc/cpuinfo
- processor : 0
- vendor_id : GenuineIntel
- cpu family : 6
- model : 62
- model name : Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
- stepping : 4
- microcode : 0x1
- cpu MHz : 2999.998
- cache size : 16384 KB
- physical id : 0
- siblings : 1
- core id : 0
- cpu cores : 1
- 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 mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm ssbd ibrs ibpb stibp kaiser fsgsbase tsc_adjust smep erms xsaveopt arat
- bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
- bogomips : 5999.99
- clflush size : 64
- cache_alignment : 64
- address sizes : 46 bits physical, 48 bits virtual
- power management:
复制代码
配置存储机器作为 NFS 服务器
内网IP 10.10.1.2
- apt install nfs-kernel-server && \
- mkdir /nfs && \
- cat << EOF >> /etc/exports
- /nfs 10.10.1.1(rw,no_root_squash,no_subtree_check,sync,fsid=1)
- EOF
- exportfs -ra && \
- systemctl restart nfs-server.service
复制代码
配置 NVMe 机器作为 NFS 客户机
内网IP 10.10.1.1
- apt install nfs-common && \
- mkdir /nfs
- mount -t nfs 10.10.1.2:/nfs /nfs
复制代码
测试读写速度
- root@server:~# time dd if=/dev/zero of=/nfs/128MB.bin bs=128k count=1024
- 134217728 bytes (134 MB, 128 MiB) copied, 0.505629 s, 265 MB/s
- root@server:~# time dd if=/nfs/128MB.bin of=/dev/null bs=128k count=1024
- 134217728 bytes (134 MB, 128 MiB) copied, 0.157881 s, 850 MB/s
复制代码
写入速度 265 MB/s
读取速度 850 MB/s
开机自动挂载
- cat << "EOF" >> /etc/fstab
- 10.10.1.2:/nfs /nfs nfs defaults 0 0
- EOF
复制代码
|