The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: michael@kjorling.se (Michael Kjörling)
Subject: [TUHS] And now ... Weirdnix?
Date: Mon, 18 Sep 2017 11:59:44 +0000	[thread overview]
Message-ID: <20170918115944.GC19358@6A257D6BF119422186439413BD282393> (raw)
In-Reply-To: <20170918103911.2bok6nfjpbbm6cqq@client.local>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

On 18 Sep 2017 12:39 +0200, from andreas.kahari at icm.uu.se (Andreas Kusalananda Kähäri):
> I've been wondering about this for some time, if a byte isn't 8 bits on
> an architecture, how would you go about calculating memory sizes in a
> way that makes it comparable between machines?
> 
> A 32 KB memory buffer is 262144=32*1024*8 bits on one machine, but
> 294912=32*1024*9 bits on another.  That's a difference of 32 Kbit.
> 
> [snip]
> 
> Maybe this isn't/wasn't an issue at all?

Memory _chips_ are often specified in terms of accessible bits. So you
might have a chip that can hold _(8 * 2^20) * 8 bits_, or eight binary
megabytes for the case where 1 byte == 8 bits. The same chip could be
specified as _(64 * 2^20) * 1 bits_ for 64 binary megabits. This would
normally be written 8Mx8 or 64Mx1 for a binary "M" prefix.

How you then use those bits is entirely up to the system integrator
and software developer. And we do know that on systems with limited
memory, bit-packing is a common practice, based on the mantra that "no
good bits should ever be allowed to go to waste".

This notation has the benefit that it relates directly to how much
data can be held, as opposed to _how_ that data is held.

-- 
Michael Kjörling • https://michael.kjorling.se • michael at kjorling.se
                 “People who think they know everything really annoy
                 those of us who know we don’t.” (Bjarne Stroustrup)


  reply	other threads:[~2017-09-18 11:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-17  7:03 Warren Toomey
2017-09-17  7:28 ` arnold
2017-09-17  8:10   ` David Arnold
2017-09-17 12:52     ` Adam Sampson
2017-09-17 14:23     ` Steve Simon
2017-09-17 18:50   ` Chet Ramey
2017-09-17 19:01     ` Derrik Walker v2.0
2017-09-18 12:02     ` arnold
2017-09-17 14:49 ` Dennis Boone
2017-09-18  7:27   ` Nigel Williams
2017-09-18  8:31     ` arnold
2017-09-18 10:39       ` Andreas Kusalananda Kähäri
2017-09-18 11:59         ` Michael Kjörling [this message]
2017-09-19  1:54       ` Dave Horsfall
2017-09-19  7:07         ` Ian Zimmerman
2017-09-19 14:09         ` [TUHS] PR1ME - was " Toby Thain
2017-09-17 15:08 ` [TUHS] " Nemo
2017-09-18 23:57 ` Dave Horsfall
2017-10-04  5:58 ` Tom Ivar Helbekkmo
2017-10-04 16:15   ` George Michaelson
     [not found] <mailman.1035.1505674910.3779.tuhs@minnie.tuhs.org>
2017-09-18 11:41 ` [TUHS] " David
2017-09-18 13:15   ` Chet Ramey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170918115944.GC19358@6A257D6BF119422186439413BD282393 \
    --to=michael@kjorling.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).