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


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

Registered: Feb 2016
Posts: 3
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 04:27
jcompton

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

Registered: Apr 2002
Posts: 4038
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 13:44
ilesj

Registered: Jun 2012
Posts: 18
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 21:06
soci

Registered: Sep 2003
Posts: 332
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
TheRyk/MYD
Alakran_64
hedning/G★P
Rock/Finnish Gold
Guests online: 57
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 The Shores of Reflec..  (9.6)
4 Coma Light 13  (9.6)
5 Lunatico  (9.6)
6 Comaland 100%  (9.6)
7 Incoherent Nightmare  (9.5)
8 Wonderland XII  (9.5)
9 Comaland  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.5)
2 SidRok  (9.5)
3 Daah, Those Acid Pil..  (9.5)
4 Treu Love [reu]  (9.4)
5 Tunnel Vision  (9.3)
6 Dawnfall  (9.3)
7 One-Der  (9.2)
8 Hardware Accelerated..  (9.2)
9 Globe 2016 [reu]  (9.2)
10 Safe VSP  (9.1)
Top Groups
1 Booze Design  (9.4)
2 Oxyron  (9.4)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Camelot  (9.2)
Top NTSC-Fixers
1 Pudwerx  (9.8)
2 Horizon  (9.7)
3 Fungus  (9.6)
4 Booze  (9.5)
5 Stormbringer  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2017
Page generated in: 0.168 sec.