分类目录归档:运维

WEBNX BF DEAL BENCHMARK

这是webnx黑五的一款特价服务器,原价69USD/M,升级到ECC内存需要加8USD/M


----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) W-1250 CPU @ 3.30GHz
Number of cores : 12
CPU frequency : 799.986 MHz
Total size of Disk : 1127.8 GB (2.2 GB Used)
Total amount of Mem : 31726 MB (198 MB Used)
Total amount of Swap : 1906 MB (0 MB Used)
System uptime : 0 days, 2 hour 15 min
Load average : 0.00, 0.00, 0.00
OS : Ubuntu 20.04.1 LTS
Arch : x86_64 (64 Bit)
Kernel : 5.4.0-56-generic
----------------------------------------------------------------------
I/O speed(1st run) : 934 MB/s
I/O speed(2nd run) : 948 MB/s
I/O speed(3rd run) : 961 MB/s
Average I/O speed : 947.7 MB/s
----------------------------------------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 77.4MB/s
Linode, Tokyo2, JP 139.162.65.37 18.3MB/s
Linode, Singapore, SG 139.162.23.4 12.2MB/s
Linode, London, UK 176.58.107.39 17.1MB/s
Linode, Frankfurt, DE 139.162.130.8 15.9MB/s
Linode, Fremont, CA 50.116.14.9 95.2MB/s
Softlayer, Dallas, TX 173.192.68.18 31.9MB/s
Softlayer, Seattle, WA 67.228.112.250 35.4MB/s
Softlayer, Frankfurt, DE 159.122.69.4 9.11MB/s
Softlayer, Singapore, SG 119.81.28.170 8.08MB/s
Softlayer, HongKong, CN 119.81.130.170 9.92MB/s
----------------------------------------------------------------------


[email protected]:~# curl -s wget.racing/nench.sh | bash
-------------------------------------------------
nench.sh v2019.07.20 -- https://git.io/nench.sh
benchmark timestamp: 2020-12-04 16:02:07 UTC
-------------------------------------------------

Processor: Intel(R) Xeon(R) W-1250 CPU @ 3.30GHz
CPU cores: 12
Frequency: 1538.477 MHz
RAM: 30Gi
Swap: 1.9Gi
Kernel: Linux 5.4.0-56-generic x86_64

Disks:
nvme0n1 1.1T SSD

CPU: SHA256-hashing 500 MB
1.822 seconds
CPU: bzip2-compressing 500 MB
2.790 seconds
CPU: AES-encrypting 500 MB
0.538 seconds

ioping: seek rate
min/avg/max/mdev = 24.7 us / 91.2 us / 1.69 ms / 16.5 us
ioping: sequential read speed
generated 23.7 k requests in 5.00 s, 5.80 GiB, 4.75 k iops, 1.16 GiB/s

dd: sequential write speed
1st run: 890.73 MiB/s
2nd run: 886.92 MiB/s
3rd run: 899.31 MiB/s
average: 892.32 MiB/s

No IPv4 connectivity detected

No IPv6 connectivity detected
-------------------------------------------------


[email protected]:~# smartctl --all /dev/nvme0n1p1
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-56-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: INTEL SSDPE2ME012T4
Serial Number: *
Firmware Version: *
PCI Vendor/Subsystem ID: *
IEEE OUI Identifier: *
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,200,243,695,616 [1.20 TB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Fri Dec 4 09:06:13 2020 MST
Firmware Updates (0x02): 1 Slot
Optional Admin Commands (0x0006): Format Frmw_DL
Optional NVM Commands (0x0006): Wr_Unc DS_Mngmt
Maximum Data Transfer Size: 32 Pages

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 25.00W - - 0 0 0 0 0 0

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 2
1 - 512 8 2
2 - 512 16 2
3 - 4096 0 0
4 - 4096 8 0
5 - 4096 64 0
6 - 4096 128 0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 31 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 14,170 [7.25 GB]
Data Units Written: 27,832 [14.2 GB]
Host Read Commands: 126,481
Host Write Commands: 244,954
Controller Busy Time: 0
Power Cycles: 9
Power On Hours: 6
Unsafe Shutdowns: 4
Media and Data Integrity Errors: 0
Error Information Log Entries: 0

Error Information (NVMe Log 0x01, max 64 entries)
No Errors Logged

各方面都一如既往的好,还给我整了一块全新的NVME SSE,快乐!

psychz blackfriday special plan benchmark

这是一款psychz blackfriday的特价服务器,24USD一个月,升级到/29加8USD,也就是32USD一个月,下面来看看跑分


----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz
Number of cores : 8
CPU frequency : 1600.516 MHz
Total size of Disk : 202.4 GB (1.2 GB Used)
Total amount of Mem : 16014 MB (157 MB Used)
Total amount of Swap : 32707 MB (0 MB Used)
System uptime : 0 days, 4 hour 30 min
Load average : 0.00, 0.01, 0.00
OS : Debian GNU/Linux 10
Arch : x86_64 (64 Bit)
Kernel : 4.19.0-9-amd64
----------------------------------------------------------------------
I/O speed(1st run) : 216 MB/s
I/O speed(2nd run) : 221 MB/s
I/O speed(3rd run) : 220 MB/s
Average I/O speed : 219.0 MB/s
----------------------------------------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 91.2MB/s
Linode, Tokyo2, JP 139.162.65.37 5.03MB/s
Linode, Singapore, SG 139.162.23.4 4.18MB/s
Linode, London, UK 176.58.107.39 5.87MB/s
Linode, Frankfurt, DE 139.162.130.8 3.59MB/s
Linode, Fremont, CA 50.116.14.9 53.6MB/s
Softlayer, Dallas, TX 173.192.68.18 31.3MB/s
Softlayer, Seattle, WA 67.228.112.250 45.9MB/s
Softlayer, Frankfurt, DE 159.122.69.4 5.31MB/s
Softlayer, Singapore, SG 119.81.28.170 6.77MB/s
Softlayer, HongKong, CN 119.81.130.170 5.43MB/s
----------------------------------------------------------------------


[email protected]:~# smartctl --all /dev/sda
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-9-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: Samsung SSD 850 PRO 256GB
Serial Number: *
LU WWN Device Id: *
Firmware Version: EXM02B6Q
User Capacity: 256,060,514,304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Sun Nov 29 01:21:24 2020 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x53) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 136) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
9 Power_On_Hours 0x0032 087 087 000 Old_age Always - 63276
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 42
177 Wear_Leveling_Count 0x0013 091 091 000 Pre-fail Always - 509
179 Used_Rsvd_Blk_Cnt_Tot 0x0013 100 100 010 Pre-fail Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 010 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 010 Old_age Always - 0
183 Runtime_Bad_Block 0x0013 100 100 010 Pre-fail Always - 0
187 Uncorrectable_Error_Cnt 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0032 079 047 000 Old_age Always - 21
195 ECC_Error_Rate 0x001a 200 200 000 Old_age Always - 0
199 CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0
235 POR_Recovery_Count 0x0012 099 099 000 Old_age Always - 35
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 91222567855

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

网络感觉很一般。SSD是三星的850PRO,但是通电时间已经达到了6万小时了。

使用dropbox同步xshell的会话

2017年写过这个博客:https://www.thincliff.com/%E4%BD%BF%E7%94%A8freefilesync%E5%92%8Cdropbox%E5%90%8C%E6%AD%A5%E5%BA%94%E7%94%A8%E6%95%B0%E6%8D%AE/

其实有个更简单的方法,就是在xshell的工具->选项->常规 中将会话目录更改为dropbox中的目录。测试了一下没什么问题,密码是不能同步的,应该是xshell的安全机制,其实同步密码也是非常不安全的,可以使用key来ssh登录服务器。

后来虽然发现了electerm这个牛逼的软件,但是xshell 5用习惯了。希望electerm能继续更新优化。

参考资料:
https://www.liudon.org/1244.html

hetzner cloud 静态ip设置

auto eth0
iface eth0 inet static
address
netmask 255.255.255.255
gateway 172.31.1.1
pointopoint 172.31.1.1
dns-nameservers 213.133.98.98 213.133.99.99 213.133.100.100

iface eth0 inet6 static
address
netmask 64
gateway fe80::1

reference:
https://docs.hetzner.com/cloud/servers/static-configuration/

webnx dedicated server benchmark 2

这是一款US$99的套餐,主板是永擎W480D4U

[[email protected] ~]# bash bench.sh
----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) W-1270 CPU @ 3.40GHz
Number of cores : 16
CPU frequency : 800.000 MHz
Total size of Disk : 1177.6 GB (1.7 GB Used)
Total amount of Mem : 63875 MB (618 MB Used)
Total amount of Swap : 32063 MB (0 MB Used)
System uptime : 0 days, 0 hour 19 min
Load average : 0.02, 0.11, 0.10
OS : CentOS 7.8.2003
Arch : x86_64 (64 Bit)
Kernel : 3.10.0-1127.el7.x86_64
----------------------------------------------------------------------
I/O speed(1st run) : 836 MB/s
I/O speed(2nd run) : 875 MB/s
I/O speed(3rd run) : 878 MB/s
Average I/O speed : 863.0 MB/s
----------------------------------------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 98.2MB/s
Linode, Tokyo2, JP 139.162.65.37 20.7MB/s
Linode, Singapore, SG 139.162.23.4 12.3MB/s
Linode, London, UK 176.58.107.39 19.6MB/s
Linode, Frankfurt, DE 139.162.130.8 16.3MB/s
Linode, Fremont, CA 50.116.14.9 90.5MB/s
Softlayer, Dallas, TX 173.192.68.18 45.8MB/s
Softlayer, Seattle, WA 67.228.112.250 45.1MB/s
Softlayer, Frankfurt, DE 159.122.69.4 5.71MB/s
Softlayer, Singapore, SG 119.81.28.170 8.78MB/s
Softlayer, HongKong, CN 119.81.130.170 10.0MB/s
----------------------------------------------------------------------

[[email protected] ~]# curl -s wget.racing/nench.sh | bash
-------------------------------------------------
nench.sh v2019.07.20 -- https://git.io/nench.sh
benchmark timestamp: 2020-10-22 09:15:20 UTC
-------------------------------------------------

Processor: Intel(R) Xeon(R) W-1270 CPU @ 3.40GHz
CPU cores: 16
Frequency: 800.000 MHz
RAM: 62G
Swap: 31G
Kernel: Linux 3.10.0-1127.el7.x86_64 x86_64

Disks:
nvme0n1 1.1T SSD

CPU: SHA256-hashing 500 MB
1.037 seconds
CPU: bzip2-compressing 500 MB
CPU: AES-encrypting 500 MB
0.558 seconds

ioping: seek rate
min/avg/max/mdev = 24.7 us / 92.6 us / 3.04 ms / 38.1 us
ioping: sequential read speed
generated 13.9 k requests in 5.00 s, 3.39 GiB, 2.78 k iops, 694.4 MiB/s

dd: sequential write speed
1st run: 776.29 MiB/s
2nd run: 823.02 MiB/s
3rd run: 822.07 MiB/s
average: 807.13 MiB/s

IPv4 speedtests
your IPv4: 216.18.208.xxxx

Cachefly CDN: 98.35 MiB/s
Leaseweb (NL): 17.43 MiB/s
Softlayer DAL (US): 41.25 MiB/s
Online.net (FR): 17.72 MiB/s
OVH BHS (CA): 26.84 MiB/s

No IPv6 connectivity detected
-------------------------------------------------

[[email protected] ~]# smartctl --all /dev/nvme0n1p1
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1127.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: INTEL SSDPE2ME012T4
Serial Number: CVMD7392006A1P2WGN
Firmware Version: 8DV10171
PCI Vendor/Subsystem ID: 0x8086
IEEE OUI Identifier: 0x5cd2e4
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,200,243,695,616 [1.20 TB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Thu Oct 22 03:17:00 2020 MDT
Firmware Updates (0x02): 1 Slot
Optional Admin Commands (0x0006): Format Frmw_DL
Optional NVM Commands (0x0006): Wr_Unc DS_Mngmt
Maximum Data Transfer Size: 32 Pages

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 25.00W - - 0 0 0 0 0 0

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 - 512 0 2
1 - 512 8 2
2 - 512 16 2
3 - 4096 0 0
4 - 4096 8 0
5 - 4096 64 0
6 - 4096 128 0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 26 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 1%
Data Units Read: 66,027,611 [33.8 TB]
Data Units Written: 158,014,789 [80.9 TB]
Host Read Commands: 2,511,863,862
Host Write Commands: 4,072,213,574
Controller Busy Time: 240
Power Cycles: 26
Power On Hours: 16,086
Unsafe Shutdowns: 20
Media and Data Integrity Errors: 0
Error Information Log Entries: 0

Error Information (NVMe Log 0x01, max 64 entries)
No Errors Logged

NVME-SSD的通电时间16,086小时,感觉比较差,凑合着用吧,感觉运气不太好

天下武功唯快不破–使用流量中转技术提高网速

最近学会了nat小鸡透过haproxy中转流量,网速提高了不少。这个技术实在是牛逼,这些数据中心的QOS比家宽不知道高到哪里去了,用起来实在是爽,哈哈哈!而且nat小鸡一般卖的很便宜,30块钱一个月也就一杯喜茶的钱。以后搬家买房都不必过多考虑宽带运营商的问题了,中转一下就OK了。前几天还傻傻地办了一条电信的100M,花了1000多,实在是傻。其实年初的时候我已经会通过nginx中转流量了,但是当时用的是阿里云。阿里云的流量有点贵。但是nat小鸡实在是便宜。

除了上面提到的haproxy和nginx,还可以用iptables中转流量。