Welcome, Guest. Please login or register.

Author Topic: PFS/SFS  (Read 3054 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline BinoXTopic starter

  • Sr. Member
  • ****
  • Join Date: Oct 2005
  • Posts: 454
    • Show only replies by BinoX
PFS/SFS
« on: July 26, 2007, 05:18:21 PM »
Looking through a bunch of stuff I got off a friend the other day and I noticed a disk with PFS3 on it...

I was wondering what features PFS3 has... And how does it compare to SFS? (or how doesn't it I suppose)

Thanks,
Luke
Back to action!
 

Offline wurzel

  • Sr. Member
  • ****
  • Join Date: Jan 2007
  • Posts: 273
    • Show only replies by wurzel
    • http://www.wurzel.co.uk
Re: PFS/SFS
« Reply #1 on: July 26, 2007, 08:50:47 PM »
If you got a disk, was it a CD? If so, it will have a manual on it ;)

I don't know the features of SFS, but PFS3 includes the following:

The ability to retrieve up to the last 900 files deleted on the partition.

The ability to have long filenames (I have mine set to 85 characters, but it can go longer, but I can't remember how much).

Supposedly safe writing to disk (it doesn't write the file to disk until the whole file is ready to go, or something, so that if you get a power cut, you don't lose the original file).

A MUCH faster disk drive reading/writing/deleting capability. This alone, is worth the price I paid originally.

I'm sure there is more, I just can't remember  :pint:  :pint:
--
A1200 Power Tower, Blizzard 060 with SCSI, 196mb Ram, Mediator, Voodoo 5500, Spider USB, Hauppage TV, Soundblaster & Fast Ethernet cards, 2gb boot/program drive, 40gb data drive, 40x12x48 CDRW
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: PFS/SFS
« Reply #2 on: July 26, 2007, 09:17:33 PM »
Quote
it doesn't write the file to disk until the whole file is ready to go, or something, so that if you get a power cut, you don't lose the original file

It's called soft updates, which is based on concept of atomic commit.

Basically it does write to disk right away, but it does it in a way that the filesystem logical structure cannot get corrupted even if power is lost. The final single write replaces the previous "snapshot" of the state of the filesystem with a new one. If power is lost before the final write can be made, the filesystem automagically rolls back to previous state.

Simple (and simplified) way to visualise this is think about filesystem metadata as a tree: Trunk is the root directory. Branches are the subdirectories, leaves are the files. When changes occur to this tree, PFS3 updates clone of the tree structure in memory. When PFS3 does the "commit" it writes the file structure to disk in reverse order (from top down) [actually it only writes the changed parts, but it uses free blocks, it doesn't modify the original tree at all]. The final write "plants" the new tree, replacing the old one. If the write was successful, the storage held by the now obsoleted old tree parts are released for future use.

This is different from filesystem journaling SFS has.
 

Offline BinoXTopic starter

  • Sr. Member
  • ****
  • Join Date: Oct 2005
  • Posts: 454
    • Show only replies by BinoX
Re: PFS/SFS
« Reply #3 on: July 27, 2007, 01:32:03 AM »
Ah, I see... That kinda makes sense..

Which one would you recommend running on a standard user desktop/3d games/whdload machine? (PFS or SFS?)

(btw.. just for the info.. My PFS3 is actually a PFS2 CD with a PFS3 upgrade disk)
Back to action!
 

Offline LaserBack

  • Sr. Member
  • ****
  • Join Date: Mar 2007
  • Posts: 346
    • Show only replies by LaserBack
Re: PFS/SFS
« Reply #4 on: July 27, 2007, 06:45:40 AM »
Quote

BinoX wrote:
Ah, I see... That kinda makes sense..

Which one would you recommend running on a standard user desktop/3d games/whdload machine? (PFS or SFS?)

(btw.. just for the info.. My PFS3 is actually a PFS2 CD with a PFS3 upgrade disk)


PFS of course cause is lot faster than SFS
 

Offline pVC

Re: PFS/SFS
« Reply #5 on: July 27, 2007, 03:23:15 PM »
I haven't made good enough tests, but for "real life use" SFS feels faster IMHO. And I think PFS only supports 512 blocksize, so if you handle lots of big files, you might want bigger blocksizes with SFS. But anyway, choosing between SFS and PFS3 is pretty much in your feelings :) They're both quite similar with features. Most notable differences are that PFS3 has better repairing tools, but SFS is free.

I have both PFS3 and SFS partitions on Amiga(s) and on Pegasos. Both have worked fine. Usually I prefer SFS with 1024 bytes blocksize.
Daily MorphOS user and Amiga active.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: PFS/SFS
« Reply #6 on: July 27, 2007, 03:30:13 PM »
Quote
I haven't made good enough tests, but for "real life use" SFS feels faster IMHO.

SFS is slower in real life use I have to say. SFS can get unbearably slow quite easily, say for example two applications writing to large files at the same time (they get blocks allocated in 1-2-1-2-1-2 fashion, resulting in massive worst-case-scenario fragmentation). That's quite stupid oversight from supposedly "smart" filesystem.

Last time I tested SFS it commited suicide after copying 20GB of data. Though I do admit that this is no indication of anything... ;-)
 

Offline pVC

Re: PFS/SFS
« Reply #7 on: July 27, 2007, 05:01:00 PM »
Yeah, well.. fragmentation is a problem if you don't pay attention to it :) Better not to download several movies at once etc.. or at least download them to separate temp partition and copy them one at once to final destination. When you're aware it, it's pretty easy to keep partitions non fragmented. But booting, scanning and using non fragmented partition feels faster (IMHO).

I haven't had problems with big amounts of data. I've copied several times over 100G batches without problems over the years and systems.

Filesystem errors I've got similar amount on PFS3 and SFS.. not too often on either. Couple times over the 10 years... with PFS3 it usually can be fixed with pfsdoctor/diskvalid, but SFS needs reformatting. On Pegasos I haven't got any.. so it might have been because of kludgy & patched up a1200 too ;)
Daily MorphOS user and Amiga active.
 

Offline ChrisH

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 92
  • Country: 00
    • Show only replies by ChrisH
    • http://cshandley.co.uk/email
Re: PFS/SFS
« Reply #8 on: July 27, 2007, 06:04:29 PM »
I used to be a big fan of PFS (and before when it was called AFS), but eventually ditched it (last year) for SFS because PFS's support for long file names is terminally broken - using long file names can corrupt the current folder or even the whole disk.  I haven't looked back since :-)

Oh, and yes, I did have PFS set-up correctly.  There was a lot of discussion about how to do it correctly, from when it was still called AFS, and it worked fantastically well apart from the long file name problem.
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: PFS/SFS
« Reply #9 on: July 27, 2007, 06:13:00 PM »
@ChrisH

I've never seen this long file name problem, and I do have tons of files with long names. In fact, this is the very first time I've ever heard of such problem.

Out of interest, how can I reproduce it?
 

Offline BinoXTopic starter

  • Sr. Member
  • ****
  • Join Date: Oct 2005
  • Posts: 454
    • Show only replies by BinoX
Re: PFS/SFS
« Reply #10 on: July 27, 2007, 08:52:47 PM »
Hmm, I may have to get a couple of systems set up and try to run them side by side with the same configs and see what result I get.

Thanks for all the info guys :)
Back to action!
 

Offline pVC

Re: PFS/SFS
« Reply #11 on: July 28, 2007, 12:53:10 PM »
Hmmm... I don't know if one problem on PFS was because of long filenames or what, but resulting corruption of current dir or whole disk sounds familiar.

I had reproduceable problem with wu-ftpd and PFS3 on my A1200. If I tried to write stuff with ftp to place which wasn't allowed to write, the PFS flipped completely and messed up dirs. Same didn't happen on SFS.
Daily MorphOS user and Amiga active.
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: PFS/SFS
« Reply #12 on: July 28, 2007, 01:36:39 PM »
Quote

ChrisH wrote:
I used to be a big fan of PFS (and before when it was called AFS), but eventually ditched it (last year) for SFS because PFS's support for long file names is terminally broken - using long file names can corrupt the current folder or even the whole disk.  I haven't looked back since :-)

Oh, and yes, I did have PFS set-up correctly.  There was a lot of discussion about how to do it correctly, from when it was still called AFS, and it worked fantastically well apart from the long file name problem.


what i "love" about your sentences, is the "absolute" way you post it!

what about to start with  "on my system" for example? ;-)

ah... obviously PFS3 doesn't have any problems with long filenames

 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: PFS/SFS
« Reply #13 on: July 28, 2007, 01:39:42 PM »
Quote

pVC wrote:
Hmmm... I don't know if one problem on PFS was because of long filenames or what, but resulting corruption of current dir or whole disk sounds familiar.

I had reproduceable problem with wu-ftpd and PFS3 on my A1200. If I tried to write stuff with ftp to place which wasn't allowed to write, the PFS flipped completely and messed up dirs. Same didn't happen on SFS.


then i suggest to tell to the wu-ftp author, to fix his tool.

The same happened a couple years ago with Amigift also .... fixed then by his author ;-)

 
 

Offline wurzel

  • Sr. Member
  • ****
  • Join Date: Jan 2007
  • Posts: 273
    • Show only replies by wurzel
    • http://www.wurzel.co.uk
Re: PFS/SFS
« Reply #14 on: July 28, 2007, 01:43:59 PM »
Quote

ChrisH wrote:
I used to be a big fan of PFS (and before when it was called AFS), but eventually ditched it (last year) for SFS because PFS's support for long file names is terminally broken - using long file names can corrupt the current folder or even the whole disk.  I haven't looked back since :-)

Oh, and yes, I did have PFS set-up correctly.  There was a lot of discussion about how to do it correctly, from when it was still called AFS, and it worked fantastically well apart from the long file name problem.


Which version of PFS are you referring to? IFAIK AFS was many, many years ago then became PFS. Then there was PFS2 & the final version, PFS3. I use PFS 3 with filenames 85 characters long (not the maximum) & I haven't had any problems.

The occasions I have had trouble, I can't remember what it was (so long ago) PFSDoctor fixed it. I've been using PFS3 for around 8 years & my miggy is on 24/7 (it's an answerphone/fax!)
--
A1200 Power Tower, Blizzard 060 with SCSI, 196mb Ram, Mediator, Voodoo 5500, Spider USB, Hauppage TV, Soundblaster & Fast Ethernet cards, 2gb boot/program drive, 40gb data drive, 40x12x48 CDRW