(02-17-2025, 09:59 PM)twix Wrote: The machine is perfectly usable, but I am curious why I am getting these numbers, and what the bottleneck is.
The bus speed number you're quoting is a theoretical maximum speed for the entire chain. Most of the time the devices don't go near that speed. For example it was pretty rare for a hard drive even in the last revision of parallel SCSI to actually be able to saturate the chain. I would think that back when this machine was made you could expect a hard drive to maybe go to maybe 5 MB/second. Remember we were still dealing with floppy disks back then.
First of all speeds depends on which ZuluSCSI you got, if it's NOT the red RP2040 version...well the lesser versions are going to be slower. But I would agree that I would expect closer to 5MB/s then you're getting
It also depends on the SD card and one thing that we haven't discussed and unfortunately I haven't had the set up or time to test would be alignment of the SD card and proper creation of the SD card's file system.
I don't know how many people in this forum remember when SSDs came out in the consumer market, but that's what we all had to worry about. We had to worry about NAND erase boundary byte alignment and file system cluster sizes if you wanted actual performance. One thing that was always recommended is that you download the SD card associations official formatter from their website. It's available for both windows and MacOS last time I looked.
The formatting application guarantees that they are at least placing the file system in the correct starting alignment to match the erase block boundary of the SD card. They also make best attempt to make sure the file system cluster size is an even multiple of the erase block.
I suspect that things like this as well as potential issues like lack of read ahead might be the reason that there are some performance misunderstandings with some of these new adapters. None of the adapters seem to have instructions that say you'll benefit from performing alignments. But I'd have to assume that they would. Especially because in my personal experience SD cards are always much slower than they're advertised for. So if you want to get whatever you're going to get out of them you definitely need to make sure that they're optimally formatted as they originally came out of the package. Normally SD cards are formatted optimally when they were packaged. But most people immediately blow that away not understanding that the manufacturer may have actually chosen a specific cluster size and a specific offset to gain you the most speed. That's why it's advantageous to take a look at these things when you get a new SD card before you start fiddling with it.
Either way I would start with the SD association's formatting application:
https://www.sdcard.org/downloads/formatter/
From general memory I would say you should be using an exFAT with 128 KB cluster size, making sure you start on an block erase aligning boundary for your SD card (which the formatter should try do for you). However the secondary problem is you still need to make sure that your main XFS file system and swap in your disk image on the SD card is also properly aligned on the SD card.
It would definitely be helpful if somebody that knows how to read the FX output could chime in on how to check the offsets to make sure that they're starting at a flash erase boundary! Even with an aligned SD card exFAT formatting you could still have an unaligned image of the virtual hard drive that still trashes your performance. Technically even though you can't control how the disc label starts and that kind of stuff you can control the offset of the partitions/volumes. So I believe you can actually make a default disc label then erase some of the partitions then put them back in the correct order but manually specifying the starting offset for the critical partitions, such as swap and the main file system.
XFS wants to be a 4K cluster size anyway so that should still be fine if you're all aligned.
But I'm going let an expert tell me how I'm supposed to read FX layout output because I always get confused on what the numbers actually represent. But I am very interested to have the opportunity to try this because I firmly believe that part of the performance were not getting is not critically aligning the final file systems used under emulation in accordance with the underlying flash media, along with aligning the native file system on the flash media as well. This should only waste a tiny amount of space and considering that most people are buying 32 GB are higher for their SD cards I don't think you'll actually notice the loss in space versus the increase in performance you'll be gaining.