netatalk.io

Netatalk 4.1.2

名前

afp_lantest, afp_logintest, afp_spectest, afp_speedtest, afparg — AFP プロトコルテスト一式

概要

afp_lantest [-34567GgVv] [-h host] [-p port] [-s volume] [-u user] [-w password] [-n iterations] [-t tests] [-F bigfile]

afp_logintest [-1234567CmVv] [-h host] [-p port] [-s volume] [-u user] [-w password]

afp_spectest [-1234567aCiLlmVvXx] [-h host] [-H host2] [-p port] [-s volume] [-c path to volume] [-S volume2] [-u user] [-d user2] [-w password] [-f test]

afp_speedtest [-1234567aeiLnVvy] [-h host] [-p port] [-s volume] [-S volume2] [-u user] [-w password] [-n iterations] [-d size] [-q quantum] [-F file] [-f test]

afparg [-1234567lVv] [-h host] [-p port] [-s volume] [-u user] [-w password] [-f command]

説明

afptest ファミリーのすべてのツールは、同じ一般的な使用パターンとパラメータに従う。AFP プロトコル リビジョン (-1 から -7) を設定し、次にテストするホストのアドレスと資格情報 (localhost も可) を設定する。一部のテストでは、2番目のユーザーと2番目のボリュームを定義する必要がある。さらに別のテスト セットを localhost から実行し、テスト対象のボリュームへのローカル パスを指定する必要がある。 単一のテストまたはテスト セクションは、-f オプションで実行できる。使用可能なテストは、-l オプションで一覧表示できる。

afp_spectest は、300 を超えるテスト ケースを含む AFP 仕様テスト スイートの中核を 構成する。これは、テストする AFP コマンド別、またはテストの前提条件別に分けられたテストセットに編成されている。 たとえば、Tier 2 (T2) テストは、共有ボリュームへのパスを示す -c オプションを使用してホスト上で 実行する必要がある。また、読み取り専用テストとスリープ テストも別々に実行する必要がある。

afp_logintest は、独自のランナーを持つ特定の AFP ログイン認証 テストスイートである。

afp_lantestafp_speedtest` は、AFP サーバーのファイル転送ベンチマークです。前者は、さまざまなファイル転送パターンのバッチを実行する HELIOS LanTest にヒントを得たものである。後者は、いくつかのテスト ケースが用意された、よりシンプルなツールである。

afparg` は、オプションの引数を持つ特定のコマンドを受け取り、AFP サーバーに単一のアクションを送信する AFP CLI クライアントである。これは、1 回限りのトラブルシューティングやシステム管理に使用できる。

各オプションの正確な使用方法については、各ツールのヘルプテキストを参照してください。

afp_spectest の FPSetForkParms_test テストセットを AFP 3.4 で実行する。

% afp_spectest -h 127.0.0.1 -p 548 -u user1 -d user2 -w passwd -s testvol1 -S testvol2 -c /srv/afptest1 -7 -f FPSetForkParms_test
===================
FPSetForkParms_test
-------------------
FPSetForkParms:test62: SetForkParams errors - PASSED
FPSetForkParms:test141: Setforkmode error - PASSED
FPSetForkParms:test217: Setfork size 64 bits - PASSED
FPSetForkParms:test306: set fork size, new size > old size - PASSED

AFP 3.0 を使用して afp_lantest ベンチマークを実行する。

% afp_lantest -h 192.168.0.2 -s testvol1 -u user1 -w passwd -3
Run 0 => Opening, stating and reading 512 bytes from 1000 files   1799 ms
Run 0 => Writing one large file                                     30 ms for 100 MB (avg. 3495 MB/s)
Run 0 => Reading one large file                                      8 ms for 100 MB (avg. 13107 MB/s)
Run 0 => Locking/Unlocking 10000 times each                       1959 ms
Run 0 => Creating dir with 2000 files                             1339 ms
Run 0 => Enumerate dir with 2000 files                             217 ms
Run 0 => Create directory tree with 10^3 dirs                      496 ms

Netatalk Lantest Results (averages)
===================================

Opening, stating and reading 512 bytes from 1000 files   1799 ms
Writing one large file                                     30 ms for 100 MB (avg. 3495 MB/s)
Reading one large file                                      8 ms for 100 MB (avg. 13107 MB/s)
Locking/Unlocking 10000 times each                       1959 ms
Creating dir with 2000 files                             1339 ms
Enumerate dir with 2000 files                             217 ms
Create directory tree with 10^3 dirs                      496 ms

参照

afpd(8)

著者

CONTRIBUTORS を参照