From: Mikael Pettersson <mikpe@it.uu.se>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de>,
Linux/m68k <linux-m68k@vger.kernel.org>,
aranym@lists.bobek.cz
Subject: Re: nfhd performance
Date: Mon, 19 Aug 2013 16:29:29 +0200 [thread overview]
Message-ID: <21010.11209.818043.191186@pilspetsen.it.uu.se> (raw)
In-Reply-To: <CAMuHMdUkMEorK34WnV9==thRPCVRXV0ySWq=fFTNFO1fe3Qc6g@mail.gmail.com>
Geert Uytterhoeven writes:
> On Sat, Aug 17, 2013 at 4:01 AM, Michael Schmitz
> <schmitz@biophys.uni-duesseldorf.de> wrote:
> >> In a kernel that has both IDE and nfhd support, once everything is in the
> >> buffer cache, I get:
> >>
> >> atari:~# dd if=/dev/hda2 bs=1M of=/dev/null
> >> 134+1 records in
> >> 134+1 records out
> >> 141114880 bytes (141 MB) copied, 5.91 seconds, 23.9 MB/s
> >> atari:~# dd if=/dev/nfhd8p2 bs=1M of=/dev/null
> >> 134+1 records in
> >> 134+1 records out
> >> 141114880 bytes (141 MB) copied, 17.09 seconds, 8.3 MB/s
> >>
> >> So nfhd is slower than emulated IDE?
> >
> >
> > That seems odd indeed ... is the disk attached as IDE or via USB adapter?
> > (Checking to see whether I should get similar results)
>
> It's not a physical disk:
>
> [IDE0]
> Present = Yes
> IsCDROM = No
> ByteSwap = No
> ReadOnly = No
> Path = /scratch/geert/aranym/etch-m68k.img
> Cylinders = 2102
> Heads = 16
> SectorsPerTrack = 63
> ModelName = Sarge m68k
Part of the problem is that ByteSwap = No setting. Contrary to what one might
think, "No" there actually means "yes, byteswap every sector read or written".
Grep for byteswap in aranym's src/natfeat/xhdi.cpp if you don't believe me...
As far as I can tell, this setting is only meaningful if you have an image which
must be shared with actual HW, and you don't want to byteswap it when migrating
it between these two roles (HW or aranym). I don't have that requirement, so I
run my aranym VMs with ByteSwap = Yes, which eliminates that overhead.
There are also other things in xhdi.cpp I don't really like, such as going through
stdio when raw Unix file-descriptors would do, and the small I/O unit size.
next prev parent reply other threads:[~2013-08-19 14:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 21:57 nfhd performance Geert Uytterhoeven
2013-08-17 2:01 ` Michael Schmitz
2013-08-17 7:36 ` Geert Uytterhoeven
2013-08-19 14:29 ` Mikael Pettersson [this message]
2013-08-19 15:48 ` Petr Stehlik
2013-08-20 6:52 ` Petr Stehlik
2013-08-18 5:08 ` Petr Stehlik
2013-08-20 6:24 ` Petr Stehlik
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=21010.11209.818043.191186@pilspetsen.it.uu.se \
--to=mikpe@it.uu.se \
--cc=aranym@lists.bobek.cz \
--cc=geert@linux-m68k.org \
--cc=linux-m68k@vger.kernel.org \
--cc=schmitz@biophys.uni-duesseldorf.de \
/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