10. 性能
本节应概述 DSA 的预期性能. 为了对 DSA 的速度和吞吐量有一个感性认识, 我们对若干操作进行计时. 请注意, 所有操作都应能在单个 DSA 内解析. 链式操作 (chaining) 和引用 (referral) 不在评估范围内, 不过应当可以大致推断出分布式操作的速度.
i. The tests should be made against an organisational database of
20000 entries. Some tests are against subsets of this data, and
so the database should be set up according to the following
instructions.
创建一个组织 DSA, 在组织节点之下包含 20000 个条目. 将这批数据细分为若干组织单元, 其中一个应包含 1000 个条目, 另一个应包含 100 个条目, 第三个应仅包含 10 个条目. 这些条目应互不相同, 并应使用以下属性创建:
(a) Common Name
(b) Surname
(c) Telephone number
(d) Postal Address (of 100 characters)
(e) Object class
ii. In all the tests, two timings should be taken. In order to
normalise the test results as much as possible, it is suggested
that these tests be undertaken on an otherwise lightly loaded
machine.
(a) A typical "cold start" reading should be given. In this
case the system will not have the advantage of any benefits
that derive from operating system paging, or caching.
(b) A best possible figure should be given, which indicates the
upper limit of DSA performance.
iii. The timings should relate to the default set-up, and should be
entered in Table 2. If significant performance gains can be made
by use of configuration options, such as building extra indexes
to support searches, measures of the improved performance may
also be given, and should be entered in Table 3.
Attention should be also drawn to any optimisations, heuristic or
otherwise, which are not evidenced in the following tests.
iv. Please note that the tests should be made using a DUA and DSA
with full 7-layer stacks, rather than some lightweight protocol.
10.1 各种操作的速度
下面描述各项测试, 每项操作一个小节. 结果应填入表 2 (如果也测量了非默认配置, 则还应填入表 3).
10.1.1 Bind
DUA 绑定到目录所需的时间. 该时间应包括 DUA 进程在能够查询目录之前所需的全部初始化时间: 例如, 读取定制文件 (tailor files), 模式信息等. 给出以下每个认证级别的绑定时间. 如果该实现不支持某个特定认证级别, 请注明 "n/a".
63. Anonymous
64. Simple
65. Simple protected
66. Strong
10.1.2 List
给出列出一组组织单元同级条目 (sibling entries) 所需的时间.
67. 10 entries
68. 1000 entries
10.1.3 Search
在本节中, 应对 DSA 执行两组搜索操作.
i. A single level search of 100 entries within an organisational
unit.
ii. An organisation subtree search, on the subtree of 20000 entries.
应尝试以下搜索. 除非另有说明, 搜索过滤器中的 "XXX" 或 "YYY" 部分应选择为返回单个结果. 除非另有说明, 结果应返回该条目的所有属性.
69. Exact match for a surname:
surname=XXX
70. Leading substring match for a common name:
commonName=XXX*
71. Any substring match for a common name:
commonName=*XXX*
72. Trailing substring match for a common name:
commonName=*XXX
73. Approximate match for a common name:
commonName"=XXX
74. More complex filter, searching by object class and two other
attribute types:
objectClass=person AND
(commonName=XXX* OR telephoneNumber=*YYY)
75. Search returning all entries (i.e., 100 entries in the single
level search, and all 20000 entries in the subtree search:
objectClass=*
在这种情况下, 结果集中不应返回任何属性值.
10.1.4 Read
76. A single read operation, returning all attributes.
10.1.5 添加条目
77. Add an entry beneath an entry which has:
(a) 0 children
(b) 10 children
(c) 1000 children
10.1.6 修改条目
修改某个条目的一个属性值 (非 RDN 值), 该条目具有
1. 10 siblings
2. 1000 siblings
78. Modify an entry
(a) Add description attribute
(b) Remove description attribute
10.1.7 修改 RDN
修改某个条目的 RDN 值, 该条目具有以下数量的同级条目.
79. Modify RDN
(a) 10 siblings
(b) 1000 siblings
10.1.8 查询速率
由于单次读取所需的时间通常可以忽略不计, 以下读取列表和读取集合应能更清楚地表明查询速率.
80. A list to return 100 entries for persons, and then a read of each
entry returning all attribute values.
10.2 结果
刚才所述测试的结果应填入文档末尾的表 2 (以及可选的表 3).
10.3 基准测试所用的环境
Date of test.........................................................
Name of tester ......................................................
The results will be directly correlated to the test set-up used, and
in particular, the hardware. Please answer the following questions
to describe the test environment:
(a) Processor (make and model) ..................................
(b) Processor speed (MIPS) ......................................
(c) Primary memory available ....................................
(d) If disk-based DSA, disk I/O interface and disk speed ........
(e) O/S version .................................................
(f) Network type and bandwidth (e.g., 10 Mbit Ethernet) .........
(g) Protocols in transport layer and below (e.g., TP 0, RFC1006,
TCP/IP) .....................................................
(h) How/where timings obtained?
o C procedural interface ..................................
o DUA shell (e.g., Quipu's DISH) ..........................
+-------------------------------------------------+
| Section || Points |
+--------------------------------||---------------+
| No.||Description |Maximum|Scored |
+----||--------------------------|-------|--------+
| || | | |
| 2||General Information | 20 | |
+----||--------------------------|-------|--------+
| || | | |
| 3||Conformance to OSI | 35 | |
+----||--------------------------|-------|--------+
| || | | | |
| 4||Other protocols | 5 | |
+----||--------------------------|-------|--------+
| || | | | |
| 5||Extensions| Schema | 16 | |
+----|| |---------------|-------|--------+
| || | | | |
| ||to the |Replication | 10 | |
+----|| |---------------|-------|--------+
| || | | | |
| ||1988 |Access Control | 15 | |
+----|| |---------------|-------|--------+
| || | | | |
| ||standard |Miscellaneous | 5 | |
+----||--------------------------|-------|--------+
| ||Miscellaneous | | |
| 6||characteristics | 15 | |
+----||--------------------------|-------|--------+
| || | | |
| 7||Management tools | 10 | |
+----||--------------------------|-------|--------+
| || | | |
| 8||Operational use | 10 | |
+----||--------------------------|-------|--------+
| || | | |
| 9||Interoperability | 10 | |
+----||--------------------------|-------|--------+
| || | see | |
| 10||Performance |table 2| |
+-------------------------------------------------+
Table 1: DSA Metrics
+------------------------------------------------------+
| Operation || Cold DSA || Optimum |
| || || Performance |
+-------------------||---------------||----------------+
| Bind || || |
| --Anonymous ||.............. || .............. |
| --Simple ||.............. || .............. |
| --Simple Prot ||.............. || .............. |
| --Strong ||.............. || .............. |
+-------------------||---------------||----------------+
| List || || |
| -- 10 entries ||.............. || .............. |
| -- 1000 entries||.............. || .............. |
+-------------------||---------------||----------------+
| Search |single|subtree |single|subtree |
| |level | |level | |
| |------|--------|------|----------|
| -- exact |.... |...... |..... | ...... |
| -- leading sub |.... |...... |..... | ...... |
| -- any sub |.... |...... |..... | ...... |
| -- trailing sub |.... |...... |..... | ...... |
| -- approx |.... |...... |..... | ...... |
| -- complex |.... |...... |..... | ...... |
| -- return all |.... |...... |..... | ...... |
+--------------------|------|--------|------|----------|
| Read ||.............. || .............. |
+-------------------||---------------||----------------+
| Add || || |
| 0 siblings ||.............. || .............. |
| 10 siblings ||.............. || .............. |
| 1000 siblings ||.............. || .............. |
+-------------------||---------------||----------------+
| Modify || || |
| 10 siblings ||.............. || .............. |
| 1000 siblings ||.............. || .............. |
+-------------------||---------------||----------------+
| Modify RDN || || |
| 10 siblings ||.............. || .............. |
| 1000 siblings ||.............. || .............. |
+-------------------||---------------||----------------+
| Query rate ||.............. || .............. |
+-------------------||---------------||----------------+
Table 2: Speed of operations - default set-up
+------------------------------------------------------+
| Operation || Cold DSA || Optimum |
| || || Performance |
+-------------------||---------------||----------------+
| Bind || || |
| --Anonymous ||.............. || .............. |
| --Simple ||.............. || .............. |
| --Simple Prot ||.............. || .............. |
| --Strong ||.............. || .............. |
+-------------------||---------------||----------------+
| List || || |
| -- 10 entries ||.............. || .............. |
| -- 1000 entries||.............. || .............. |
+-------------------||---------------||----------------+
| Search |single|subtree |single|subtree |
| |level | |level | |
| |------|--------|------|----------|
| -- exact |.... |...... |..... | ...... |
| -- leading sub |.... |...... |..... | ...... |
| -- any sub |.... |...... |..... | ...... |
| -- trailing sub |.... |...... |..... | ...... |
| -- approx |.... |...... |..... | ...... |
| -- complex |.... |...... |..... | ...... |
| -- return all |.... |...... |..... | ...... |
+--------------------|------|--------|------|----------|
| Read ||.............. || .............. |
+-------------------||---------------||----------------+
| Add || || |
| 0 siblings ||.............. || .............. |
| 10 siblings ||.............. || .............. |
| 1000 siblings ||.............. || .............. |
+-------------------||---------------||----------------+
| Modify || || |
| 10 siblings ||.............. || .............. |
| 1000 siblings ||.............. || .............. |
+-------------------||---------------||----------------+
| Modify RDN || || |
| 10 siblings ||.............. || .............. |
| 1000 siblings ||.............. || .............. |
+-------------------||---------------||----------------+
| Query rate ||.............. || .............. |
+-------------------||---------------||----------------+
Table 3: Speed of operations - non-default set-up