News for hackers. Stuff that matters.
Re:Base Ten for Almost Everything by Avernar on Saturday February 13, 2016 @11:30PM (#11097141)
Flash drives are base 2. The memory chips inside are base 2 capacity. The flash control chip just reserves some space for wear leveling and other internal functions.
Re:Base Ten for Almost Everything by bboreham on Sunday February 14, 2016 @02:26PM (#11099590)
Flash drives are sold in base-10 units. Nobody gets to see the base-2 nature of the internals.
Re:Base Ten for Almost Everything by Tiksi on Monday February 15, 2016 @06:00AM (#11102659)
Three flash drives I have on hand:

  64 GB:
  Disk /dev/sdi: 60 GiB, 64424509440 bytes, 125829120 sectors
  Units: sectors of 1 * 512 = 512 bytes
  
  32 GB:
  Disk /dev/sdi: 28.9 GiB, 31037849600 bytes, 60620800 sectors
  Units: sectors of 1 * 512 = 512 bytes
  
  8 GB:
  Disk /dev/sdi: 7.2 GiB, 7743995904 bytes, 15124992 sectors
  Units: sectors of 1 * 512 = 512 bytes
Apparently they're just kinda sorta close to what they're sold as, and they're not accurate in base10 or base2.
Re:Base Ten for Almost Everything by brucedawson on Tuesday February 16, 2016 @02:54AM (#11108455)
Thanks for sharing those numbers. Definitely closer in base 10, but not as close as mine were.

The 32 GB one is disturbingly off. 31 GB would have been more honest. If the spare sectors required go up more then they'll have to adjust their marketing numbers and maybe we will see 30 GB, 60 GB, or 120 GB flash drives sold.

Re:Base Ten for Almost Everything by tremon on Sunday February 14, 2016 @03:49PM (#11099931)
Actually, there is little consistency in the advertised size of flash drives.

USB sticks are predominantly sold in base-2 sizes (32, 64, 128 GB etc). In fact, I don't think I've ever seen a 30GB or 100GB usb disk.

How SSD sizes are advertised depends entirely on the manufacturer, and even manufacturers don't use a single base: Samsung's EVO series are advertised in multiples of 10 (250, 500GB), while its PRO series use sizes in multiples of 2 (256, 512GB). Sandisk uses 120 GB, 240 GB sizes. I'm not even sure if all those sizes are supposed to represent base-10 or base-2 prefixes.

Re:Base Ten for Almost Everything by bboreham on Sunday February 14, 2016 @04:03PM (#11099999)
But those "32", "64", etc., numbers are times 1,000,000,000 bytes.
Re:Base Ten for Almost Everything by khedoros on Sunday February 14, 2016 @05:21PM (#11100260)
That isn't the case with some of the ones that I have on hand. This "128GB" stick is "128GB" as a multiple of 1,069,285,120. Presumably, it's 128GiB less an allocation of spare blocks and the filesystem overhead.
Re:Base Ten for Almost Everything by Someone on Sunday February 14, 2016 @01:03PM (#11099200)
MLC (http://searchsolidstatestorage.techtarget.com/definition/mul..., http://birchtree.me/blog/nand-flash-party/), which is used quite a bit in consumer flash, is base n>2.

Those links claim devices use n=4, 8, 16,... but apart from practicalities, I don't see a reason why n=3, 4, 5,... wouldn't work.

Also, these devices may get produced in power of two sizes units, but they all use error-correcting codes that turn their effective size in something non-power of two.

Re:Base Ten for Almost Everything by brucedawson on Sunday February 14, 2016 @01:12AM (#11097337)
The memory chips are base 2 capacity, yes.

But in what sense are the flash drives base 2? Their capacity isn't. You have to justify your claims.

Re:Base Ten for Almost Everything by qb45 on Sunday February 14, 2016 @02:07PM (#11099510)
> But in what sense are the flash drives base 2?

In the sense that the memory chips inside are base 2 capacity and the sole reason you are seeing less is because the flash control chip just reserves some space.

What's the point of pretending you don't understand someone's comment and asking for clarification?

Re:Base Ten for Almost Everything by kevin_thibedeau on Sunday February 14, 2016 @02:58PM (#11099712)
Fundamentally, address decoders are made to operate with binary inputs. That constrains the scope of what they address to powers of 2. With large capacity storage that becomes less relevant as they are overprovisioned with some redundant capacity, but in reality such devices are implementing Nx2^M storage, not Nx10^M.
Re:Base Ten for Almost Everything by Avernar on Sunday February 14, 2016 @08:03PM (#11100894)
Compact Flash, SD, thumb drives are all advertised base 2. SSD are advertised usually base 10 but I've seen some advertised base 2. No consistency. But that's marketing for you.
Re:Base Ten for Almost Everything by richardwhiuk on Sunday February 14, 2016 @01:26PM (#11099303)
The number of memory cells will be as they need to be addressable...