Skip to contentSkip to conversation

Running Fio under AIX 7

DISCUSSION Georg Schönberger 2 participants 3 messages Aug 30, 2013 – Sep 17, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi fio users,

I am trying to run Fio under AIX 7 - according to the documentation there shouldn't be any problem with it. For now I am getting the following error, do you have any idea what's the problem here (filesystem jfs/jfs2)?

Thanks for you help, Georg

/tmp/fio-2.1.2/fio-2.1.2# fio --rw=write --name=test --size=10M
test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=sync, iodepth=1 fio-2.1.2
Starting 1 process
test: Laying out IO file(s) (1 file(s) / 10MB)
fio: posix_fallocate fails: Invalid argument
fio: pid=0, err=22/file:filesetup.c:412, func=invalidate_cache, error=Invalid argument

Run status group 0 (all jobs):

With ''--debug'' on:
...

time     17105066 inv_cycles_per_usec=32768
mutex    17105066 wait on startup_mutex
mutex    17105066 done waiting on startup_mutex
Starting 1 process
file     17105066 setup files
process  17105066 pid=0: runstate 0 -> 4
file     17105066 get file size for b0002028/0/b0002148
test: Laying out IO file(s) (1 file(s) / 10MB)
file     17105066 layout unlink test.1.0
file     17105066 open file test.1.0, flags 101
file     17105066 posix_fallocate file test.1.0 size 10485760

fio: posix_fallocate fails: Invalid argument
io 17105066 invalidate cache test.1.0: 0/10485760
process 17105066 pid=0: runstate 4 -> 0
fio: pid=0, err=22/file:filesetup.c:412, func=invalidate_cache, error=Invalid argument process 17105066 pid=0: runstate 0 -> 10

#2 lore raw
Quoted 4 lines · Georg Schönberger

Hi fio users,

I am trying to run Fio under AIX 7 - according to the documentation there shouldn't be any problem with it. For now I am getting the following error, do you have any idea what's the problem here (filesystem jfs/jfs2)?

Odd, so it's posix_fadvise() getting EINVAL. Most likely reason for that is that fio is not picking up the right values for it.

It finds them here, on this platform:

AIX aixbuild 3 5 00C1DC964C00

Does it need some other magic on AIX 7 to find them? You can bypass the error by setting invalidate_cache=0, but it would be great if you could dig around a bit in /usr/include and see what is up. Alternatively, if I can log into the machine, I can definitely fix it up.

Signature · 1 line
Jens Axboe
#3 lore raw

Hi Jens,

----- Original Message -----

Quoted 22 lines

From: "Jens Axboe" <[email protected]>
To: "Georg Schönberger" <[email protected]>
Cc: [email protected]
Sent: Friday, 30 August, 2013 6:11:19 PM
Subject: Re: Running Fio under AIX 7

Quoted 6 lines · Georg Schönberger

Hi fio users,

I am trying to run Fio under AIX 7 - according to the documentation there shouldn't be any problem with it.
For now I am getting the following error, do you have any idea what's the problem here (filesystem jfs/jfs2)?

Odd, so it's posix_fadvise() getting EINVAL. Most likely reason for that
is that fio is not picking up the right values for it.

It finds them here, on this platform:

AIX aixbuild 3 5 00C1DC964C00

Quoted 7 lines

Does it need some other magic on AIX 7 to find them? You can bypass the
error by setting invalidate_cache=0, but it would be great if you could
dig around a bit in /usr/include and see what is up. Alternatively, if I
can log into the machine, I can definitely fix it up.

Setting invalidate=0 did not fix the error. Or do I have to set it an other option?

# fio --rw=write --name=test --size=10M --invalidate=0
test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=sync, iodepth=1
fio-2.1.2
Starting 1 process
test: Laying out IO file(s) (1 file(s) / 10MB)
fio: posix_fallocate fails: Invalid argument
fio: pid=0, err=22/file:filesetup.c:412, func=invalidate_cache, error=Invalid argument

What did you mean with digging around in /usr/include? I expect you mean to look at posix_fadvise, but what information do you exactly need?

Thanks a lot, Georg