10 March 2020, 15:33 | #1 |
Registered User
Join Date: Sep 2006
Location: New Sandusky
Posts: 942
|
Best Amiga performance via storage cache
I wanted to share something here because it's been overlooked a lot by a lot of people. Most Amiga setups have very poor mass storage bandwidth (it seems most people are using a Gayle-style IDE interface) despite having fast processors coupled with fast memory access.
AmigaOS, all the way from 1.0 to 3.1.4/3.9 has had a long of history of poor mass storage caches. The OS implements a read-only cache system, and by default most people never use it to its full potential. This has its roots in the 1980's era of RAM-starved systems, where buffers were kept lean to avoid excessive memory allocation. Floppy drives, hard drives, flash memory, whatever you use have a read-only buffer. On floppy drives this is configured automatically, and on mass storage this is configured in your mountlist (with the Buffers line) or on the autoconfig mountlist stored in RDB (also Buffers line). You can easily enlarge this using the AddBuffers command. If you have a modern Amiga with a lot of memory, just make this HUGE. e.g. if your system has 128M of memory, give your partitions 10M+ each of buffers and you'll notice the performance improvement. Even better, use a more modern writeback buffer system like PowerCache or FDA. Your workbench performance will improve by a factor of 10, and any heavily storage-interactive software will improve similarly. You'll also see this performance improvement in games that use the OS routines (whether floppy or hard disk). The reason for this is that, without exception, the performance on Amiga mass storage controllers is terrible. It's particularly terrible if you're using one on the Amiga's motherboard bus (e.g. A1200 IDE controller, most Gayle emulators, etc.), and even on fast IDE controllers like FastATA the bandwidth is bad and the CPU usage is huge. Even if you have a fast DMA SCSI controller on your CPU card (e.g. Cyberstorm) there's still a bottleneck. None of it can compete with RAM. The crazy thing is that installing Powercache or FDA can even somewhat improve performance on WinUAE where all the devices are virtualized and executed out of RAM on the host system. The latency improvement helps even then. If you have an Amiga with some RAM to spare, even sparing a few megabytes on a 32M system, give improving the caches a try. You'll notice the difference immediately. Even if you just give it a few megabytes. On my A4000 with CyberstormPPC using UltraSCSI/160 drives on the DMA bus, it still made a night and day improvement in general operations. |
10 March 2020, 15:53 | #2 |
Registered User
Join Date: Feb 2009
Location: Amiga
Posts: 465
|
Can you do some benchmarks with and without READ BUFFER, PowerCache, and FDA.
It would be interesting. I just checked Aminet and cannot find PowerCache or FDA. Anybody have a spare copy? |
10 March 2020, 16:10 | #3 | |
Registered User
Join Date: Sep 2006
Location: New Sandusky
Posts: 942
|
Quote:
Most of my experience is with PowerCache not FDA. PowerCache: http://aminet.net/package/disk/cache/PowerCache FDA: http://aminet.net/package/disk/cache/fda I don't know where to find the cracks right now (though I used a cracked PowerCache constantly for many years). FDA I didn't use too much back in the day even though it's newer. I'm sure you can appreciate though that AmigaOS default read cache sizes were tiny (fixable with Addbuffers) , and that it had no writeback cache (hence the need for no "shutdown" command to flush buffers). Writeback caches help a *LOT* by unblocking software instead of waiting for the disk operation to complete. This is what helps WinUAE -- it saves many cycles of latency between the emulated environment and the host OS's disk caching even though the disk operation is super fast on a modern x86 system. EDIT: The reason I posted this is that I realized a lot of people are using A1200s with compactflash cards on the Gayle interface. Watching on Youtube I see their workbench performance suffer because of this -- even with the effectively-zero latency of the flash card they're still held back by waiting for I/O operations to complete through the soda straw of Gayle. It's the difference between waiting for a second or two to copy disk images to the process completing in milliseconds (with the operation finishing behind the scenes while you move on). It seems like a small amount of time to wait, but it's huge from a user interface perspective. It's why everything seems so snappy on Windows/Linux. Last edited by AmigaHope; 10 March 2020 at 16:30. |
|
23 March 2020, 06:32 | #4 |
Banned
Join Date: Mar 2020
Location: Nijmegen, Netherlands
Posts: 46
|
Linking Aminet is useless, all files in "cache" directory are missing and have been for an unknown amount of time.
|
23 March 2020, 12:51 | #5 |
Registered User
Join Date: Mar 2004
Location: finland
Posts: 1,838
|
|
23 March 2020, 12:51 | #6 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,001
|
Write caches on a system without memory protection is something I don't take a risk on :-) But to each his own.
|
23 March 2020, 19:27 | #7 |
Banned
Join Date: Mar 2020
Location: Nijmegen, Netherlands
Posts: 46
|
If programs are trashing memory that doesn't belong to them, your computer is going to crash. So you'd have discovered them long before installing a drive cache.
|
23 March 2020, 20:05 | #8 | |
Registered User
Join Date: Jul 2014
Location: Finland
Posts: 1,176
|
Quote:
How optimistic... And i guess you also don't care about potentially silently writing out invalid data or just completely losing writes from unflushed caches on a system as stable as AmigaOS. No sorry, i don't think the Amiga was ever something i'd dare to run a write cached filesystem on either. |
|
24 March 2020, 14:31 | #9 | |
Not a Rebel anymore
Join Date: Apr 2005
Location: UK
Age: 51
Posts: 499
|
Quote:
all of the data comes from memory before going to disk anyway, so while it does increase the risk with it being held in memory for longer, if something is randomly corrupting memory it's still very possible to be writing out corrupt data however you look at it. |
|
25 March 2020, 09:25 | #10 | |||
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,549
|
Quote:
Quote:
Quote:
|
|||
25 March 2020, 11:37 | #11 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,336
|
|
25 March 2020, 11:52 | #12 |
Junior Member
Join Date: Sep 2001
Location: No(R)Way
Age: 41
Posts: 3,189
|
Yes, both links work fine here also.. Btw: at the time of the post the files could not be found, looks like someone fixed that directory as all files works fine now..
|
25 March 2020, 14:18 | #13 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
|
25 March 2020, 14:25 | #14 | |
Registered User
Join Date: Aug 2006
Location: Augusta, Georgia, USA
Posts: 550
|
Quote:
I always tell my coworkers- "What are we paying these computers to sit around for?" |
|
25 March 2020, 15:56 | #15 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
I think with >= 64MB fastram you can start waste some megabytes. I was in the same situation with my 32MB fastram system. There isn't much room for spending MBs of ram on such a low ram system. It's easy to get out of memory situations.
|
25 March 2020, 17:38 | #16 | |
Junior Member
Join Date: Sep 2001
Location: No(R)Way
Age: 41
Posts: 3,189
|
Quote:
"disk/cache has been restored, wait for a bit for all the mirrors to catch up. Checks are being done to see if other packages are missing from the mirrors as well. " |
|
27 March 2020, 05:34 | #17 |
Banned
Join Date: Mar 2020
Location: Nijmegen, Netherlands
Posts: 46
|
The reason why the files on Aminet are now available is because I had them fixed. That's my thread.
I installed a cracked powercache from the FTP server a few days ago. It's such an old bit of software there is a bit of buggy behavior I've noticed. My DH1: is a 2GB PFS partition, and setting the automatic cache to "large" crashes the program when it tries to calculate how big it'd be. My DH0: is 2GB FFS and doesn't provoke that behavior. Other than that it boots noticeably faster. Haven't noticed much improvement browsing the disks, haven't had any instability or corruption. I should probably try some real world benchmarks archiving big LHAs or something. This is with FastATA 1200 in PIO5 and an 030 40Mhz. Last edited by Kyle_Human; 27 March 2020 at 05:43. |
27 March 2020, 08:13 | #18 | ||
Registered User
Join Date: Sep 2006
Location: New Sandusky
Posts: 942
|
Quote:
Quote:
Note that since you have a FastATA you're a bit less bandwidth-limited than plain Gayle users, and you might notice your CPU performing a bit *slower* because the background I/O will be making more heavy use of the FastATA (instead of software blocking on writes) but overall stuff will complete faster and smoother. On my A4000 I noticed performance improvements even using the Ultra SCSI controller on my Cyberstorm PPC (best case scenario on classic Amiga), but they were small -- essentially stuff ran slightly smoother in multitasking. Anytime I started to do work on the A4000's onboard IDE controller though, it became like night and day. Stuff stopped blocking on the horrible bottleneck. |
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amiga 68020+ external cache use? | roondar | Retrogaming General Discussion | 8 | 12 April 2019 10:07 |
Amiga Storage | GSP | support.Other | 0 | 07 July 2018 23:06 |
Amiga Cache of Minnesota!!! Raymond Computer is Liquidating. | Claw22000 | MarketPlace | 17 | 29 March 2011 04:55 |
Disk cache, pre-cache | NoULTalk | Coders. General | 7 | 30 January 2010 19:07 |
Amiga Image Storage System 3.1 available | Paul | News | 0 | 17 September 2006 16:25 |
|
|