07 October 2007, 17:28 | #1 |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
hardfile speed problem
I did some more testing on regular hardfiles versus RDB hardfiles and there's a very large difference in speed. I added buffers, used ffs and sfs and it's made no difference. The average read and write speeds are a little less then a meg a second. Normally I can see the effects of the Windows harddrive cache on speeds, especially read speeds, but with the regular hardfiles this affect is very small. It's like the regular hardfiles aren't using the Window harddrive cache like the RDB ones do.
|
07 October 2007, 19:46 | #2 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
Quote:
Perhaps it is due to different "geometry"? |
|
07 October 2007, 21:01 | #3 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Regular Hardfiles
Quote:
I really don't think the geometery would make that much of a difference, I'm talking over two minutes verses 5 seconds. I used to use regular hardfiles and they weren't slow, the only reason I went to RDB hardfiles is because I like doing the partitioning like a real amiga. I think that was about 6 months ago, that's as close as I can get. I don't know what to tell you, with the disk speed program I'm using it really looks like there's no Windows harddrive cache being used on the regular hardfiles. The program writes a 1024000 byte block and then reads it, with my RDB hardfiles the read speed is way up in the gigs per second because it's reading from the cache. With the regular hardfile it's about 900k per sec. Could there be a real narrow bandwidth path the regular hardfiles are going through? If I watch on the screen as the files scroll up it looks like the data is being pushes through a straw. I don't know what I could be doing wrong, setting up a regular hardfile is pretty easy, not very many options. |
|
07 October 2007, 21:16 | #4 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
Quote:
RDB or no RDB HDF uses EXACT SAME CODE. It _IS_ EXACT SAME thing. Only difference is RDB parsing, partition parameters are read from RDB, not from configuration file. (and there are some differences, in "geometry" and other things) (and btw, when did this become 1.4.5-specific problem?) |
|
07 October 2007, 21:55 | #5 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
Maybe there's a bug in using the config file information, the code maybe basically the same but there's still a difference. If I find a possible problem in 1.4.5 doesn't that make it a 1.4.5 specific problem regardless of when the possible problem actually occured? |
|
07 October 2007, 21:59 | #6 | |||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
Quote:
Quote:
and: Quote:
|
|||
07 October 2007, 22:16 | #7 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
Quote:
(and more editing..) Does diskspeed or similar software agree with speed differences? Last edited by Toni Wilen; 07 October 2007 at 22:32. |
|
08 October 2007, 17:31 | #8 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
I took fast RDB hardfile that was created with 1.4.5, changed it back to a regular hardfile with the harddrive panel, formated it and it's much slower. As a RDB it did the test in 11 sec, as a regular it did the test 131 sec. I don't have anything similar to diskspeed, but the copy command and diskspeed both agree that the regular hardfiles are slow. With the regular hardfiles, the files scrolling up the screen using the copy command jerk up about 1/4 screen then pause, then jerk up again and pause, this happens during whole copy process. With the RDB hardfiles it scrolls up smoothly with no pauses unless it's copying a big file like 20 megs. If I didn't do the right thing with converting RDB to regular please advice. |
|
08 October 2007, 17:37 | #9 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
I'm going to try and figure out when the problem with the slow hardfiles started. I'm thinking it started with 1.4.1. Sorry, I'll try and be more specific in the future. |
|
09 October 2007, 12:40 | #10 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
(moved from beta-thread)
|
11 October 2007, 22:23 | #11 |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Regular Hardfiles
I learned something today that you guys might find interesting or not.
For the last couple of days I've been trying to figure out why regular hardfiles are a lot slower then RDB ones. Well Toni straightened me out on that. Regular hardfiles are basically like floppies, they use the old filesystem (OFS). All you have to do when you get into the Amiga is format them using the FFS switch and you now have a regular hardfile that's as fast as a FFS RDB hardfile. You're all probably going dah! Well I didn't know, I've never had to use the FFS switch when formating. |
12 October 2007, 10:56 | #12 |
In deep Trouble
Join Date: Sep 2004
Location: Manchester, Made in Norway
Age: 51
Posts: 841
|
Ed, format from WB... as in select HD, use pulldown "Format" there you can select FFS and DCache ad such.
Personally, I never bother with the RDB..... not under WinUAE. On the A1200, I'm "forced" to care about it |
12 October 2007, 16:20 | #13 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
I already know about WB format, I just didn't realized regular hardfiles used the OFS and it never accured to me to format them with FFS after I figured it out. Personally I like the RDBs, I've used for years with real Amigas and it's something that I understand, and it makes WinUAE feel more like a real Amiga. I also run a full size screen so I pretty much forget I'm actually on a PC. |
|
13 October 2007, 01:26 | #14 |
Amiga Enthusiast
Join Date: Oct 2007
Location: USA
Posts: 217
|
Why format a hardfile with FFS?
Why not use SFS? Could you run your timing tests again with SFS vs. FFS? |
13 October 2007, 21:55 | #15 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
I don't have it, is it something I can find on Aminet? If you select SFS when making a hardfile and don't have it, it will default to OFS. I learned that the hard way, I thought SFS was built into WinUAE, wrong. |
|
14 October 2007, 00:49 | #16 | ||
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
Quote:
I did something wrong, the above quotes came out in the wrong order. I aswered my own question, yes. I downloaded sfs which was uploaded recently, I assume it's the latest. The times are listed below. FFS = 11.5 SFS = 6.0 PFS2 = 4.5 FFS SFS are regular hardfiles, PFS2 is a RDB hardfile, you might be able to adjust the settings if you use SFS with a RDB hardfile and get more speed. All the speeds are the best after running them several times, and all were run on the same running of WinUAE. The times vary each time I bring up WinUAE, not much but a little. |
||
14 October 2007, 01:00 | #17 |
Amiga Enthusiast
Join Date: Oct 2007
Location: USA
Posts: 217
|
You forgot to list:
OFS = 131.0 |
14 October 2007, 01:03 | #18 |
Amiga Enthusiast
Join Date: Oct 2007
Location: USA
Posts: 217
|
Have you any way of measuring CPU usage during the timing tests?
People keep saying that, yes SFS/PFS are "faster". but they use 95% CPU power compared to FFS 10% CPU power. |
14 October 2007, 17:23 | #19 | |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Quote:
I'll try and do cpu usuage today, but I'm kind of busy building a robot at one of the local middle schools, so I may have to get back with you tomorrow. To me it seems reasonable that a faster filing system would use more cpu time because it's faster and therefore is not waiting as much. PFS's main increase in speed comes from it updating the directory after it's done with a copy job, it updates when there's no activity for a couple of seconds, kind of dangerous but efficient. PFS really works good with my USB zip drive, it's a usb1 so the communications isn't real fast so by stuffing the files out first and then updating really helps with speed. I've done through-put tests with a single large file, pfs and ffs are basically the same in speed, it's just the file handling that's more efficient with pfs. |
|
14 October 2007, 18:37 | #20 |
Registered User
Join Date: Sep 2007
Location: Las Cruces, USA
Age: 71
Posts: 351
|
Hard File Speed
It didn't take as long as I thought, but I had to do the test on my A3000/060 because the cpu usuage program I use doesn't seem to get along with the JIT on WinUAE. Even though the program runs at a -128 task priority it still slows other programs down like filing systems. On a real amiga the program has no effect. The numbers I came up with are consistant with my last message.
FFS = 49 sec, 18% usuage PFS = 26 sec, 31% usuage PFS is about twice as fast and a little less then twice the cpu. Don't compare the times with the times I got earlier on WinUAE, the Work: partition on the A3000 is only 30meg, on WinUAE it's about 55megs. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2.0.1 hardfile problem | arti | support.WinUAE | 6 | 31 January 2010 18:33 |
Hardfile problem - created from amiga HD in PC | chiark | support.WinUAE | 7 | 25 January 2008 21:19 |
Creating hardfile problem | Malakie | support.WinUAE | 15 | 07 October 2007 21:16 |
Problem with hardfile under winuae a500 emulation | _ThEcRoW | support.WinUAE | 15 | 21 December 2005 19:37 |
SFS Hardfile recovery problem | D-Dan | support.WinUAE | 8 | 09 November 2004 19:58 |
|
|