English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 30 March 2019, 23:10   #1
xubidoo
 
Posts: n/a
Max Transfer rates help

after swapping out my cheap chinese 16gb CF card for a 16gb Sandisk , i was checking the max transfer settings via hd toolbox and they are as follows.

DH0:PFS\03
Mask 0x7ffffffe
MaxTransfer 0x1fe00
block size 512

DH1:PFS\03
Mask 0x7ffffffe
MaxTransfer 0xffffff
block size 512

DH2:PFS\03
Mask 0x7ffffffe
MaxTransfer 0xffffff
block size 512

DH3:PFS\03
Mask 0x7ffffffe
MaxTransfer 0xffffff
block size 512

been reading around and to say the least its rather confusing for a n00b lol
should the max transfer be the same on all drives ? or just the boot drive DH0: ?
blocksize of 512 ok on all drives? seems to b the default..

everything seems to be working just fine, but be nice to know its getting best speed it can.
and it seems to be on PFS\03 v19.2 i think.
any suggestions to improve here or is it all fine as is?

thanks muchly
 
Old 30 March 2019, 23:18   #2
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
In a nutshell. Set all drives to the correct max transfer value. This is needed due to read times being much faster on CF/SD card in comparison to mechanical drives.
lesta_smsc is offline  
Old 31 March 2019, 09:49   #3
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
This is needed to circumvent a change in the IDE command specification that older versions of scsi.device do not know about. It has to do with transferring of large blocks of data in one IDE command.

If you have an old scsi.device and have the incorrect max transfer size, you will get data corruption. It's a good idea to adjust it even with the OS3.1.4 scsi.device.
Jope is offline  
Old 31 March 2019, 10:03   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
First of all MaxTransfer is not a rate, it is a chunk size. It has nothing to do with speed.

Mask and MaxTransfer are controller attributes, so they should be set to the same value on all partitions.
thomas is offline  
Old 31 March 2019, 11:12   #5
supaduper
Registered User
 
supaduper's Avatar
 
Join Date: Oct 2012
Location: Krypton
Posts: 1,210
Quote:
Originally Posted by xubidoo View Post
after swapping out my cheap chinese 16gb CF card for a 16gb Sandisk , i was checking the max transfer settings via hd toolbox and they are as follows.

DH0:PFS\03
Mask 0x7ffffffe
MaxTransfer 0x1fe00
block size 512

DH1:PFS\03
Mask 0x7ffffffe
MaxTransfer 0xffffff
block size 512

DH2:PFS\03
Mask 0x7ffffffe
MaxTransfer 0xffffff
block size 512

DH3:PFS\03
Mask 0x7ffffffe
MaxTransfer 0xffffff
block size 512

been reading around and to say the least its rather confusing for a n00b lol
should the max transfer be the same on all drives ? or just the boot drive DH0: ?
blocksize of 512 ok on all drives? seems to b the default..

everything seems to be working just fine, but be nice to know its getting best speed it can.
and it seems to be on PFS\03 v19.2 i think.
any suggestions to improve here or is it all fine as is?

thanks muchly
Don`t lose sleep over it as the Filesystem is pfs3-aio and it is latest version and it safely handles max transfer values, but by all means change the other partitions to 0x1fe00 if it will make you feel better

Never had one crash on this system in over 12 months so I leave mine as is
supaduper is offline  
Old 31 March 2019, 11:35   #6
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
Awesome. I take it the CF you sent me has the latest FS

I hadn't known that it was for file chunks. I thought it was literally to correct speed lol
lesta_smsc is offline  
Old 31 March 2019, 11:46   #7
supaduper
Registered User
 
supaduper's Avatar
 
Join Date: Oct 2012
Location: Krypton
Posts: 1,210
Quote:
Originally Posted by lesta_smsc View Post
Awesome. I take it the CF you sent me has the latest FS

I hadn't known that it was for file chunks. I thought it was literally to correct speed lol
Yep
supaduper is offline  
Old 31 March 2019, 11:51   #8
lesta_smsc
Registered User
 
lesta_smsc's Avatar
 
Join Date: Feb 2012
Location: United Kingdom
Posts: 3,173
Quote:
Originally Posted by supaduper View Post
Yep
Hehe only the best

Working ace BTW and saved me a headache lol. Speaking of which... I'll PM you later lol.
lesta_smsc is offline  
Old 31 March 2019, 13:00   #9
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,215
Quote:
Originally Posted by Jope View Post
If you have an old scsi.device and have the incorrect max transfer size, you will get data corruption. It's a good idea to adjust it even with the OS3.1.4 scsi.device.
Why? Just tell me why... MaxTransfer is only required for broken drivers or broken hardware. If you have an indication that the Os 3.1.4 scsi.device *requires* maxtransfer to operate properly, I would be curious to know. In general: *Do not touch these values*. They can only make the I/O transfer slower, not faster.
Thomas Richter is offline  
Old 31 March 2019, 13:18   #10
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
Quote:
Originally Posted by Thomas Richter View Post
Why? Just tell me why... MaxTransfer is only required for broken drivers or broken hardware. If you have an indication that the Os 3.1.4 scsi.device *requires* maxtransfer to operate properly, I would be curious to know. In general: *Do not touch these values*. They can only make the I/O transfer slower, not faster.
When you swap the drive to a machine without 3.1.4, you will have a problem. I'm concerned with interoperability and always try to give as generic and harmless advice as I can.

If someone knows what they're doing, they are not asking questions anyway, and know where the maxtransfer will and will not be a problem.

I am aware of 3.1.4 having this issue fixed, but was too lazy to be more verbose when posting.
Jope is offline  
Old 31 March 2019, 13:46   #11
MartinW
Registered User
 
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
From the PFS3 documentation on MaxTransfer:

Quote:
This setting indicates how much data can be sent to the device in one go. Some drives cannot handle very large blocks of data. By specifying the maximum the device can handle here, problems are prevented.
There is more, but...

How do we know the maximum that a compact flash card can handle? I'm sure this info was probably hard enough to find back in the days of 90's spinning disks.

Or alternatively, is this documentation out of date and all this is no longer needed which is what people seem to be saying here?
MartinW is offline  
Old 31 March 2019, 13:49   #12
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
Quote:
Originally Posted by MartinW View Post
From the PFS3 documentation on MaxTransfer:



There is more, but...

How do we know the maximum that a compact flash card can handle? I'm sure this info was probably hard enough to find back in the days of 90's spinning disks.

Or alternatively, is this documentation out of date and all this is no longer needed which is what people seem to be saying here?
You can run Thomas' maxtransfertest to verify that you are within the limits of your hardware/software combo.
Jope is offline  
Old 31 March 2019, 13:52   #13
MartinW
Registered User
 
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
Ah cool, thanks.

So basically given then that the info about masks and interfaces is also in that documentation, coupled with being able to use that tool, it's going to be possible to know you've got decent values in there regardless of whether they are ignored or taken into account, like you say, good if you were to move the CF card around or install a different version of OS without re-partitioning.
MartinW is offline  
Old 31 March 2019, 14:32   #14
MartinW
Registered User
 
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
Sorry, one question - where is maxtransfertest? I don't see it on Aminet. Apologies if I'm being thick!
MartinW is offline  
Old 31 March 2019, 14:45   #15
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
https://thomas-rapp.homepage.t-online.de/download.html maxtranstest.lha
Jope is offline  
Old 31 March 2019, 15:13   #16
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Quote:
Originally Posted by MartinW View Post
How do we know the maximum that a compact flash card can handle? I'm sure this info was probably hard enough to find back in the days of 90's spinning disks.
Just to clarify, by "device", the documentation will generally be referring to the device driver (e.g. scsi.device), not the physical hardware. So you don't need to worry about CF cards etc., just what the driver can handle.
Daedalus is offline  
Old 31 March 2019, 15:26   #17
MartinW
Registered User
 
Join Date: Mar 2017
Location: Minehead / UK
Posts: 608
Where's that 'slaps forehead' icon when you need it

Thanks for that

I have to say that after my reading earlier in the week and stumbling across this thread I finally feel like I have a proper grasp on the settings. Hopefully other people will feel the same. It's only taken me about 10 years.
MartinW is offline  
Old 31 March 2019, 16:01   #18
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,215
Quote:
Originally Posted by MartinW View Post
How do we know the maximum that a compact flash card can handle?
You don't need to know. Really. An IDE device has to be able to read 255 blocks (yes, really 255) through one command. The *only* reason why you had to set a mask is because the 3.1 scsi.device had this limit wrong (256 instead of 255). MaxTransfer is *not* dependent on the hardware. As said, it *only* works around faulty device drivers. Same as Mask and BufMemType. A non-broken device driver can take any memory type and any buffer alignment.
Thomas Richter is offline  
Old 31 March 2019, 16:14   #19
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Actually 256 is correct. There is a one byte length field and 0 means 256.

The problem is something else. After reading or writing 256 sectors scsi.device expects some registers have automatically changed which was true by the old ATA specs, but is no longer in the new specs. Toni Wilen found the details, there is a thread about it somewhere on this forum.

Edit: here is a quote from the ATA-2 specs:

Quote:
6.2.4. Cylinder Low register

In CHS Mode, this register contains the low order bits of the starting cylinder address for any media access. In LBA Mode, this register contains Bits 15-8 of the LBA for any media access.

This register shall be updated to reflect the media address of the error when a media access command is unsuccessfully completed.

Implementor’s Note: Prior to the development of this standard, this register was updated at the end of every media access command to reflect the current media address.

Last edited by thomas; 31 March 2019 at 16:26.
thomas is offline  
Old 31 March 2019, 16:16   #20
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by Jope View Post
You can run Thomas' maxtransfertest to verify that you are within the limits of your hardware/software combo.
You can run it, but you must not rely on its result. The only info it can give you is "Yes" or "No", but not the actual value.
thomas is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
IDE & Max Transfer alexh support.Hardware 61 04 December 2023 13:25
A utility that shows realtime transfer rates of disks ancalimon request.Apps 3 09 February 2017 21:46
2nd CF card Max Transfer vertigo support.Hardware 4 19 May 2015 01:39
SCSI Max Transfer CrashMidnick support.Hardware 13 19 December 2013 19:35
CF Hd Max Transfer Problem flushentity support.Hardware 2 12 May 2012 22:15

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 01:01.

Top

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