|
Register or have you forgotten your password?
|
|
|
| Amiga Hardware Issues and discussion This forum is dedicated to the discussion and resolution of issues related to Classic and Next Generation Amiga hardware. Got a problem with a piece of hardware? Click to speak. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Defender of the Faith
![]()
Join Date: May 2010
Location: Dundee, OR
Posts: 1,621
|
There's a lively (for the Natami board) discussion going on over at the Natami Forum about "hard drive" tuning for compact flash cards. The suggestion is that running a CF card with block sizes of 16k increase speed and longevity.
Now, I was never an early adopter of hard drives, so my experience of formatting and partitioning is using cfdisk and busting out a few partitions to slap linux or windows on - IE I never ever mucked around with block sizes, cylinders or any of that. I attempted some cursory googling and came up short or with "Just run the wizard, type in your number and let windows do the rest!" So, having read through the thread, I fired up HDInstTools off my trusty Amiga911 disk and decided to muck around with a 4G CF card I have. HDinstTools lets you adjust setup on 4 things: Cylinders, Blocks per Track, Heads, and Block size (Oh, and interleave and auto park). If I adjust Block size by itself to 16k, the "size" of my disk increases to 122Gb or so, a tad outside the actual capacity. Obviously the 4 things relate to each other, but I'm not positive how. I am handy with numbers, but I'm not sure what the ratios are. Can someone explain how all this stuff relates to one another? Or offer up a good link where I can RTFM? |
||||||||
|
|
|
|
|
#2 | ||||||||
|
Cult Member
![]()
|
I THINK Thomas is the man for answering and clarifying all this....
__________________
C= & Amiga user & abuser since 1986 |
||||||||
|
|
|
|
|
#3 | ||||||||
|
Desperately needs a life
![]()
Join Date: May 2002
Location: Nevada, USA
Posts: 3,443
|
I imagine they're talking about filesystem blocksize, cylinders, heads, etc, shouldn't have any performance impact (but the calculated total space of the drive needs to be correct).
|
||||||||
|
|
|
|
|
#4 | ||||||||
|
Kindred of Babble-on
![]()
|
Hmm - most flash media are probably optimized for ~4k block sizes (the Windoze default), but due to the flash file system sitting in between(!) the host addressable block structure and the physical blocks the actual block/cluster size may not really be the most important thing.
However, it's a smart move to not use the full capacity of a card but leave 10-20% empty. This ensures that the flash controller has ample blocks to choose from when storing new or changing existant data. In addition to being faster on writes this will also further reduce wear and tear of the flash cells. (The flash controller reserves some capacity of the actual chips anyway but adding to this reserve will help it do a better job.) |
||||||||
|
|
|
|
|
#5 | ||||||||||
|
Defender of the Faith
![]()
Join Date: May 2010
Location: Dundee, OR
Posts: 1,621
|
Quote:
Quote:
|
||||||||||
|
|
|
|
|
#6 | ||||||||
|
Desperately needs a life
![]()
Join Date: May 2002
Location: Nevada, USA
Posts: 3,443
|
Right, but unless I'm mistaken, you would want to experiement with the filesystem blocksize setting where you create/modify your partitions, not the geometry settings in the drive setup menu.
Last edited by Damion; 05-27-2011 at 10:11 AM.. |
||||||||
|
|
|
|
|
#7 | ||||||||
|
Defender of the Faith
![]()
Join Date: May 2010
Location: Dundee, OR
Posts: 1,621
|
|
||||||||
|
|
|
|
|
#8 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Dec 2003
Location: Serbia
Posts: 2,532
|
I never had problems with auto configuring geometry.
think it works like this: sector is smallest part of disk = 512bytes track is all sectors in one circle (similar to tracks in olympics) cylinders is track*number_of_heads (try to imagine it, its cylindrical, in 3D, if there are more heads/platters than 1) I've heard it doesn't really matter what numbers you chose, as long as total number of sectors (heads*cylinders*sectors/track) is less or equal to real disk size.
__________________
You`re here, Noŷs. |
||||||||
|
|
|
|
|
#9 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Jun 2002
Posts: 2,925
|
Just mutiply them all to get the size of the disk in bytes.
|
||||||||
|
|
|
|
|
#10 | ||||||||
|
Kindred of Babble-on
![]()
|
To optimize perfectly for a flash device you'd need to match both sizes. Drive geometry and partition positioning influence the position of the first partition sector which should be a multiple of the flash structure size (block) - it's probably smart to make a cylinder the size of the flash block, so all cylinders will be aligned.
The filesystem sector size influences the alignment of all following sectors. Too small a size will lead to excess rewriting of small sectors, too large a size will waste capacity and IDE bandwidth. You probably won't care about capacity nowadays, so 16 KB may be a good choice. |
||||||||
|
|
|
|
|
#11 | ||||||||
|
Kindred of Babble-on
![]()
|
With magnetic media it really doesn't; SCSI disks have never had a host observable geometry, neither have later IDE drives. However, flash memory can't really be written to in sector sizes = 512 bytes (the flash controller just makes you believe), and this is about optimizing for this factor.
|
||||||||
|
|
|
|
|
#12 | |||||||||
|
Defender of the Faith
![]()
Join Date: May 2010
Location: Dundee, OR
Posts: 1,621
|
Quote:
|
|||||||||
|
|
|
|
|
#13 | ||||||||
|
Kindred of Babble-on
![]()
|
According to Wikipedia, common NAND flash block sizes are 16 to 512 KB, with larger, cheaper chips probably using larger blocks. 4 MB is probably well on the safe side, as is any larger power of 2.
|
||||||||
|
|
|
|
|
#14 | |||||||||
|
Defender of the Faith
![]()
Join Date: May 2010
Location: Dundee, OR
Posts: 1,621
|
Quote:
Well with HDInstTools, the only thing which changes the estimated capacity is Block size. If I leave block size at 512, I can put any number in the other fields and it stays reading the size correctly. If I bump block size up by any amount, it changes the size accordingly regardless of the other numbers. |
|||||||||
|
|
|
|
|
#15 | ||||||||
|
Defender of the Faith
![]()
Join Date: May 2010
Location: Dundee, OR
Posts: 1,621
|
In fact, neither HDInstTools nor HDToolBox read the correct drive size if alterations are made to the block size. According to Thomas on the Natami site, its a bunch of hogwash anywas, as long as the numbers when multiplied fall within the proper physical drive size.
|
||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| hard , abot , formatting , drive , cylinder , block , size |
| Thread Tools | |
| Display Modes | |
|
|