Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Harvey ! (Registered 2024-11-25) You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > Fastest SD2IEC performance
2017-04-25 21:20
alterus

Registered: Feb 2016
Posts: 10
Fastest SD2IEC performance

I'm currently using an SD2IEC as a system drive for my BBS. I've been experimenting trying to get the best performance possible out of the SD2IEC, especially with a large number of files. I currently have approximately 400 files on the subs partition using a FAT32 format. It can take up to 5 seconds to seek some files. My goal is to have several thousand files on the SD card and still have reasonable performance.

Does anyone here have experience with different SD2IEC configurations, including formatting type or SD card type, to optimize SD2IEC seek performance? I might add, I'm also using JiffyDOS.
2017-04-26 02:27
jcompton

Registered: Feb 2006
Posts: 70
Have you considered directly asking Ingo Korb, the firmware developer, for tips? I've found him pretty responsive in the past.
2017-04-26 05:58
Oswald

Registered: Apr 2002
Posts: 5086
I'd use ide64 with sd adapter. Soci worked his ass off to make it fast and reliable for years and years.
2017-04-26 11:44
ilesj

Registered: Jun 2012
Posts: 27
Quoting alterus
Does anyone here have experience with different SD2IEC configurations, including formatting type or SD card type, to optimize SD2IEC seek performance?

I have understood that the typical SD card speed ratings have very little to do with random access read performance. All in all the speed class ratings indicate write performance, and the speed class ratings starting from Class 10 are for sequential write. So it might be that some older card with Class 6 or 4 may outperform some "faster" cards in random access read and write with small files.
2017-04-26 19:06
soci

Registered: Sep 2003
Posts: 479
It's slow because it has to go through a lot of data for all those filenames. Especially for FAT where you have the 8.3 entry plus some additional long filename entries for the same file.

Simply don't put that many files in a single directory. Instead organize them to several directories if this works with the BBS.

Long directories are not that much an issue for modern filesystems using hashes and trees on directories. FAT uses lists so searching performance is not all that good.

The CFS filesystem I made for IDEDOS 0.9x is using lists for directories too. But each entry is only 32 bytes so it needs to read and process much less data for searching the same number of files.

CFS was designed to store C64 stuff so it's using 16 character entries with a 3 character type. This might feel limiting but it's better for compatibility for software expecting floppy disks or CMD hardware.

Just for fun I've timed the worst case (file not found) for a directory with 400 entries on CFS. It's roughly 0.3 seconds with a CF card on a stock C64 and ~15 milliseconds using a SuperCPU.

So there's a serious performance problem there if even a 985 kHz 6502 beats it by this much. My opinion is that a little fine tuning will not give the sort of performance boost you're hoping for.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
St0rmfr0nt/Quantum
Aomeba/Artline Desig..
cba
Electric/Extend
zscs
Andy/AEG
katon/Lepsi De
Steffan/BOOM!
theK/ATL
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Mutetus  (9.7)
4 Jammer  (9.6)
5 Linus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.051 sec.