English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 15 March 2023, 17:03   #1
remz
Registered User
 
Join Date: May 2022
Location: Canada
Posts: 138
Harddrive read speed in WinUAE vs real Amiga

Hi Toni and everyone,

I was toying with streaming data from the harddrive, and it made me wonder: Is WinUAE emulating the harddrive speed too? I didn't find any settings in WinUAE, contrary to floppy disk, to manage emulation speed of the disk.

I was wondering if we know, on average, with Kickstart 1.3 or 2.0, with a mechnical harddrive, about what kind of read speed we can obtain on a real Amiga 68000 + just chip ram, to be able to estimate what is feasible in term of 'direct disk streaming'.
remz is offline  
Old 15 March 2023, 17:53   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
Pretty sure the answer is that WinUAE doesn't emulate drive speed.
As a quick test I whipped up a program that times reading a file to chip mem.
On my A1200 with CF-card adapter I get ~970KB/s reading from a FFS partition (with or without 060 enabled).
In WinUAE with A500+ cycle accurate setup (I was lazy and used ReadEClock, so KS2.0+ needed) I get ~43MB/s.
Attached Files
File Type: 7z readtime.7z (5.7 KB, 16 views)
paraj is offline  
Old 15 March 2023, 17:58   #3
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
Quote:
Originally Posted by paraj View Post
Pretty sure the answer is that WinUAE doesn't emulate drive speed.
As a quick test I whipped up a program that times reading a file to chip mem.
On my A1200 with CF-card adapter I get ~970KB/s reading from a FFS partition (with or without 060 enabled).
In WinUAE with A500+ cycle accurate setup (I was lazy and used ReadEClock, so KS2.0+ needed) I get ~43MB/s.
With 43MB/s, it appears chipmem speed is ignored when reading to chipmem .
patrik is offline  
Old 15 March 2023, 18:14   #4
remz
Registered User
 
Join Date: May 2022
Location: Canada
Posts: 138
It might appear "0 clock cycle" for the Amiga side when the emulator performs the real read on the host platform, and this imply the data is directly "injected magically" intio the destination memory buffer?
(because as we see, even a pure copy cannot much such speed)
remz is offline  
Old 15 March 2023, 18:59   #5
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
Quote:
Originally Posted by remz View Post
It might appear "0 clock cycle" for the Amiga side when the emulator performs the real read on the host platform, and this imply the data is directly "injected magically" intio the destination memory buffer?
(because as we see, even a pure copy cannot much such speed)
Yes, haven't checked if that's actually the case, but it appears to be how it works (Using a HDF seems to be a bit slower (~5MB/s) rather than a shared folder, but maybe that's just a coincidence).

In other words, you probably shouldn't rely on WinUAE for testing how fast you can stream data from a HD on an A500. For that you probably want real-world testers or at relevant datasheets (and I guess if the disk is OFS and fragmented you have to provision for additional seek time for each block).

EDIT: Maybe there are some advanced emulation options I'm not aware of, so the above just goes for using plain shared folders/HDF.
paraj is offline  
Old 15 March 2023, 19:14   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,508
DMA controllers are "immediate". PIO controllers are affected by CPU emulation mode.

Speed control does not exist. It isn't trivial.
Toni Wilen is online now  
Old 15 March 2023, 19:54   #7
remz
Registered User
 
Join Date: May 2022
Location: Canada
Posts: 138
The next thing I wanted to try would be streaming from CD (at CDTV speed): I assume WinUAE does implement CD read speed emulation?
(Because I see a checkbox for enabling 'turbo CD speed')
remz is offline  
Old 15 March 2023, 20:25   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,508
Quote:
Originally Posted by remz View Post
The next thing I wanted to try would be streaming from CD (at CDTV speed): I assume WinUAE does implement CD read speed emulation?
(Because I see a checkbox for enabling 'turbo CD speed')
Yes, CDTV and CD32 has "real" CD speeds. (CDTV=1x, CD32 drive is 1x/2x, software controllable)

Correct speeds are needed because CD read speed and CD frame interrupts are used for timing.

btw, directory filesystem won't ever have speed limits because it isn't a block device but a filesystem. Hardfiles can be supported but is also very boring task to implement..
Toni Wilen is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinuAE + ADF-copy __ Read Real AmigaFloppy with WinUAE Giants support.WinUAE 14 02 May 2019 11:17
Is there a tutorial on setting up winuae to read/write over a lan to a real amiga? chocsplease support.WinUAE 7 16 April 2019 13:46
How set WinUAE configuration for real Amiga speed performance ? cybersite_ni.q support.WinUAE 6 08 June 2009 11:09
Making an image of a real Amiga Harddrive to use in WinUAE? SabreGolly New to Emulation or Amiga scene 7 01 October 2006 17:59
Easiest way to create a hardfile from a real Amiga Harddrive chrispoacher New to Emulation or Amiga scene 5 28 March 2006 01:35

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:44.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07686 seconds with 14 queries