⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dtt

📁 Linux磁盘测试的源代码,测试磁盘的读写性能
💻
字号:
#! /bin/csh#	%Z%%M% %I% %E%##	Date:	August 7, 1990#	Author:	Robin Miller##	Description:##	This script file is used to gather tape performance data using#	different block sizes.  Please note, the total statistics will#	reflect a slower performance due to the timing of tape rewind#	between the write and read passes (this is expected).## Arguments:#	$1	The tape device.#	$2	The log file name.#	$3	The data limit (bytes).#	$4	The block size(s).#	$5	The pass count.#set DEVICE=$1set LOG_FILE=$2set DATA_LIMIT=$3set BLOCK_SIZES=$4set PASS_COUNT=$5if ($DEVICE == '') then    echo "Usage: dtt device [ log_file data_limit block_sizes pass_count ]";    exit 1endifif ($DEVICE != '') then    if (`dirname $DEVICE` != '/dev') then	set DEVICE=/dev/$DEVICE    endifendifif ($LOG_FILE == '') then	set LOG_FILE=dtt.logendifif ($DATA_LIMIT == '') then	set DATA_LIMIT=10mendifif ($BLOCK_SIZES == '') then	set BLOCK_SIZES="10k 16k 32k 64k 126b"#	set BLOCK_SIZES="2k 4k 8k 10k 12k 16k"endifif ($PASS_COUNT == '') then	set PASS_COUNT=1endif## Test the tape device using different block sizes.#rm -f $LOG_FILEforeach bs ($BLOCK_SIZES)	dt of=$DEVICE disable=compare limit=$DATA_LIMIT bs=$bs log=$LOG_FILE passes=$PASS_COUNT	mt -f $DEVICE rewind	echo "" >> $LOG_FILE	echo "*** End of Test ***" >> $LOG_FILE	echo "" >> $LOG_FILEend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -