Re: nfhd performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Geert Uytterhoeven writes:
On Sat, Aug 17, 2013 at 4:01 AM, Michael Schmitz
<schmitz@xxxxxxxxxxxxxxxxxxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux