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

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

Registered: Feb 2016
Posts: 9
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

Registered: Feb 2006
Posts: 18
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

Registered: Apr 2002
Posts: 4266
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

Registered: Jun 2012
Posts: 23
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

Registered: Sep 2003
Posts: 393
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
Users Online
Guests online: 44
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 Comaland 100%  (9.6)
5 The Shores of Reflec..  (9.6)
6 Wonderland XII  (9.6)
7 Lunatico  (9.6)
8 We Come in Peace  (9.5)
9 Incoherent Nightmare  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 FMX Music Demo  (9.6)
2 Daah, Those Acid Pil..  (9.5)
3 Pandemoniac Part 2 o..  (9.5)
4 Party Horse  (9.5)
5 Treu Love [reu]  (9.5)
6 Merry Xmas 2017  (9.4)
7 Arok 20 Invitation  (9.4)
8 Dawnfall V1.1  (9.4)
9 In Memoriam BHF  (9.4)
10 Dawnfall  (9.4)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.4)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Horizon  (9.8)
3 The Mind Slayer  (9.7)
4 The Shadow  (9.7)
5 Stormbringer  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.048 sec.