• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2################################################################################
3#
4# Copyright (C) 2022 Huawei Device Co., Ltd.
5# SPDX-License-Identifier: GPL-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10# See the License for the specific language governing permissions and
11# limitations under the License.
12#
13################################################################################
14# File: run_fio.sh
15#
16# Description: run the fio
17#
18# Authors:     Li Zhanming - lizhanming3@h-partners.com
19#
20# History:     April 8 2022 - init scripts
21#
22################################################################################
23
24run_fio()
25{
26    mkdir $DISK_PATH/f2fs_test
27    ./fio --name=rw_bg --numjobs=1 --filename=$DISK_PATH/f2fs_test/fio-test.file  \
28    --bs=32768K --rw=read --ioengine=sync --refill_buffers --group_reporting  \
29    --runtime=360 --time_based --filesize=128M
30}
31
32run_fio