No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V300R006C00 File System Feature Guide 12

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Managing and Maintaining DFSClient On the Mac OS X client

Managing and Maintaining DFSClient On the Mac OS X client

This section guides you through the management and maintenance of DFSClient on the Mac OS X client.

Checking Performance Statistics

This topic describes the procedure of checking the data transmission delay during a specific period.

Prerequisites

DFSClient has been enabled and used to mount an NFS share.

Procedure

  1. Optional: Run xnfs_perf_tool -c to view the performance statistics in cache.
  2. Run xnfs_perf_tool -C to delete the performance statistics in cache.

    NOTE:

    The operation aims to avoid interference from original statistics.

  3. Optional: Run xnfs_perf_tool -c to confirm that no performance statistics exist in cache.
  4. Run xnfs_perf_tool -s to track data transmission performance and collect statistics.
  5. Open FinalCutPro to import and play the video mounted to the local directory.
  6. Optional: Run xnfs_perf_tool -c to check that performance statistics are recorded in cache when FinalCutPro reads video data.
  7. Run xnfs_perf_tool -o /path/rawfile to write the collected performance statistics into the rawfile file.

    NOTE:

    /path/rawfile: performance statistics file in /path. It can be an existing empty file in /path or a new file created automatically by the xnfs_perf_tool. If the new file has the same name as an existing file in /path, the new file will overwrite the existing file. Therefore, it is recommended that the name of rawfile be different with any existing file in /path.

  8. Press Ctrl+C to stop writing performance statistics to the rawfile file.
  9. Run xnfs_perf_tool -p /local_path/file to analyze the performance statistics collected in the rawfile file. Two log files rawfile.tracelog and awfile.tracesum are generated.

    NOTE:

    rawfile.tracelog records detailed performance analysis while awfile.tracesum summarizes the performance analysis.

  10. Run xnfs_perf_tool -t to stop collecting performance statistics.
  11. Run cat /path/rawfile.tracelog and cat /path/rawfile.tracesum to open the logs to view the performance statistics in the period.

    NOTE:

    You can run xnfs_perf_tool -h to obtain the command help information.

Example

huawei103deMac-Pro:mnt huawei$ xnfs_perf_tool -c      //Query the number of current performance statistics records.
totally 169140 trace in kernel.
huawei103deMac-Pro:mnt huawei$ xnfs_perf_tool -C      //Clear current records.
huawei103deMac-Pro:mnt huawei$ xnfs_perf_tool -c      //Confirm that all the records are cleared.
totally 0 trace in kernel.
huawei103deMac-Pro:mnt huawei$ xnfs_perf_tool -s     //Enable the performance statistics function.
huawei103deMac-Pro:mnt huawei$ xnfs_perf_tool -c     //Confirm that the performance statistics function is enabled.
totally 3212 trace in kernel.
huawei103deMac-Pro:mnt huawei$ sudo touch /mnt/DFStext    //Create a file.
Password:
huawei103deMac-Pro:mnt huawei$ sudo xnfs_perf_tool -o /mnt/DFStext      //Record data in the file.
^C                                                                           //Stop collecting performance statistics.
huawei103deMac-Pro:mnt huawei$ sudo xnfs_perf_tool -p /mnt/DFStext       //Analyze the statistics to generate log files.
huawei103deMac-Pro:mnt huawei$ sudo xnfs_perf_tool -t                  //Disable the performance statistics function.
huawei103deMac-Pro:mnt huawei$ cd /mnt                            //Enter the directory in which log files reside.
huawei103deMac-Pro:mnt huawei$ ls
DFStext			nfs3			test.tracesum
DFStext.tracelog	nfs4			text
DFStext.tracesum	test			text1
async1_asyncmount	test.tracelog
huawei103deMac-Pro:mnt huawei$ cat DFStext.tracesum
Syscall    Counts      Success     Failure     MaxLatency    AvgLatency     MaxRPCLatency    AvgRPCLatency    OperationPerSec
Read        4690        4690        0           17447          1761           62757            19053            586            
Write       0           0           0           0              0              0                0                0              
GetAttr     0           0           0           0              0              15454            3946503387       0              
SetAttr     0           0           0           0              0              0                0                0              
Open        0           0           0           0              0              0                0                0              
Close       0           0           0           0              0              0                0                0              
RDIR        0           0           0           0              0              0                0                0              
GetXattr    0           0           0           0              0              0                0                0              
SetXattr    0           0           0           0              0              0                0                0              
huawei103deMac-Pro:mnt huawei$ cat DFStext.tracesum
PAIR FID OP FLAG OFFSET LEN DURATION RETCODE RESERV1 RESERV2
8dbe93f113e 440001 Read 100800 981729280 380000 1545341 0 0 0
8dbe93f2024 440001 Copy_Ubc 380000 981729280 380000 697180 0 0 0
8dbe949c96a 440001 RAHEAD 100800 1937 797 842302 0 0 0
8dbe949caf1 440001 Bufget 40000001 1937 80000 79609 0 0 0
8dbe94b5bff 440001 BufReadRPC 504004 1015545856 80000 49360 0 0 0
8dbe94c1bf4 440001 Rpc 0 1015545856 80000 2997492 0 83c98b52 0
8dbe94c1e7b 440001 Bufget 40000001 1938 80000 75690 0 0 0
8dbe94e374d 440001 BufReadRPC 504004 1016070144 80000 17385 0 0 0
8dbe94e7adc 440001 Rpc 0 1016070144 80000 5339692 0 83c98b53 0
                        ....
                        ....
8dbe94e7c65 440001 Bufget 40000001 1939 80000 68818 0 0 0
8f7b47620ab 448001 Bufget 40000001 5423 80000 66388 0 0 0
8f7b4777f2c 448001 BufReadRPC 504004 2843213824 80000 12637 0 0 0
8f7b477b04b 448001 Rpc 0 2843213824 80000 3314385 0 83c9d470 0
8f7b477d58b 448001 Read 100800 2810183680 40000 130956 0 0 0
8f7b477dcae 448001 Copy_Ubc 40000 2810183680 40000 46127 0 0 0
8f7b47891cf 448001 RAHEAD 100800 5424 1530 82591 0 0 0
8f7b47892c1 448001 Bufget 40000001 5424 80000 49209 0 0 0
8f7b479a222 448001 BufReadRPC 504004 2843738112 80000 12745 0 0 0
8f7b479d393 448001 Rpc 0 2843738112 80000 2103548 0 83c9d471 0
8dbe94ffd35 440001 BufReadRPC 504004 1016594432 80000 15961 0 0 0
8dbe9503b2e 440001 Rpc 0 1016594432 80000 3206693 0 83c98b54 0
8dbe9503cdb 440001 Bufget 40000001 1940 80000 49053 0 0 0
8dbe9515017 440001 BufReadRPC 504004 1017118720 80000 12743 0 0 0
8dbe95181a9 440001 Rpc 0 1017118720 80000 2165413 0 83c98b55 0
huawei103deMac-Pro:mnt huawei$

Checking the Prefetch Hit Ratio

This topic describes the procedure of checking the total number of read requests, data amount in cache, and read hit ratio.

Prerequisites

DFSClient has been enabled and used to mount an NFS share.

Procedure

  1. Run xnfs_op_tool -r 1 to clear the hit ratio statistics collected before.
  2. Open FinalCutPro to import and play the video mounted to the local directory.
  3. Run xnfs_op_tool -r 0 to check the prefetch hit ratio when the radio is being played.

    NOTE:

    The valid value of op is 0 or 1. 0 indicates querying the prefetch hit ratio while 1 indicates clearing the hit ratio statistics. You can run xnfs_op_tool -h to obtain the command help information.

Example

huawei103deMac-Pro:mnt huawei$ xnfs_op_tool -r 1
huawei103deMac-Pro:mnt huawei$ xnfs_op_tool -r 0
The hit rate of cache:
read size:           268.7500(MB)
incache:             268.7500(MB)
cache hit accuracy:  100.00%

Querying Configuration Information

Prerequisites

The NFS protocol enhancement feature has been enabled.

Procedure

Run xnfs_op_tool -a to query the version, mount directory, established link, and log level information about DFSClient.

NOTE:

You can run xnfs_op_tool -h to obtain the command help information.

Example

huawei103deMac-Pro:conf huawei$ xnfs_op_tool -a
The version of xnfs client:
V300R005C00 (Sat Oct 17 17:39:58 CST 2015) 

The mount info of xnfs:
===============================================================
server:/export:   s.hw.com:/xnfs_zhl
mounted on:       /mnt/xnfs
rsize:            512 kb
wsize:            128 kb
protoVers:        NFSv3
readAhead:        64
isSync:           synchronous
linkCnt:          2
srcIpCnt:         2
srcIpArry:        192.168.252.104_192.168.252.154
dstIpCnt:         3
dstIpArry:        192.168.70.190_192.168.70.191_192.168.70.192
link_ID   sip             server_ip       file_count    link_status
0         192.168.252.154  192.168.70.190     0             Ready(0x11)
1         192.168.252.104  192.168.70.191     0             Ready(0x11)

The log level is as follow:
sock:    error
vnop:    error
ra:      error
rpc:     error
vfsop:   error
mem:     error
huawei103deMac-Pro:conf huawei$ 
Translation
Download
Updated: 2019-06-27

Document ID: EDOC1000122519

Views: 78994

Downloads: 147

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next