计算机测量单位的换算
- 计算机测量单位的换算
计算机测量单位的换算
在本练习中,您要将性能指标从一个单位换算成另一个单位。
成果
您要学会性能指标单位的换算。
以 student
用户登录 workstation
虚拟机,密码为 student
。
在 workstation
上运行 lab intro-measure start 命令,以设置引导式练习环境。
[student@workstation ~]$ lab intro-measure start
-
将 100 Mib/s(mebibits/秒)换算成 GiB/h(gibibytes/小时)。
100 Mib/s × 60 (sec in 1 min) × 60 (min in 1 hour) × 220 (bits in 1 Mib) ÷ 8 (bits in 1 Byte) ÷ 230 (bits in 1 GiB)
[student@workstation ~]$ bc scale=8 100*60*60*2^20/8/2^30 43.94531250 Ctrl+D
100 Mib/s 等于 43.95 GiB/h。
-
将 43 KiB/sec(kibibytes/秒)换算成 MiB/min(gigabyte/分钟)。
43 KiB/sec ÷ 1024 (KiB in 1 MiB) × 60 (sec in 1 min)
[student@workstation ~]$ bc scale=8 43/1024*60 2.51953080 Ctrl+D
43 KiB/sec 等于 2.52 MiB/min。
-
143 tps(每秒事务处理量)相当于每天处理多少事务?
143 trans/sec × 60 (sec in 1 min) × 60 (min in 1 hr) × 24 (hr in 1 day) ÷ 1000000 (transactions in 1 million transaction)
[student@workstation ~]$ bc scale=8 143*60*60*24/1000000 12.35520000 Ctrl+D
143 tps 相当于 每天 处理 1,236 万个 事务。
-
两周代表 14 天。32738 microfortnights 等于多少小时?
32738 microfortnights ÷ 1000000 (microfortnights in 1 fortnight) × 14 (days in 1 fortnight) × 24 (hr in 1 day)
[student@workstation ~]$ bc scale=8 32738/1000000*14*24 10.99996800 Ctrl+D
32738 microfortnights 等于 11 小时。
-
450 Kbps(KB/秒)等于多少 GiB/day(gibibytes/天)?
450 Kbps × 3600 (sec in 1 hr) × 24 (hr in 1 day) × 10 3 (bits in 1 Kilobit) ÷ 8 (bits in 1 Byte) ÷ 230 (bytes in 1 GiB)
[student@workstation ~]$ bc scale=8 450*3600*24*10^3/8/2^30 4.52622771 Ctrl+D
450 Kbps 等于 4.52 GiB/day。
完成
在 workstation
上运行 lab intro-measure finish 命令以完成本练习。
[student@workstation ~]$ lab intro-measure finish
本引导式练习到此结束。
ls -l