我们接下来看一下怎样使用orabm通过Oracle数据库来测试CPU性能.
1.首先我们先要了解一下orabm的原理使用:
How Orabm Works
Orabm works by running a user-specified number of database transactions in each of a user-specified number of concurrent database sessions.
Orabm通过在用户指定的并发下运行指定数量的事务来测试系统性能.
The transactions are executed by the ORABM_SERVERSIDE_STRESS stored procedure, under the schema ORABM.
事务通过执行orabm用户的ORABM_SERVERSIDE_STRESS过程来实现.
For each concurrent session, ORABM_SERVERSIDE_STRESS runs the number of transactions specified on the orabm command line, and returns the transactions per second (TPS) value for that session during the sampling interval on completion.
对于每个并发session,ORABM_SERVERSIDE_STRESS运行在orabm命令行指定数量的事务.
并返回在完成所有任务的采样间隔内每秒的事务数量.
To ensure that all concurrent sessions are processing transactions during the sampling interval, the TPS value only includes results from the middle 80% of transactions: the first 10% and last 10% are ignored.
为了保证准确性,TPS值只取中间的80%数据,头尾的10%都将被忽略.
The transactions are loosely based on the TPC-C Order-Status and Stock-Level transactions, using a predefined distribution of transactions.
事务是松散的,基于标准的TPC-C测试的订单、库存事务模型,使用预定义的事务分布.
The transaction split, which is based on data returned by the DBMS_RANDOM package, should be:
事务基于DBMS_RANDOM包的返回值进行分割,应该是:
Stock-Level:Order-by-Customer-Name:Order-by-Customer-Id
50% :30% :20%
The string returned by ORABM_SERVERSIDE_STRESS includes the transaction split during the test, to ensure that the transaction distribution is correct, subject to random fluctuations e.g.:
为了确保事务分布的正确性,ORABM_SERVERSIDE_STRESS的输出包含事务分割比例,输出结果具有随机波动,例如:
...sl=4042(50.5%) on=2384(29.8%) oi=1573(19.7%)...
Orabm Command Line
Once you have set up the test tables, data, and indexes, you're ready to run orabm. The following command shows orabm running 20000 transactions in a single session against the Oracle database identified by ORACLE_SID in the UNIX environment:
在成功安装了orabm之后,在UNIX下定义好了ORACLE_SID环境变量之后,我们可以如下运行orabm命令进行测试:
$ orabm 1 20000
This command line runs the same workload against a remote database identified by the Oracle Net alias linxceld1.co.uk from a Windows command box:
以下是在WINDOWS下远程运行方式:
C:\> orabm 1 20000 linxceld1.co.uk
Note: running against a remote database has little (if any), affect on the transaction throughput, because all processing takes place on the DBMS server.
Execution of a single Orabm session should show a single CPU at close to 100% utilization, provided that all table and index data is present in the Oracle block buffer cache and no other workload is running on the database server. On UNIX or Linux, you can use the “top” command to confirm this, or check that no "db file sequential read" event waits are taking place for the Oracle session using info in the V$SESSION_EVENT view - these indicate waits for physical I/O.
如果所有的测试表和相关索引都已经Cache到内存中,系统上没有其他任务运行,那么你可以看到单个Orabm Session会使用将近100%的CPU资源.在Linux或者Unix上,可以使用Top来查看CPU使用情况,或者检察数据库中不存在"db file sequential read"等待事件.
Alternatively, if your Oracle DBMS is running on Linux, you can use the gkrellm performance monitor to show that CPU utilization of a single CPU is at ~100% and no physical I/O is taking place. Gkrellm can be downloaded from:
http://web.wt.net/~billw/gkrellm/gkrellm.html
Here's an example of the command line you would use to run 10000 transactions against a local Oracle database for three iterations. In the first iteration, one session runs, in the second iteration two concurrent sessions run, and in the third iteration, six concurrent sessions run:
以下是一个测试例子,对本地数据库进行三个阶段测试,分别以1,2,6个并发执行10000个事务.
$ orabm 1,2,6 10000
Keep in mind that the specified number of transactions is run in each concurrent session.
注意,这里定义的10000个事务是对每个session来说的.
Note: you should specify sufficient transactions such that the TPS results produced don't fluctuate significantly between runs for a given number of sessions; 100000 is a good value to choose.
Note:你应该定义足够的事务以便TPS结果在不同数量并发下波动尽量小,通常100,000是一个好的选择.
Results Output
Output is appended to a log file orabm.database.log, where database is either the ORACLE_SID or TNS alias that identifies the database where the test was run e.g. orabm.t92.log. For each iteration, the TPS value for each concurrent session appears between begin and end markers. For example, the following shows the contents of the log for two concurrent sessions - in this case the second iteration for the previous command line example - where txn(all) displays the total transaction count, and xn(sam) and t(sam) show the total transactions and time for the middle 80% of transactions for which sampling took place:
输出结果的说明:
txn(all)----代表Total transaction Count,总的事务数量.
xn(sam)-----采样的事务数量
t(sam)------采样事务运行的时间.
---begin sess=2 txn=10000 ORACLE_SID=t92 Fri Nov 8 20:31:48 2002
T92.WORLD txn(all)=10000 xn(sam)=7999 t(sam)=44 tps=182 ...
T92.WORLD txn(all)=10000 xn(sam)=7999 t(sam)=45 tps=178 ...
---end - Fri Nov 8 20:32:46 2002
The total TPS for this iteration is the sum of the TPS for the two concurrent sessions (182+178=360).
对于以上输出,在2个并发下,TPS值为182+178=360
A shell script (orabm_tps.sh) can be used to process output from the log on UNIX and Linux. The script aggregates the TPS values for concurrent sessions in a single iteration into a total TPS value for that iteration. The output based on the log info from the previous command line (3 iterations with 1, then 2, then 6 concurrent sessions) shows:
也可以用shell script(orabm_tps.sh)进行输出日志分析.
$ orabm_tps.sh orabm.t92.log
ORACLE_SID=t92 sess=1 tps=182
ORACLE_SID=t92 sess=2 tps=360
ORACLE_SID=t92 sess=6 tps=364
In this example the server was a 2 CPU model - as a result, 2 concurrent sessions running in orabm are enough to completely utilize all available CPU capacity.
在这个例子中,Server有两个CPU,测试中两个并发足以消耗所有的CPU资源.
Additional sessions should result in the total TPS remaining unchanged, or even falling slightly as the operating system performs context switches to share the overloaded CPU resource between more ready-to-run sessions than available CPUs.
继续增加并发并不会导致TPS值得增加,甚至有可能会下降.
2.看一下我的一个测试结果
$ orabm 1,2,6,10,15,20,25,30 10000
---begin sess=1 txn=10000 ORACLE_SID=hsbill Sun Sep 26 00:51:34 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=89 tps=90 sl=3915(48.9%) on=2481(31%) oi=1603(20%) end=260904-00:53:25 ---end - Sun Sep 26 00:53:25 2004 ---begin sess=2 txn=10000 ORACLE_SID=hsbill Sun Sep 26 00:53:25 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=96 tps=83 sl=3992(49.9%) on=2464(30.8%) oi=1543(19.3%) end=260904-00:55:25 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=104 tps=77 sl=3945(49.3%) on=2404(30.1%) oi=1650(20.6%) end=260904-00:55:34 ---end - Sun Sep 26 00:55:34 2004 ---begin sess=6 txn=10000 ORACLE_SID=hsbill Sun Sep 26 00:55:34 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=189 tps=42 sl=4039(50.5%) on=2332(29.2%) oi=1628(20.4%) end=260904-00:59:32 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=193 tps=41 sl=3999(50%) on=2402(30%) oi=1598(20%) end=260904-00:59:36 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=192 tps=42 sl=3933(49.2%) on=2435(30.4%) oi=1631(20.4%) end=260904-00:59:36 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=198 tps=40 sl=4033(50.4%) on=2358(29.5%) oi=1608(20.1%) end=260904-00:59:38 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=201 tps=40 sl=4027(50.3%) on=2339(29.2%) oi=1633(20.4%) end=260904-00:59:40 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=202 tps=40 sl=3998(50%) on=2454(30.7%) oi=1547(19.3%) end=260904-00:59:42 ---end - Sun Sep 26 00:59:42 2004 ---begin sess=10 txn=10000 ORACLE_SID=hsbill Sun Sep 26 00:59:42 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=277 tps=29 sl=3951(49.4%) on=2446(30.6%) oi=1602(20%) end=260904-01:05:24 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=287 tps=28 sl=3993(49.9%) on=2412(30.2%) oi=1594(19.9%) end=260904-01:05:39 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=287 tps=28 sl=3965(49.6%) on=2390(29.9%) oi=1644(20.6%) end=260904-01:05:43 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=288 tps=28 sl=3944(49.3%) on=2472(30.9%) oi=1583(19.8%) end=260904-01:05:43 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=290 tps=28 sl=4106(51.3%) on=2294(28.7%) oi=1599(20%) end=260904-01:05:44 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=293 tps=27 sl=4040(50.5%) on=2397(30%) oi=1562(19.5%) end=260904-01:05:44 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=292 tps=27 sl=3950(49.4%) on=2438(30.5%) oi=1611(20.1%) end=260904-01:05:46 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=295 tps=27 sl=4006(50.1%) on=2430(30.4%) oi=1563(19.5%) end=260904-01:05:47 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=301 tps=27 sl=4008(50.1%) on=2362(29.5%) oi=1629(20.4%) end=260904-01:05:48 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=301 tps=27 sl=3984(49.8%) on=2363(29.5%) oi=1652(20.7%) end=260904-01:05:49 ---end - Sun Sep 26 01:05:49 2004 ---begin sess=15 txn=10000 ORACLE_SID=hsbill Sun Sep 26 01:05:49 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=398 tps=20 sl=4050(50.6%) on=2379(29.7%) oi=1570(19.6%) end=260904-01:14:14 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=402 tps=20 sl=4024(50.3%) on=2366(29.6%) oi=1609(20.1%) end=260904-01:14:14 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=408 tps=20 sl=4032(50.4%) on=2326(29.1%) oi=1641(20.5%) end=260904-01:14:15 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=408 tps=20 sl=4007(50.1%) on=2355(29.4%) oi=1637(20.5%) end=260904-01:14:15 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=402 tps=20 sl=4071(50.9%) on=2377(29.7%) oi=1551(19.4%) end=260904-01:14:15 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=408 tps=20 sl=4055(50.7%) on=2385(29.8%) oi=1559(19.5%) end=260904-01:14:17 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=415 tps=19 sl=3963(49.5%) on=2424(30.3%) oi=1612(20.2%) end=260904-01:14:22 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=407 tps=20 sl=4061(50.8%) on=2337(29.2%) oi=1601(20%) end=260904-01:14:23 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=416 tps=19 sl=3900(48.8%) on=2404(30.1%) oi=1695(21.2%) end=260904-01:14:25 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=421 tps=19 sl=3942(49.3%) on=2442(30.5%) oi=1615(20.2%) end=260904-01:14:26 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=417 tps=19 sl=3966(49.6%) on=2432(30.4%) oi=1601(20%) end=260904-01:14:26 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=427 tps=19 sl=4039(50.5%) on=2383(29.8%) oi=1577(19.7%) end=260904-01:14:28 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=439 tps=18 sl=3994(49.9%) on=2443(30.5%) oi=1562(19.5%) end=260904-01:14:33 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=450 tps=18 sl=4053(50.7%) on=2427(30.3%) oi=1519(19%) end=260904-01:14:37 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=451 tps=18 sl=4044(50.6%) on=2360(29.5%) oi=1595(19.9%) end=260904-01:14:38 ---end - Sun Sep 26 01:14:38 2004 ---begin sess=20 txn=10000 ORACLE_SID=hsbill Sun Sep 26 01:14:38 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=493 tps=16 sl=4028(50.4%) on=2358(29.5%) oi=1613(20.2%) end=260904-01:24:55 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=510 tps=16 sl=4077(51%) on=2346(29.3%) oi=1576(19.7%) end=260904-01:25:13 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=507 tps=16 sl=4033(50.4%) on=2351(29.4%) oi=1615(20.2%) end=260904-01:25:13 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=508 tps=16 sl=3980(49.8%) on=2383(29.8%) oi=1636(20.5%) end=260904-01:25:14 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=505 tps=16 sl=3998(50%) on=2405(30.1%) oi=1596(20%) end=260904-01:25:14 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=507 tps=16 sl=4048(50.6%) on=2401(30%) oi=1550(19.4%) end=260904-01:25:15 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=511 tps=16 sl=3998(50%) on=2343(29.3%) oi=1658(20.7%) end=260904-01:25:17 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=509 tps=16 sl=4001(50%) on=2360(29.5%) oi=1638(20.5%) end=260904-01:25:17 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=513 tps=16 sl=4048(50.6%) on=2409(30.1%) oi=1542(19.3%) end=260904-01:25:19 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=516 tps=16 sl=3969(49.6%) on=2400(30%) oi=1630(20.4%) end=260904-01:25:21 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=519 tps=15 sl=3960(49.5%) on=2396(30%) oi=1643(20.5%) end=260904-01:25:22 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=529 tps=15 sl=4032(50.4%) on=2377(29.7%) oi=1590(19.9%) end=260904-01:25:26 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=535 tps=15 sl=4080(51%) on=2357(29.5%) oi=1562(19.5%) end=260904-01:25:27 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=526 tps=15 sl=4080(51%) on=2326(29.1%) oi=1593(19.9%) end=260904-01:25:27 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=530 tps=15 sl=4019(50.2%) on=2400(30%) oi=1580(19.8%) end=260904-01:25:28 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=523 tps=15 sl=3945(49.3%) on=2477(31%) oi=1577(19.7%) end=260904-01:25:28 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=532 tps=15 sl=4058(50.7%) on=2382(29.8%) oi=1559(19.5%) end=260904-01:25:30 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=534 tps=15 sl=4029(50.4%) on=2363(29.5%) oi=1607(20.1%) end=260904-01:25:30 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=547 tps=15 sl=4027(50.3%) on=2342(29.3%) oi=1630(20.4%) end=260904-01:25:34 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=563 tps=14 sl=4077(51%) on=2344(29.3%) oi=1578(19.7%) end=260904-01:25:36 ---end - Sun Sep 26 01:25:36 2004 ---begin sess=25 txn=10000 ORACLE_SID=hsbill Sun Sep 26 01:25:36 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=626 tps=13 sl=4011(50.1%) on=2422(30.3%) oi=1566(19.6%) end=260904-01:38:37 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=621 tps=13 sl=3964(49.6%) on=2415(30.2%) oi=1620(20.3%) end=260904-01:38:39 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=631 tps=13 sl=4035(50.4%) on=2401(30%) oi=1563(19.5%) end=260904-01:38:39 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=630 tps=13 sl=4014(50.2%) on=2432(30.4%) oi=1553(19.4%) end=260904-01:38:44 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=631 tps=13 sl=4082(51%) on=2343(29.3%) oi=1574(19.7%) end=260904-01:38:44 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=636 tps=13 sl=3961(49.5%) on=2407(30.1%) oi=1631(20.4%) end=260904-01:38:47 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=638 tps=13 sl=4048(50.6%) on=2352(29.4%) oi=1599(20%) end=260904-01:38:50 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=636 tps=13 sl=3967(49.6%) on=2414(30.2%) oi=1618(20.2%) end=260904-01:38:51 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=632 tps=13 sl=3970(49.6%) on=2405(30.1%) oi=1624(20.3%) end=260904-01:38:51 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=637 tps=13 sl=3972(49.7%) on=2398(30%) oi=1629(20.4%) end=260904-01:38:51 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=637 tps=13 sl=4028(50.4%) on=2406(30.1%) oi=1565(19.6%) end=260904-01:38:52 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=634 tps=13 sl=4015(50.2%) on=2383(29.8%) oi=1601(20%) end=260904-01:38:52 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=638 tps=13 sl=3983(49.8%) on=2502(31.3%) oi=1514(18.9%) end=260904-01:38:53 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=641 tps=12 sl=3947(49.3%) on=2479(31%) oi=1573(19.7%) end=260904-01:38:54 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=647 tps=12 sl=3956(49.5%) on=2426(30.3%) oi=1617(20.2%) end=260904-01:38:54 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=636 tps=13 sl=3958(49.5%) on=2481(31%) oi=1560(19.5%) end=260904-01:38:54 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=644 tps=12 sl=3918(49%) on=2478(31%) oi=1603(20%) end=260904-01:38:56 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=646 tps=12 sl=4027(50.3%) on=2471(30.9%) oi=1501(18.8%) end=260904-01:38:57 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=644 tps=12 sl=4026(50.3%) on=2426(30.3%) oi=1547(19.3%) end=260904-01:38:57 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=645 tps=12 sl=4031(50.4%) on=2359(29.5%) oi=1609(20.1%) end=260904-01:38:58 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=647 tps=12 sl=4054(50.7%) on=2330(29.1%) oi=1615(20.2%) end=260904-01:38:58 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=651 tps=12 sl=3960(49.5%) on=2405(30.1%) oi=1634(20.4%) end=260904-01:38:59 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=660 tps=12 sl=4027(50.3%) on=2381(29.8%) oi=1591(19.9%) end=260904-01:39:00 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=665 tps=12 sl=3942(49.3%) on=2452(30.7%) oi=1605(20.1%) end=260904-01:39:01 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=717 tps=11 sl=4019(50.2%) on=2344(29.3%) oi=1636(20.5%) end=260904-01:39:26 ---end - Sun Sep 26 01:39:26 2004 ---begin sess=30 txn=10000 ORACLE_SID=hsbill Sun Sep 26 01:48:31 2004 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=739 tps=11 sl=3994(49.9%) on=2414(30.2%) oi=1591(19.9%) end=260904-02:04:02 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=741 tps=11 sl=3951(49.4%) on=2423(30.3%) oi=1625(20.3%) end=260904-02:04:02 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=745 tps=11 sl=4043(50.5%) on=2357(29.5%) oi=1599(20%) end=260904-02:04:05 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=751 tps=11 sl=3993(49.9%) on=2449(30.6%) oi=1557(19.5%) end=260904-02:04:07 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=749 tps=11 sl=4018(50.2%) on=2405(30.1%) oi=1576(19.7%) end=260904-02:04:10 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=750 tps=11 sl=3994(49.9%) on=2394(29.9%) oi=1611(20.1%) end=260904-02:04:11 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=751 tps=11 sl=4066(50.8%) on=2369(29.6%) oi=1564(19.6%) end=260904-02:04:11 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=752 tps=11 sl=3973(49.7%) on=2374(29.7%) oi=1652(20.7%) end=260904-02:04:12 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=759 tps=11 sl=3887(48.6%) on=2515(31.4%) oi=1597(20%) end=260904-02:04:13 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=754 tps=11 sl=3974(49.7%) on=2439(30.5%) oi=1586(19.8%) end=260904-02:04:13 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=755 tps=11 sl=4000(50%) on=2336(29.2%) oi=1663(20.8%) end=260904-02:04:13 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=757 tps=11 sl=3931(49.1%) on=2442(30.5%) oi=1626(20.3%) end=260904-02:04:14 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=758 tps=11 sl=3989(49.9%) on=2401(30%) oi=1609(20.1%) end=260904-02:04:14 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=757 tps=11 sl=3974(49.7%) on=2403(30%) oi=1622(20.3%) end=260904-02:04:15 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=760 tps=11 sl=4049(50.6%) on=2375(29.7%) oi=1575(19.7%) end=260904-02:04:15 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=761 tps=11 sl=3870(48.4%) on=2416(30.2%) oi=1713(21.4%) end=260904-02:04:17 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=758 tps=11 sl=4036(50.5%) on=2368(29.6%) oi=1595(19.9%) end=260904-02:04:17 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=761 tps=11 sl=3966(49.6%) on=2445(30.6%) oi=1588(19.9%) end=260904-02:04:18 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=761 tps=11 sl=3969(49.6%) on=2413(30.2%) oi=1617(20.2%) end=260904-02:04:18 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=761 tps=11 sl=3999(50%) on=2417(30.2%) oi=1583(19.8%) end=260904-02:04:19 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=755 tps=11 sl=4060(50.8%) on=2366(29.6%) oi=1573(19.7%) end=260904-02:04:20 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=774 tps=10 sl=4041(50.5%) on=2367(29.6%) oi=1591(19.9%) end=260904-02:04:21 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=763 tps=10 sl=4087(51.1%) on=2343(29.3%) oi=1569(19.6%) end=260904-02:04:22 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=769 tps=10 sl=4021(50.3%) on=2407(30.1%) oi=1571(19.6%) end=260904-02:04:23 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=773 tps=10 sl=4019(50.2%) on=2413(30.2%) oi=1567(19.6%) end=260904-02:04:23 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=763 tps=10 sl=4004(50.1%) on=2352(29.4%) oi=1643(20.5%) end=260904-02:04:24 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=770 tps=10 sl=4063(50.8%) on=2354(29.4%) oi=1582(19.8%) end=260904-02:04:24 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=779 tps=10 sl=4019(50.2%) on=2399(30%) oi=1581(19.8%) end=260904-02:04:24 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=784 tps=10 sl=4032(50.4%) on=2374(29.7%) oi=1593(19.9%) end=260904-02:04:26 HSBILL.HURRAY.COM.CN txn(all)=10000 xn(sam)=7999 t(sam)=809 tps=10 sl=3962(49.5%) on=2458(30.7%) oi=1579(19.7%) end=260904-02:04:28 ---end - Sun Sep 26 02:04:28 2004
|
3.使用脚本格式化输出
$ orabm_tps.sh ./solaris/bm.hsbill.log ORACLE_SID=hsbill sess=1 tps=90 ORACLE_SID=hsbill sess=2 tps=160 ORACLE_SID=hsbill sess=6 tps=245 ORACLE_SID=hsbill sess=10 tps=276 ORACLE_SID=hsbill sess=15 tps=289 ORACLE_SID=hsbill sess=20 tps=309 ORACLE_SID=hsbill sess=25 tps=313 ORACLE_SID=hsbill sess=30 tps=321
|
这里我们可以看出,这台服务器的CPU性能tps值应该在310左右.
相关推荐
13.3.1 Packet Tracer - Use ICMP to Test and Correct Network Connectivity.pka
Use a version of BurnInTest prior to 5.2 for compatibility with W98 and ME. Windows 95 and Windows NT ========================= Windows 95 and NT are not supported in BurnInTest version 4.0 and above...
3. **检查sysfs文件系统是否正确挂载**:确认sysfs文件系统已挂载至`/sys`下,并关注`/sys/devices/system/cpu/cpu0/`中的cpufreq子目录及其包含的信息(section 4.2)。 4. **找到并加载相应的内核模块**:查找所...
当使用net use map 网络共享时发生 System error 1272, 如何解决。
We'll look at how to use the unit test framework called Ceedling to help us do this. In the first example, we'll see how to create tests and write the code to make them pass. In the second example we ...
You can use this tool to generate test scripts for continuous unit testing, integration testing, and regression testing. Software defects are common and cause economic losses from time to time. ...
《基于SystemView的使用图符库及说明》 SystemView是一款强大的实时数据采集和分析工具,广泛应用于嵌入式系统开发、调试以及性能优化。它提供了丰富的图符库,能够帮助开发者直观地观察系统内部的工作状态,从而...
Business Use Cases versus System Use Cases.mht
The file system layout of Linux systems and where to find programs, configurations, and documentation. The basic Linux commands you'll use most often. Creating, renaming, moving, and deleting ...
standard Unified Modeling Language (UML 2.0) to reuse software requirements and architectures rather than starting the development of each new system from scratch. Through real-world case studies, the...
描述中的"use callprogram sys to call other system"指出,该服务器可能需要通过调用程序系统(callprogram sys)来与外部系统交互。这通常涉及到跨进程通信(IPC)或远程过程调用(RPC)。在实际应用中,可能使用...
recording, modification and manual coding with use of different approaches), learn test creation using different methods(each of them being suitable for a specific use-case), learn how to distinguish...
Learn to use Test Studio to design and automate tests valued with their functionality and maintainability Run manual and automated test suites and view reports on them Filled with practical examples, ...
The primary logic is highly optimized using the new C# Job System and Burst Compiler, allowing you to use more of your performance budget for other content. AI traffic logic is handled by a single ...
This book is intended for Python developers who want to use the principles of test-driven development (TDD) to create efficient and robust applications. In order to get the best out of this book, you ...
How to Use Objects Code and Concepts Holger Gast
PCI Express System Architecture provides an in-depth description and comprehensive reference to the PCI Express standard. The book contains information needed for design, verification, and test, as ...
this article introduces how to use awk in linux