Re: gpart and sector size



On 2010-04-08 21:34, Alexey Tarasov wrote:
Thank you for the information.
In 8-STABLE snapshot 201002 diskinfo shows 512k sector size yet.
I will try CURRENT tomorrow.

It looks like the code was MFC'd to stable/8 in r199443. However, even
in -CURRENT, the sector size you see in diskinfo will also be 512B.

For ada(4) disks, it seems the d_sectorsize field of geom_disk's struct
disk is initialized using the _logical_ sector size, not the physical
sector size (which may be a multiple of the logical sector size).

That said, if the physical sector size is larger than the logical
sector size, the d_stripesize field is initialized with it. So if you
run "diskinfo -v" on the disk, what is the output for stripesize?
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [opensuse] format disk with 4096 sector size
    ... Just because disk makers have agreed they are committed to 4096 internally does not mean the rest of the universe must make the same atomic adjustment. ... The filesystems you use are likely already using a blocksize that matches the "advanced format" physical sector size, leaving the only concern #2, ensuring logical disk divisions are aligned to 4k multiples. ... If in doubt about the physical sector size and it bothers you, consult the manufacturer specifications for your disk. ... The only situations where a 4096 blocksize assumption can hurt is for filesystems purposely configured with small blocksize because they play host to a huge number of small files. ...
    (SuSE)
  • Re: SSDs and Linux
    ... because many OSes and disk tools have that sector size hard-coded ... That's true of 512e drives, it won't be true of 4k-native drives ... actually presents a 4k physical sector. ... sector on a 4k physical sector drive, ...
    (uk.comp.homebuilt)
  • Re: gpart and sector size
    ... In 8-STABLE snapshot 201002 diskinfo shows 512k sector size yet. ... The ATA8-ACS and SBC-3 standards have provisions for a disk drive to report Advanced Format sector sizes and other performance optimization information. ...
    (freebsd-current)
  • Re: SortMerge avoids thrashing (was: Baileys "two pass" FFT algorithm question)
    ... of size that match the backing store to assure locality of reference. ... For RAM backed by disk, the key thing which takes the most time is ... you need to localize sector reads within that one ... Sweeps your RAM once when you load original data from disk. ...
    (comp.programming)
  • Re: XP Pro Recovery Errors
    ... it turns out that the boot sector, sector 0, of my HDD failed to "read, write, or remove write-protection." ... Hard drives, when they have a problem with a sector, mark it as "pending". ... So if you do something to write to the disk, and write sector zero, ...
    (microsoft.public.windowsxp.general)