Welcome, Guest. Please login or register.

Author Topic: PFS3 block size  (Read 8798 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Golem!dk

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 414
    • Show only replies by Golem!dk
    • http://www.google.com/
Re: PFS3 block size
« Reply #14 on: September 23, 2010, 11:33:53 AM »
It would have been released with Amiga Future magazine by now I guess, but PFS3 is kinda old by now, so some of us have actually been using it for several years.
« Last Edit: September 23, 2010, 11:37:24 AM by Golem!dk »
~
 

Offline brownb2

  • Full Member
  • ***
  • Join Date: Aug 2010
  • Posts: 224
  • Country: 00
    • Show only replies by brownb2
    • http://www.silentdevelopment.co.uk
Re: PFS3 block size
« Reply #15 on: September 23, 2010, 11:34:29 AM »
'fraid not I'm just querying best block sizes for an Amiga in general.
A600 2MB Chip, 4MB PCMCIA, 11MB Fast, ACA-620 OC 680EC20@25MHz, RTC, 512MB CF
A1200 - 2MB Chip 8MB Fast, MTEC Viper 68030@42MHz MMU, 68882 FPU, RTC, 1GB CF
AmigaKit A600GS
Retro Games A500 Mini
Atari 520 STFM - 1MB, Multiface ST.
Commodore 16 - 64K Mod, SD2IEC Drive
Commodore 64C - 64K, SD2IEC Drive
ZX Spectrum 48K Rubber Keys
 

Offline wawrzon

Re: PFS3 block size
« Reply #16 on: September 23, 2010, 11:36:25 AM »
i refer to a free release as been talked about lately. so its been released with af by now. have to consider, tastes a little fishy.
 

Offline Golem!dk

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 414
    • Show only replies by Golem!dk
    • http://www.google.com/
Re: PFS3 block size
« Reply #17 on: September 23, 2010, 11:39:25 AM »
You could go read the thread, there's some drama if you enjoy that kind of thing with your fish, but the release by AF is legit.
~
 

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: PFS3 block size
« Reply #18 on: September 23, 2010, 11:44:26 AM »
Quote from: brownb2;580788
I think you might have missed my second edit - I was referring to file systems in general (in the context Amiga file systems).

The absolute answer you questioned was the only correct answer to the question presented.

Regarding blocksize: Using large blocksize to gain performance only makes sense with poor filesystems that don't keep the data sequental (and thus don't perform mostly sequental access), or with hardware that actually uses larger hardware block size.

FFS is notoriously slow so with that you get a performance boost.

PS. While some amiga file systems allow 4k block sizes (and thus seem to be ready for the new 4k block size hard drives) there still is the issue of proper alignment. In order to obtain best performance the partition beginning must be aligned by the block size, too. I doubt the Amiga partitioning programs account for this.
 

Offline Golem!dk

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 414
    • Show only replies by Golem!dk
    • http://www.google.com/
Re: PFS3 block size
« Reply #19 on: September 23, 2010, 11:45:40 AM »
Quote from: brownb2;580792
'fraid not I'm just querying best block sizes for an Amiga in general.


In general? :) And of course not everyone uses the builtin ide controllers... so that's another thing for you to consider. But do post your results, would be more interesting than speculation.
~
 

Offline brownb2

  • Full Member
  • ***
  • Join Date: Aug 2010
  • Posts: 224
  • Country: 00
    • Show only replies by brownb2
    • http://www.silentdevelopment.co.uk
Re: PFS3 block size
« Reply #20 on: September 23, 2010, 12:20:03 PM »
Quote from: Piru;580795
The absolute answer you questioned was the only correct answer to the question presented.
You missed the boat then re. second edit added specifically because I read the entirety of the thread after submitting the post. ;)

Quote from: Piru;580795
Regarding blocksize: Using large blocksize to gain performance only makes sense with poor filesystems that don't keep the data sequental (and thus don't perform mostly sequental access), or with hardware that actually uses larger hardware block size.
I disagree. Since block size is a minimum unit size you are also discussing the impact on the CPU and the amount of usable data transferred in a given time. An extreme example - if the average file size being read is 1K and a cluster size is 8K (thus transfer block size) it'll be transferring more slack space than say with a block of 4K, plus the CPU will be doing more redundant IO operations  (CRC, reads etc). Sequential access only lowers seek latency as far as I'm aware...
Quote from: Piru;580795
FFS is notoriously slow so with that you get a performance boost.
Now that I agree with ;)

Quote from: Piru;580795
PS. While some amiga file systems allow 4k block sizes (and thus seem to be ready for the new 4k block size hard drives) there still is the issue of proper alignment. In order to obtain best performance the partition beginning must be aligned by the block size, too. I doubt the Amiga partitioning programs account for this.

This probably doesn't matter for compact flash which has a standardised sector of 512B so I guess that part answers my initial question as to the best size for CF, either 512B or 1K :) Some hard disks have been using 4K since 2008 btw.
A600 2MB Chip, 4MB PCMCIA, 11MB Fast, ACA-620 OC 680EC20@25MHz, RTC, 512MB CF
A1200 - 2MB Chip 8MB Fast, MTEC Viper 68030@42MHz MMU, 68882 FPU, RTC, 1GB CF
AmigaKit A600GS
Retro Games A500 Mini
Atari 520 STFM - 1MB, Multiface ST.
Commodore 16 - 64K Mod, SD2IEC Drive
Commodore 64C - 64K, SD2IEC Drive
ZX Spectrum 48K Rubber Keys
 

Offline brownb2

  • Full Member
  • ***
  • Join Date: Aug 2010
  • Posts: 224
  • Country: 00
    • Show only replies by brownb2
    • http://www.silentdevelopment.co.uk
Re: PFS3 block size
« Reply #21 on: September 23, 2010, 12:34:10 PM »
Quote from: Golem!dk;580796
In general? :) And of course not everyone uses the builtin ide controllers... so that's another thing for you to consider. But do post your results, would be more interesting than speculation.

"In general..." something to recommend using certain controllers/CPU combinations/media/fs/blue moons when someone asks what size should I use on a forum there'd be some guidelines. :)

I *think* based on reading around for this thread on hardware standards: for the internal controller 512B would be about the best for low end hardware 000,020 (CF or hard disk). 512B-1K would be better for 030,040,060 and probably 4K for the newer HD standard discussed (040 upwards though). Again this all assumes the alignment is correct as Piru mentions... and that I'm not talking out of my bottom ;)
A600 2MB Chip, 4MB PCMCIA, 11MB Fast, ACA-620 OC 680EC20@25MHz, RTC, 512MB CF
A1200 - 2MB Chip 8MB Fast, MTEC Viper 68030@42MHz MMU, 68882 FPU, RTC, 1GB CF
AmigaKit A600GS
Retro Games A500 Mini
Atari 520 STFM - 1MB, Multiface ST.
Commodore 16 - 64K Mod, SD2IEC Drive
Commodore 64C - 64K, SD2IEC Drive
ZX Spectrum 48K Rubber Keys
 

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: PFS3 block size
« Reply #22 on: September 23, 2010, 12:45:51 PM »
Quote
Since block size is a minimum unit size you are also discussing the impact on the CPU and the amount of usable data transferred in a given time.
How? How is it different to transter 64 blocks of 512 bytes vs 32 blocks of 1024 bytes?

Quote
An extreme example - if the average file size being read is 1K and a cluster size is 8K (thus transfer block size) it'll be transferring more slack space than say with a block of 4K, plus the CPU will be doing more redundant IO operations  (CRC, reads etc).
Why would the filesystem read the whole 8K in this case? Even if it would read the whole 8k, modern drives are so fast in sequental access that it makes little difference if you read 1k or 8k.

What CRC are you talking about? If it's something in the filesystem (no amiga filesystem CRCs the data btw), why would the filesystem calculate CRC for the whole 8k if only 1k is of is valid data? Lets not forget that most time is spent reading and writing the data. Metadata is insignificant in comparison.

Quote
This probably doesn't matter for compact flash which has a standardised sector of 512B so I guess that part answers my initial question as to the best size for CF, either 512B or 1K :)
It was about the new 4k hard disk drives which report 512k block size (for compatibility reasons) while actually using 4k block sizes internally. They do work, but writing gets really slow of the block is not aligned properly. Until recently both Windows and Linux created such bad partitioning.

As for flash, they have a totally different internal structure which the typical filesystem has no way of knowing. The firmware tries to do some magic tricks to accomodate for the silly things typical filesystems do when they assume classical HDD. There's little that can be assumed about flash, except that small writes are typically really slow (due to flash internal arrangement).

http://en.wikipedia.org/wiki/UBIFS is an interesting approach to the problem. Rather than going thru the firmware, access the flash directly. Obviously this requires special HW (that is: it's not usable with your off-the-shelf SSD drives). Here's some more about UBIFS: http://www.linux-mtd.infradead.org/doc/ubifs_whitepaper.pdf
« Last Edit: September 23, 2010, 12:54:42 PM by Piru »
 

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: PFS3 block size
« Reply #23 on: September 23, 2010, 01:16:21 PM »
As reminded by a friend: AmigaOS is one of the few OSes that don't do proper block level caching by itself. This is another reason by large block size gives benefit with FFS.

It has gone as far as some filesystems implementing such caching, read ahead etc in itself (SFS).
 

Offline brownb2

  • Full Member
  • ***
  • Join Date: Aug 2010
  • Posts: 224
  • Country: 00
    • Show only replies by brownb2
    • http://www.silentdevelopment.co.uk
Re: PFS3 block size
« Reply #24 on: September 23, 2010, 02:18:04 PM »
Quote from: Piru;580802
How? How is it different to transter 64 blocks of 512 bytes vs 32 blocks of 1024 bytes?
A CRC-enabled device calculates a short, fixed-length binary sequence, known as the CRC code or just CRC, for each block of data and sends or stores them both together.

I submit that less blocks (transferred disk sectors) => less CRC checking, unless I am misunderstanding something here.

[EDIT]Also (again might be misunderstanding) as it is PIO the CPU is dealing with the IO and requesting the file at the lowest level, i.e. manipulating/copying blocks (say in contrast to DMA where a single request will be made whilst the CPU does something else).[/EDIT]
« Last Edit: September 23, 2010, 02:35:55 PM by brownb2 »
A600 2MB Chip, 4MB PCMCIA, 11MB Fast, ACA-620 OC 680EC20@25MHz, RTC, 512MB CF
A1200 - 2MB Chip 8MB Fast, MTEC Viper 68030@42MHz MMU, 68882 FPU, RTC, 1GB CF
AmigaKit A600GS
Retro Games A500 Mini
Atari 520 STFM - 1MB, Multiface ST.
Commodore 16 - 64K Mod, SD2IEC Drive
Commodore 64C - 64K, SD2IEC Drive
ZX Spectrum 48K Rubber Keys
 

Offline Thomas

Re: PFS3 block size
« Reply #25 on: September 23, 2010, 02:30:32 PM »
Quote from: brownb2;580814
A CRC-enabled device calculates a short, fixed-length binary sequence, known as the CRC code or just CRC, for each block of data and sends or stores them both together.

I submit that less blocks (transferred disk sectors) => less CRC checking, unless I am misunderstanding something here.



A CRC-enabled device always calculates a checksum for its physical blocks. It does not know about logical clusters and therefore it does not make a difference if larger clusters are used. Unfortunately the word "block" is used with many different meanings. Physical device block size (e.g. 512 bytes or 4k) is always fixed for SCSI or ATA devices. File system block size (a.k.a. cluster size) can be varied by software, but it depends on the file system implementation whether larger clusters improve performance or not.

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: PFS3 block size
« Reply #26 on: September 23, 2010, 03:30:34 PM »
I've tried PFS in the past but I much prefer to use SmartFileSystem myself. I'ts very easy to use and set up, no problems with block sizes or such like. Been using it for about 4 to 5 years now and have never lossed a single bit of data.

Best of all using SFS2 you can have up to 1 Terabyte sized partitions and no limit on file lengths, which is needed if you want to store backup ISO images of your DVDs which can be up to 8Gb in size. :)
 

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: PFS3 block size
« Reply #27 on: September 23, 2010, 03:43:03 PM »
Quote from: Franko;580824
I've tried PFS in the past but I much prefer to use SmartFileSystem myself. I'ts very easy to use and set up, no problems with block sizes or such like. Been using it for about 4 to 5 years now and have never lossed a single bit of data.
The sad thing about SFS is that it's inferior compared to PFS3, regardless of SFS being much later development.

  • PFS3 is faster than SFS.
  • PFS3 doesn't generate massively fragmented files when two or more applications write files to disk. SFS does.
  • PFS3 performance doesn't deteriorate over time. SFS does.
  • PFS3 has a repair tool. Often with SFS the only option is to copy data over, reformat and copy data back (MorphOS does have a SFSDoctor tool, however).
« Last Edit: September 23, 2010, 03:48:03 PM by Piru »
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: PFS3 block size
« Reply #28 on: September 23, 2010, 03:57:16 PM »
Quote from: Piru;580827
The sad thing about SFS is that it's inferior compared to PFS3, regardless of SFS being much later development.

  • PFS3 is faster than SFS.
  • PFS3 doesn't generate massively fragmented files when two or more applications write files to disk. SFS does.
  • PFS3 performance doesn't deteriorate over time. SFS does.
  • PFS3 has a repair tool. Often with SFS the only option is to copy data over, reformat and copy data back (MorphOS does have a SFSDoctor tool, however).


SFS being inferior is just your opinion, I've been using it for years, and both of my 500GB HDs are almost full. I've never noticed any performance deterioration or ever had the need to repair any files or partions.

Im perfectly happy with it, but that's just my opinion... :)
 

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: PFS3 block size
« Reply #29 from previous page: September 23, 2010, 04:09:52 PM »
Quote from: Franko;580829
SFS being inferior is just your opinion
Benchmarks are out there, PFS3 is a lot faster than SFS. It's easy to reproduce the fragmentation issue by having multiple apps writing a file on SFS volume at the same time, and to verify the excessive fragmentation that results. Performance deterioration over time is a bit trickier to test, but most likely it's a direct result from the fragmentation issue described, but other factors can be in play as well. The issue has been observed by many (more than just me). Lack of repair tool (for anything but MorphOS) is a fact, too.

It's more than just an opinion.

Quote
I've been using it for years, and both of my 500GB HDs are almost full. I've never noticed any performance deterioration or ever had the need to repair any files or partions.
You're extremely lucky.