Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Cc: fio@vger.kernel.org, david@gibson.dropbear.id.au, chandan@mykolab.com
Subject: Re: [PATCH] arch-ppc.h: Add ilog2 implementation for ppc64
Date: Thu, 13 Aug 2015 12:45:06 -0600	[thread overview]
Message-ID: <20150813184506.GB21417@kernel.dk> (raw)
In-Reply-To: <1439286086-7822-1-git-send-email-chandan@linux.vnet.ibm.com>

On Tue, Aug 11 2015, Chandan Rajendra wrote:
> On a ppc64 machine, when fio is invoked with the following configuration file
> (generated by fstests' generic/300 test), it loops indefinitely.
> 
> [global]
> directory=/mnt/btrfs-xfstest-scratch
> filesize=536870912
> size=999G
> continue_on_error=write
> ignore_error=,ENOSPC
> error_dump=0
> 
> create_on_open=1
> fallocate=none
> exitall=1
> 
> [direct_aio_raicer]
> ioengine=libaio
> iodepth=128*1
> bs=128k
> direct=1
> numjobs=4
> rw=randwrite
> runtime=100*1
> time_based
> filename=racer
> 
> [falloc_raicer]
> ioengine=falloc
> runtime=100*1
> iodepth=1
> bssplit=128k/80:512k/10:32k/10
> rw=randwrite
> numjobs=1
> filename=racer
> 
> [punch_hole_raicer]
> ioengine=falloc
> runtime=100*1
> bs=4k
> time_based=10
> rw=randtrim
> numjobs=2
> filename=racer
> time_based
> 
> [aio-dio-verifier]
> ioengine=libaio
> iodepth=128*1
> numjobs=1
> verify=crc32c-intel
> verify_fatal=1
> verify_dump=1
> verify_backlog=1024
> verify_async=4
> verifysort=1
> direct=1
> bs=4k
> rw=randwrite
> filename=aio-dio-verifier
> 
> This is because arch_ffz() ends up invoking the 32-bit version of __ilog2()
> which always returns a bit number in the range 0 - 31. This can cause
> "overlap" variable in axmap_set_fn() to never becomes zero.
> 
> To fix this the commit adds a 64-bit version of __ilog2() (obtained from the
> Linux kernel's arch/powerpc/include/asm/bitops.h).

Awesome, thanks! This resolves an issue that someone reported a while
back that only happened on ppc, and this explains it.

-- 
Jens Axboe



      reply	other threads:[~2015-08-13 18:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-11  9:41 [PATCH] arch-ppc.h: Add ilog2 implementation for ppc64 Chandan Rajendra
2015-08-13 18:45 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150813184506.GB21417@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=chandan@linux.vnet.ibm.com \
    --cc=chandan@mykolab.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=fio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox