Welcome, Guest. Please login or register.

Author Topic: Performance difference between PFS3 and UFS2 ?  (Read 1910 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline freqmaxTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Performance difference between PFS3 and UFS2 ?
« on: April 20, 2011, 02:53:54 AM »
How is the performance difference between PFS3 (Amiga) and UFS2 (FreeBSD) ..?

Of course considering factors like CPU speed and architecture, memory speed, disc controller, disc bus, disc drive.
 

Offline kolla

Re: Perforrmance difference between PFS3 and UFS2 ?
« Reply #1 on: April 20, 2011, 05:05:24 AM »
Port PFS3 to FreeBSD and find out.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline olsen

Re: Perforrmance difference between PFS3 and UFS2 ?
« Reply #2 on: April 20, 2011, 07:15:41 AM »
Quote from: kolla;632540
Port PFS3 to FreeBSD and find out.


Good one ;)  But there would be some merit to analyze what PFS3 does, and how well, too. As far as I know, no detailed analysis of PFS3 was ever published which goes into the details of how the storage allocation works, how fragmentation is kept at bay, and how the data structures look like. By comparison, all this is known and documented for the old Unix file system, and even the Amiga's various own OFS/FFS/DCFS flavours.
 

Offline Thomas

Re: Perforrmance difference between PFS3 and UFS2 ?
« Reply #3 on: April 20, 2011, 09:11:26 AM »
Quote
As far as I know, no detailed analysis of PFS3 was ever published which goes into the details of how the storage allocation works, how fragmentation is kept at bay, and how the data structures look like.


Data structures were delivered with the product in form of a C header file and the documentation contains a bit of information about how fragmentation is kept small. IIRC it always allocates new files in the largest contiguous free area.

Offline olsen

Re: Perforrmance difference between PFS3 and UFS2 ?
« Reply #4 on: April 20, 2011, 10:06:30 AM »
Quote from: Thomas;632553
Data structures were delivered with the product in form of a C header file and the documentation contains a bit of information about how fragmentation is kept small. IIRC it always allocates new files in the largest contiguous free area.


I was hoping for documentation, not data structure declarations ;)  As with data structures, algorithms and the intentions behind them are often hard to fathom in file systems. You wouldn't know how the Amiga FFS, for example, does its job by looking at the source code. You have to read and understand the whole thing, look at what is written to the storage medium. It's better if the designer goes to some lengths to explain what is going on inside the code.

As for managing fragmentation, it's one of the toughest tasks in a file system. Using the largest free fragment by default is not necessarily a winning strategy, as there might be other free fragments which are shorter and might fit the size requirements better without wasting additional space. Also, one has to consider the distance between the end of the file and the place where the new data goes. XFS, for example, keeps track of both proximity of free space and size of free space in two separate b-tree data structures. Through this XFS can both find the smallest free space fragment that fits, and which is closest to the end of the file to be extended.