14 July 2023, 15:26 | #481 |
Apollo Team
Join Date: May 2014
Location: not far
Posts: 381
|
I'll let Tony answer but I guess it will require a full format. Same does apply for modern systems on unvirtualized partitions.
That's a great news, I was dreaming of this on pfs3aio. This should bring some performance improvement. Is there any way to quantify those in current state ? |
14 July 2023, 16:08 | #482 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,546
|
Quote:
Quote:
Performance testing is someone else's problem I guess not much difference when using emulator + HDF (where host OS handles caching) but there can be noticeably difference when using CF/SD/etc devices. --- I also have related question: how many files do you have on your HDF/real Amiga harddrive partitions? I think current algorithm preallocates far too many pfs3 metadata blocks (*) when drive is relatively large (as in >8G). Allocation table for metadata blocks needs to be in RAM all the time and it is significant part of pfs3's memory usage. The larger the partition, the more metadata blocks it allocates. *) pfs3 works differently than most other filesystem by preallocating blocks used for metadata at the beginning of partition which includes tree structures, file/dir blocks etc when formatted and it can't be increased without reformat. |
||
14 July 2023, 17:51 | #483 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,307
|
My tools partition has 40.000 files and my small games partition 35.000. So I would guess people with a large games or whatever collection will have more then 100.000. But 1.000.000 should be very rare.
Edit: My Backup partition counts 120.000 files. Last edited by daxb; 14 July 2023 at 18:15. |
14 July 2023, 21:30 | #484 |
Apollo Team
Join Date: May 2014
Location: not far
Posts: 381
|
I have 365'000 files in my data partition
|
15 July 2023, 00:30 | #485 |
Registered User
Join Date: Jul 2019
Location: Poland
Posts: 308
|
50000 files on 25 years old system.
|
15 July 2023, 15:42 | #486 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,546
|
Thanks. Only some extreme cases probably have more than few hundred thousand files.
Another test: pfsdoctor_experimental.zip has been updated. Added new command "info" that shows some pfs3 internal details. Important value is size of reserved blocks and amount of free reserved blocks. If everyone has free reserved blocks >50% (or so) compared to total reserved blocks, it confirms that preallocated reserved blocks area does not need to be that big. (Single reserved block can contain multiple file/dir entries) https://download.abime.net/winuae/fi...perimental.zip Output is something like this: Code:
Autodetected disk access mode: Standard Initializing rootblock 100... Checking rootblock Rootblock found using 512 block size (block size was 1024) Checking disk A500STORE Option mask: 0000077f Reserved blocksize: 1024 Reserved block cluster: 10 First reserved block: 2 Last reserved block: 70849 Reserved blocks: 35424 Free reserved blocks: 34985 Free blocks: 3078805 Always free blocks: 154209 Total blocks: 3155040 .. Checking rext Max file name length: 32 Disk formatted with PFS-III 0.18 Some "block" values are in physical blocks (512), some in logical metadata blocks (1024) if you wonder why reserved block counts don't match. EDIT: updated, other options possibly didn't work. (But I don't recommend using any fix options when using this version.. CHECK should be safe) Last edited by Toni Wilen; 15 July 2023 at 18:44. |
15 July 2023, 16:21 | #487 | |
Apollo Team
Join Date: May 2014
Location: not far
Posts: 381
|
Here is the output on my jumbo partition :
Quote:
|
|
15 July 2023, 16:23 | #488 |
-
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,885
|
Toni, the check argument runs info in this latest version.
|
15 July 2023, 19:50 | #489 |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
My extremely jumbo partition (63 GB with only 9 GB free):
Workbench:> pfsdoctor_exp info ex1 Autodetected disk access mode: NSD Initializing rootblock 100... Checking rootblock Rootblock found using 512 block size (block size was 4096) Checking disk Stuff Option mask: 000007ff Reserved blocksize: 1024 Reserved block cluster: 190 First reserved block: 2 Last reserved block: 1535425 Reserved blocks: 767712 Free reserved blocks: 712827 Free blocks: 25223898 Always free blocks: 5793014 Total blocks: 117395712 .. Checking rext Max file name length: 107 Disk formatted with PFS-III 0.19 Workbench:> |
15 July 2023, 23:45 | #490 |
Registered User
Join Date: Jul 2019
Location: Poland
Posts: 308
|
For some reason I don't get the "Rootblock found using..." line?
Autodetected disk access mode: Standard Initializing rootblock 100... Checking rootblock Checking disk HardDisk Option mask: 0000077f Reserved blocksize: 1024 Reserved block cluster: 12 First reserved block: 2 Last reserved block: 84929 Reserved blocks: 42464 Free reserved blocks: 37182 Free blocks: 1032861 Always free blocks: 200553 Total blocks: 4096000 .. Checking rext Max file name length: 32 Disk formatted with PFS-III 0.19 |
16 July 2023, 08:36 | #491 |
Registered User
Join Date: Aug 2016
Location: Germany
Posts: 122
|
Same here. Missing the Rootblock found line.
Autodetected disk access mode: NSD Initializing rootblock 100... Checking rootblock Checking disk Stuff Option mask: 000007ff Reserved blocksize: 1024 Reserved block cluster: 184 First reserved block: 2 Last reserved block: 1489409 Reserved blocks: 744704 Free reserved blocks: 721116 Free blocks: 61910969 Always free blocks: 5611391 Total blocks: 113717248 .. Checking rext Max file name length: 107 Disk formatted with PFS-III 0.19 DH1: /* Stuff */ Device = amithlon.device Unit = 310 Flags = 0 SectorSize = 512 Surfaces = 8 SectorsPerBlock = 1 /* 512 bytes */ SectorsPerTrack = 256 Reserved = 2 PreAlloc = 0 Interleave = 0 LowCyl = 611 HighCyl = 56136 /* block 114968575 */ Buffers = 600 BufMemType = 0 /* ANY */ MaxTransfer = 0x0001FE00 Mask = 0x7FFFFFFE BootPri = 0 DosType = 0x50445303 /* PDS3 */ |
16 July 2023, 08:54 | #492 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,546
|
Thanks. As I expected, huge amounts of free reserved blocks. It should be safe to half the amount of free blocks when partition is large enough (>5G or so). There is large jump around 10G+ size when using old PFS3 versions.
"root block found.." only appears if block size does not match. If pfs3 partition uses normal 512 logical block size, message does not appear. If partition logical block size is >512, pfsdoctor will show the message. (It failed to find root block when using configured block size, but found when retried with 512 block size. Because all pfs3 versions until now ignored logical block size) Previously this was not a problem but now that logical block size is actually taken in account, pfsdoctor needed this backwards compatibility test. I'll probably upload test version soon. |
17 July 2023, 09:58 | #493 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,546
|
I did some "copy lots of random stuff to pfs3 partition, delete some of them, copy more random stuff until it is full, delete some, copy again" using 4096 block size. Seemed to work fine except after the whole operation pfsdoctor check reported that amount of free blocks was off by one.
Perhaps this is normal (as in some old bug when drive gets filled and part of file was already copied) or side-effect of block size update. Technically this is not dangerous because free block size field is only used to quickly calculate free space (scanning whole bitmap etc would be really slow) but I need to debug this first. Anyone else noticed something similar with previous pfs(aio) versions? EDIT: copied 300 000 small files to 9G pfs3 HDF, worked without problems. Deleted and copied again, still no problems. Still wondering what was the problem with first test.. Last edited by Toni Wilen; 17 July 2023 at 20:27. |
25 July 2023, 20:42 | #494 | |
Registered User
Join Date: Aug 2014
Location: Netherlands
Posts: 699
|
Quote:
I guess most of us are using CompactFlash cards or IDE2SD and SCSI2SD contraptions. And most compactflash cards and SD cards are not so great when it comes to NAND flash management and wear leveling. So, I don't think it matters much on Amiga. |
|
26 July 2023, 07:05 | #495 |
Registered User
Join Date: Aug 2014
Location: Netherlands
Posts: 699
|
|
26 July 2023, 07:37 | #496 |
Registered User
Join Date: Jan 2019
Location: Finland
Posts: 652
|
|
26 July 2023, 08:47 | #497 | |
-
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,885
|
Quote:
https://www.amazon.com/KingSpec-2-5-.../dp/B008RVN97A https://solidstatedisks.co.uk/produc...-1mg3-p-detail https://www.m4l.com/AF4GSSADHAAXX-ATP-Solid-State-Drive |
|
26 July 2023, 09:55 | #498 |
Registered User
Join Date: Aug 2014
Location: Netherlands
Posts: 699
|
Ah yes, those adapters could be used!
I am actually running a DIY SCSI2SD now with an industrial SD card from Kingston and PFS3AIO. https://www.kingston.com/en/memory-c...crosd-uhs-i-u3 I actually wanted an SD card from Swissbit but they are too expensive for a hobby But the Kingston's are nice as well. On my Amiga most data is actually mostly cold storage. Lot's of ISO images, ADF's, etc, etc. There is not much writing going on so not much wear and tear on the SD. However, I do want my data to last! And these industrial SD cards operate TLC flash in SLC mode (pSLC)and they also monitor any read disturbances. So, I guess these are most suited for typical Amiga use. |
31 August 2023, 12:24 | #499 |
Registered User
Join Date: Aug 2018
Location: NY / USA
Posts: 290
|
I have used Acard 2000 SUP SCSI to SATA with real SSD's for a very long time. Only used PFS over the years on them.
No issue, they just seem to work so I don't poke at them... |
21 September 2023, 20:53 | #500 |
Registered User
Join Date: Aug 2018
Location: Czech Republic
Posts: 20
|
Any way to manually flush pfs3 write cache?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PFS3aio vs SFS/02 | White | support.WinUAE | 10 | 13 April 2018 21:44 |
PFS3AIO Probs ? | Foul | support.FS-UAE | 0 | 21 February 2018 22:49 |
PFS3AIO Questions | manic23 | support.Hardware | 26 | 22 April 2014 13:49 |
Pfs3aio ???? | stingray76 | support.Hardware | 2 | 19 February 2014 09:15 |
FinalWriter 97; FinalCalc 1.04; Final Data 2.00 & Final Copy | aebrown-u | request.Apps | 20 | 12 July 2009 11:19 |
|
|