Page Index Toggle Pages: 1 Send TopicPrint
Write caches - how to avoid data loss using ULS? (Read 345 times)
Klapauzius
Distributor
**
Offline


ULSer

Posts: 95
Location: Bavaria
Joined: 29.06.07
Gender: Male
Write caches - how to avoid data loss using ULS?
03.07.07 at 19:24:56
Print Post  
Hi gents Smiley,

after a long break from Atarism I have started fiddling again with ULS a bit...

No probs in general, except one thing that keeps bothering me:

when using ICD driver 6.55 (write cache turned on, which is the default setting, I think) I'm experiencing possible data loss when saving a small score file with ULS. Seems quite logical, as TOS low mem is active only for a very short time (when actually saving the file). After that, game low mem gets copied back and TOS interrupts are disabled again, so there's 'no time' for the driver to flush its write cache. If the user decides to reset the machine before TOS has been active long enough (when in the ULS shell again), the data isn't actually written to the disk. And I don't think it is a good idea to introduce a delay just for having the driver's flush timer run out.  Wink - which may have been set  by the user to last several seconds.

This does not happen for me with either HDDriver or AHDI (which do not seem to have enabled write caches by default or at all?).

Soooo .... does anyone of you know a way to disable write caching with ICD driver from within the loader?

Cheers and TIA

Klaz
  
Back to top
 
IP Logged
 
CJ
D-Bug member
Reboot Member
*****
Offline


D-Bug Founder

Posts: 1205
Location: State of Confusion
Joined: 22.02.07
Gender: Male
Re: Write caches - how to avoid data loss using UL
Reply #1 - 03.07.07 at 19:52:56
Print Post  
Hmm interesting.

Didnt have this problem at all with Barbarian II (Psygnosis), and that was the test title for disk-writes.. and that is with ICD tools.

Not really investigated ICD much, most of our battle is with HDDriver, but I'll see what I can find.

BTW, which build of ULS are you using?

  

"With only one button, even drooling fucktards like Kizza can play our game!"
Back to top
 
IP Logged
 
Klapauzius
Distributor
**
Offline


ULSer

Posts: 95
Location: Bavaria
Joined: 29.06.07
Gender: Male
Re: Write caches - how to avoid data loss using UL
Reply #2 - 03.07.07 at 20:12:52
Print Post  
I'm using build 1.4 - I think it's the latest one that has been published?

But there are lots of changes to the original code, for example I'm writing back altered TOS low mem to the ULS TOS buffer, before restoring the app low mem. Did that because I had problems once when using ULS for floppy saving - may have had something to do with internal TOS sector buffers mixups... (?)

Ah yes ... that data loss prob doesn't occur every time with ICD, but definitely not at all with AHDI or HDDRiver (8.13).

Anyway, thanks for investigating. Smiley

Cheers

Klaz
  
Back to top
 
IP Logged
 
CJ
D-Bug member
Reboot Member
*****
Offline


D-Bug Founder

Posts: 1205
Location: State of Confusion
Joined: 22.02.07
Gender: Male
Re: Write caches - how to avoid data loss using UL
Reply #3 - 03.07.07 at 22:02:06
Print Post  
PM me a mail address and I'll send the latest build, complete with the debugger screens - It's a hell of a lot more stable now.
  

"With only one button, even drooling fucktards like Kizza can play our game!"
Back to top
 
IP Logged
 
Klapauzius
Distributor
**
Offline


ULSer

Posts: 95
Location: Bavaria
Joined: 29.06.07
Gender: Male
Re: Write caches - how to avoid data loss using UL
Reply #4 - 04.07.07 at 04:47:51
Print Post  
Done!

Thanks a lot CJ.  Smiley

Klaz
  
Back to top
 
IP Logged
 
CJ
D-Bug member
Reboot Member
*****
Offline


D-Bug Founder

Posts: 1205
Location: State of Confusion
Joined: 22.02.07
Gender: Male
Re: Write caches - how to avoid data loss using UL
Reply #5 - 04.07.07 at 16:15:01
Print Post  
You have mail.
  

"With only one button, even drooling fucktards like Kizza can play our game!"
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
 
  « Board Index ‹ Board  ^Top