From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com ([209.132.183.28]:39918 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935588AbdJRH00 (ORCPT ); Wed, 18 Oct 2017 03:26:26 -0400 Date: Wed, 18 Oct 2017 15:26:25 +0800 From: Eryu Guan Subject: Re: [PATCH 2/2][v2] perf/001: a random write buffered fio perf test Message-ID: <20171018072625.GI10593@eguan.usersys.redhat.com> References: <1507665511-23515-1-git-send-email-josef@toxicpanda.com> <1507665511-23515-2-git-send-email-josef@toxicpanda.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507665511-23515-2-git-send-email-josef@toxicpanda.com> Sender: fstests-owner@vger.kernel.org To: Josef Bacik Cc: fstests@vger.kernel.org, tytso@mit.edu, david@fromorbit.com, darrick.wong@oracle.com, Josef Bacik List-ID: Hi Josef, On Tue, Oct 10, 2017 at 03:58:31PM -0400, Josef Bacik wrote: > From: Josef Bacik > > This uses the new fio results perf helpers to run a rand write buffered > workload on the scratch device. > > Signed-off-by: Josef Bacik > --- > v1->v2: > - updated to use the new _require_fio_results helper and moved the > _fio_results_init call to after teh _require_fio check I tried this v2 a bit, but met some problems, I haven't looked into the code closely though, just wanted to get a first impression of this perf test frame work. - missing perf/group file, so test won't be run by check - this test writes 16G files to SCRATCH_DEV by default, and my device has only 15G, so fio failed with ENOSPC, I think we need a require rule on the test device - after working around the group file and device size issue, test still failed like perf/001.full: .... # /usr/local/bin/fio --output-format=json --output=/tmp/30750.json /tmp/30750.fio # /usr/bin/python2 /root/xfstests/src/perf/fio-insert-and-compare.py -c default -d /root/xfstests/results//fio-results.db -n 001 /tmp/30750.json Traceback (most recent call last): File "/root/xfstests/src/perf/fio-insert-and-compare.py", line 28, in result_data.insert_result(data) File "/root/xfstests/src/perf/ResultData.py", line 43, in insert_result self._insert_obj('fio_jobs', job) File "/root/xfstests/src/perf/ResultData.py", line 35, in _insert_obj cur.execute(cmd, tuple(values)) sqlite3.IntegrityError: fio_jobs.trim_lat_ns_mean may not be NULL failed: '/usr/bin/python2 /root/xfstests/src/perf/fio-insert-and-compare.py -c default -d /root/xfstests/results//fio-results.db -n 001 /tmp/30750.json' Am I missing something? BTW, I was using fio-2.6-2.el7.x86_64. Thanks, Eryu