Return-Path: MIME-Version: 1.0 In-Reply-To: <20090902063114.GK12579@kernel.dk> References: <7efa8a7d0908311900o2f0bfbb8t52a8b518782e2bdc@mail.gmail.com> <20090901053838.GK12579@kernel.dk> <7efa8a7d0909011643r5c86384uedb6c8ef0e1c33ab@mail.gmail.com> <20090902063114.GK12579@kernel.dk> From: Learner Study Date: Wed, 2 Sep 2009 01:24:59 -0700 Message-ID: <7efa8a7d0909020124j4be78b7au33774be150f09c7c@mail.gmail.com> Subject: Re: FIO for MIPS Content-Type: multipart/alternative; boundary=00504502e141e301c40472940197 To: Jens Axboe Cc: fio@vger.kernel.org List-ID: --00504502e141e301c40472940197 Content-Type: text/plain; charset=ISO-8859-1 Hi Jens: Do you mean using CLONE_IO with posixaio would be better than O_DIRECT with posixaio? Thanks! On Tue, Sep 1, 2009 at 11:31 PM, Jens Axboe wrote: > Hi, > > Yes, if you can live with O_DIRECT, libaio performs a lot better than > posixaio. Nobody should use posixaio in their apps if they care just a > bit about performance, it just doesn't work very well. Using CLONE_IO > would help, but even with that it's still pretty suboptimal. > > > On Tue, Sep 01 2009, Learner Study wrote: > > Hi Jens: > > > > Thanks - it works well. > > > > I'm using FIO with posixaio ioengine and performance is pretty bad. I'm > > trying to get libaio to work in my MIPS environment. Based on my tests > in > > previous x86 env, I had seen libaio to give better performance with FIO > as > > compared to posixaio. > > > > Again, thanks for your prompt help. > > > > On Mon, Aug 31, 2009 at 10:38 PM, Jens Axboe > wrote: > > > > > On Mon, Aug 31 2009, Learner Study wrote: > > > > Hello: > > > > > > > > I checked README for FIO and apparently it isn't yet supported on > MIPS64 > > > > platform yet (atleast until version 1.30) > > > > Does someone have a patch I could use to do this? Any other ideas... > > > > > > I just checked in the below patch. I haven't checked the memory > ordering > > > defines yet, not sure if any of the mips cpus are weaker ordered. I'll > > > check that later, this should at least get you started. > > > > > > commit c28b912f77c3dafbdcdcf4def2c8c1f9c127100c > > > Author: Jens Axboe > > > Date: Tue Sep 1 07:23:57 2009 +0200 > > > > > > MIPS support > > > > > > Signed-off-by: Jens Axboe > > > > > > diff --git a/arch/arch-mips.h b/arch/arch-mips.h > > > new file mode 100644 > > > index 0000000..759d3a9 > > > --- /dev/null > > > +++ b/arch/arch-mips.h > > > @@ -0,0 +1,25 @@ > > > +#ifndef ARCH_MIPS64_H > > > +#define ARCH_MIPS64_H > > > + > > > +#define ARCH (arch_mips) > > > + > > > +#ifndef __NR_ioprio_set > > > +#define __NR_ioprio_set 314 > > > +#define __NR_ioprio_get 315 > > > +#endif > > > + > > > +#ifndef __NR_fadvise64 > > > +#define __NR_fadvise64 215 > > > +#endif > > > + > > > +#ifndef __NR_sys_splice > > > +#define __NR_sys_splice 263 > > > +#define __NR_sys_tee 265 > > > +#define __NR_sys_vmsplice 266 > > > +#endif > > > + > > > +#define read_barrier() __asm__ __volatile__("": : :"memory") > > > +#define write_barrier() __asm__ __volatile__("": : > > > :"memory") > > > +#define nop __asm__ __volatile__("": : :"memory") > > > + > > > +#endif > > > diff --git a/arch/arch.h b/arch/arch.h > > > index 28c6632..87db222 100644 > > > --- a/arch/arch.h > > > +++ b/arch/arch.h > > > @@ -31,6 +31,8 @@ enum { > > > #include "arch-sparc64.h" > > > #elif defined(__arm__) > > > #include "arch-arm.h" > > > +#elif defined(__mips__) || defined(__mips64__) > > > +#include "arch-mips.h" > > > #else > > > #error "Unsupported arch" > > > #endif > > > > > > -- > > > Jens Axboe > > > > > > > > -- > Jens Axboe > > --00504502e141e301c40472940197 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Jens:

Do you mean using CLONE_IO with posixaio would be better th= an O_DIRECT with posixaio?

Thanks!

On Tue, Sep 1, 2009 at 11:31 PM, Jens Axboe <jens.axboe@oracle.com> wrot= e:
Hi,

Yes, if you can live with O_DIRECT, libaio performs a lot better than
posixaio. Nobody should use posixaio in their apps if they care just a
bit about performance, it just doesn't work very well. Using CLONE_IO would help, but even with that it's still pretty suboptimal.


On Tue, Sep 01 2009, Learner Study wrote:
> Hi Jens:
>
> Thanks - it works well.
>
> I'm using FIO with posixaio ioengine and performance is pretty bad= . I'm
> trying to get libaio to work =A0in my MIPS environment. Based on my te= sts in
> previous x86 env, I had seen libaio to give better performance with FI= O as
> compared to posixaio.
>
> Again, thanks for your prompt help.
>
> On Mon, Aug 31, 2009 at 10:38 PM, Jens Axboe <jens.axboe@oracle.com> wrote:
>
> > On Mon, Aug 31 2009, Learner Study wrote:
> > > Hello:
> > >
> > > I checked README for FIO and apparently it isn't yet sup= ported on MIPS64
> > > platform yet (atleast until version 1.30)
> > > Does someone have a patch I could use to do this? Any other = ideas...
> >
> > I just checked in the below patch. I haven't checked the memo= ry ordering
> > defines yet, not sure if any of the mips cpus are weaker ordered.= I'll
> > check that later, this should at least get you started.
> >
> > commit c28b912f77c3dafbdcdcf4def2c8c1f9c127100c
> > Author: Jens Axboe <j= ens.axboe@oracle.com>
> > Date: =A0 Tue Sep 1 07:23:57 2009 +0200
> >
> > =A0 =A0MIPS support
> >
> > =A0 =A0Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
> >
> > diff --git a/arch/arch-mips.h b/arch/arch-mips.h
> > new file mode 100644
> > index 0000000..759d3a9
> > --- /dev/null
> > +++ b/arch/arch-mips.h
> > @@ -0,0 +1,25 @@
> > +#ifndef ARCH_MIPS64_H
> > +#define ARCH_MIPS64_H
> > +
> > +#define ARCH =A0 (arch_mips)
> > +
> > +#ifndef __NR_ioprio_set
> > +#define __NR_ioprio_set =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0314
> > +#define __NR_ioprio_get =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0315
> > +#endif
> > +
> > +#ifndef __NR_fadvise64
> > +#define __NR_fadvise64 =A0 =A0 =A0 =A0 215
> > +#endif
> > +
> > +#ifndef __NR_sys_splice
> > +#define __NR_sys_splice =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0263
> > +#define __NR_sys_tee =A0 =A0 =A0 =A0 =A0 265
> > +#define __NR_sys_vmsplice =A0 =A0 =A0266
> > +#endif
> > +
> > +#define read_barrier() =A0 =A0 =A0 =A0 __asm__ __volatile__(&quo= t;": : :"memory")
> > +#define write_barrier() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0__asm__ _= _volatile__("": :
> > :"memory")
> > +#define nop =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0__asm__ __vol= atile__("": : :"memory")
> > +
> > +#endif
> > diff --git a/arch/arch.h b/arch/arch.h
> > index 28c6632..87db222 100644
> > --- a/arch/arch.h
> > +++ b/arch/arch.h
> > @@ -31,6 +31,8 @@ enum {
> > =A0#include "arch-sparc64.h"
> > =A0#elif defined(__arm__)
> > =A0#include "arch-arm.h"
> > +#elif defined(__mips__) || defined(__mips64__)
> > +#include "arch-mips.h"
> > =A0#else
> > =A0#error "Unsupported arch"
> > =A0#endif
> >
> > --
> > Jens Axboe
> >
> >

--
Jens Axboe


--00504502e141e301c40472940197--