Berkeley CSUA MOTD:Entry 36055
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2005/2/3-5 [Computer/HW/Memory, Computer/HW/Drives] UID:36055 Activity:moderate
2/3     So, I'm really confused about this notion of computer science
        metrics where everything's kind of 2^n, but sometimes not. For
        example, if I have a 4 GIG hard drive, does that mean I have
        exactly 2^32 bytes of space? Does that translate to 4000000000
        bytes, or some number that's close to it? How about megahertz?
        Say I have a 2.5GHz computer, does it run at exactly 2500000
        hertz? Or 2^n for some multiple of n?
        \_ As a few other people have said, just about everything is ordinary
           decimal units now.  A 4G hard drive is (about) 4,000,000,000 bytes,
           and a 2.5GHz processor runs at (about) 2,500,000,000 Hertz.
           Operating systems still tend to report file sizes in binary units,
           though, so a 4G file is probably 4,294,967,296 bytes.  (Sometimes
           it's configurable: GNU du and df let you specify -h for binary
           units or -H for decimal.)  The only hardware still sold in binary
           units is memory -- a 1G flash memory card is 1,073,741,824 bytes.
           Also note that all storage devices are sold by raw capacity, not
           counting filesystem overhead.
        \_ I'd actually argue that in computers, all standards and measurements
           are 10^n with the exception of RAM and addresses.  HDDs, bandwidth,
           frequency, resolution (megapixels) are all base ten.
        \_ The ISO standard (IIRC) is Gibibytes for 2^30 and Gigabytes for
           10^9.  Memory is addressed by logic which is friendly to powers of
           2.  Non-memory doesn't matter.
        \_ Frequencies (Hertz) are not stated in powers of two obviously.
           You can usually find the exact frequency in the tech specs.
           Computer data quantities are normally referred to with binary
           prefixes (kilo=1024). Hard drive producers use 1000 because
           they are fuckers. A frequency is not a data quantity.
           \_ The whole k=1024 thing was a cute hack invented by computer
              folks, but it becomes imcreasingly strained as you move into
              mega- and giga- prefixes.  At some point you need to admit it's
              more trouble than it's worth.  The computer should be the one
              worrying how to address it's memory in base-2, rather than the
              end user  wondering how many bytes are in a gig.
           \_ Memory is sized in 2^n because that's how the chips are laid out.
              The capacity of a hard drive is determined by the track width
              and magnetic domain size.  This gives you a non-binary capacity.
              It makes sense to therefore measure it using the SI system.  The
              fact that CS people started calling 1024 and 1048576 kilo- and
              mega- when those prefixes had been in use for ages says to me
              that the CS people are the fuckers, not the engineers who are
              just adhereing to standard terminology.  I personally count all
              file and data sizes in base-10, except when refering to memory
              usage.  Anyway, this debate has been done to death before.
              \_ so 1M is what really? 1000000 or 10^20?
                 \_ Officially, 10^6 (you mean 2^20, right?).
                    M = 10^6, Mi = 2^20
                    See:
                    http://physics.nist.gov/cuu/Units/binary.html
              \_ No, it doesn't make sense when you're talking about computer
                 storage capacity to use a different meaning of GB than
                 everybody normally uses when talking about computer storage.
                 It's not like the drives are storing non-binary data. It's
                 going to have a filesystem and store vanilla kilobytes and
                 megabytes. Nowhere else does Gbyte refer to 1000*1000*1000.
                 In a computer environment, files are loaded into memory and
                 to disk, it's idiotic to change the terminology just because
                 the underlying media is different. CD and DVD storage is
                 referred to in binary. Sorry, you're wrong.
                 \_ FWIW, floppies are counted under a bastardized hybrid
                    system where 1.44 'megabytes' = 1440 KiB, or 1.44k-KiB
                 \_ No.  CDs and DVDs are counted base-10, as is bandwidth.
                    The fact that the drives are storing binary data has no
                    bearing on the method you use to count the bytes, which
                    this debate shows, is a matter of dueling conventions, not
                    some underlying fact.  I'm not wrong, you're just an ass.
                    \_ The orange book standard says a cd has a capacity
                       of 650*2^20 bytes.
                       \_ A DVD+-R(W) is 4.7*10^9
                          \_ Hard to argue, since they charge $5,000 for a
                             copy of a DVD format spec ($500 for each
                             additional spec) and require an NDA.  Do you
                             actually have access to the four specs you
                             mention?  The holder of DVD Forum's specs is
                             http://www.dvdfllc.co.jp
2025/07/08 [General] UID:1000 Activity:popular
7/8     

You may also be interested in these entries...
2012/12/18-2013/1/24 [Computer/SW/Languages/Perl] UID:54561 Activity:nil
12/18   Happy 25th birthday Perl, and FUCK YOU Larry Wall for fucking up
        the computer science formalism that sets back compilers development
        back for at least a decade:
        http://techcrunch.com/2012/12/18/print-happy-25th-birthday-perl
        \_ I tried to learn Perl but was scared away by it.  Maybe scripting
           lanauages have to be like that in order to work well?
	...
2012/2/5-3/26 [Computer/SW/WWW/Browsers] UID:54300 Activity:nil
2/5     How is Firefox on version 10, while I still have 3.6 installed.
        I wait for the X.1 versions and they never come out.
        \_ I'm also on 3.6.26.  It claims that versions 4 - 10 are all faster
           than 3.6.x, but do they use more memory?  Thx.
           \_ Newer Firefox versions use less memory too:
              http://www.maximumpc.com/article/news/mozillas_memshrink_program_brings_big_memory_savings_firefox_7
	...
2011/6/5-8/27 [Computer/HW/Memory] UID:54127 Activity:nil
6/5     In an effort to stabilize our services, we'll be rebuilding parts of
        the CSUA infrastructure over the course of this summer.  To give us
        some wiggle room, I've temporarily decreased soda's allocated RAM from
        8GB to 2GB.  If you need to run something that requires large amounts
        of memory, please send mail to root@csua.org and we'll try to
        accommodate your request.  --jordan
	...
2011/3/26-4/20 [Computer/HW/Memory] UID:54062 Activity:nil
3/19    When you're explaining the stack to people do you draw it with the
        highest addresses at the top or at the bottom?
        \_ When I explain any memory layout including stacks, I draw with the
           highest addresses at the bottom.  But I've seen people doing the
           other way.  -- yuen
           \_ do you by any chance have seen or have a jpg of the full memory
	...
2010/7/25-8/25 [Computer/SW/Graphics] UID:53897 Activity:nil
7/25    What's up with that moving bit pattern that Win7 displays when it
        boots up?  (It's the one that's like in the Apple II days when you
        use the graphics memory for code or data while it's still in HGR
        mode.)  Is there a way to disable that?  It slows things down a lot
        every time I reboot my Win7 VM on my office machine if I RDP to the
        machine via DSL.  Thanks in advance.
	...
2010/5/26-6/30 [Computer/SW/Unix/WindowManager, Computer/SW/OS/OsX] UID:53844 Activity:nil
5/26    anyone use lxde?  supposedly it is less stupid than xfce and
        less bloated than gnome.  thoughts?
        \_ lol, does anyone still use desktop linux?  Get with the times
           buy a mac.  Now.  DO IT.  Go NOW.
           \_ but we prefer herring to Kool-Aid
              \_ "you have to yell, he's hard of herring"
	...
2010/6/4-30 [Computer/SW/Languages/C_Cplusplus] UID:53849 Activity:nil
6/4     Is this valid C++ code?
        std::string getStr(void) {
            std::string str("foo");
            return str;
        }
        void foo(char *s);
	...
2009/12/7-2010/1/3 [Computer/HW/Memory, Computer/HW] UID:53574 Activity:nil
12/7    How many TCP retransmits are too many? Here is what I get:
            3594143433 segments received
            3760174421 segments send out
            3801829561 segments retransmited
        \_ rephrase. you can never have too much money. or too little.
           what is, is.
	...
2009/10/27-11/3 [Computer/HW/Drives] UID:53474 Activity:nil
10/27   I just read an article that Facebook had moved their database
        to all SSD to speed throughput, but now I can't find it. Has
        anyone else seen this? Any experience with doing this? -ausman
        \_ I hope you're not running mission critical data:
           http://ask.slashdot.org/story/09/10/27/1559248/Reliability-of-PC-Flash-SSDs?from=rss
        \_ Do you have any idea how much storage space is used by Facebook,
	...
2009/7/21-24 [Computer/SW/Languages/Java] UID:53168 Activity:moderate
7/20    For those who care btw, it looks like eclipse is now A Standard Tool
        at UCB ugrad cs, probably replaced emacs.  Furthermore, people get
        angry at seeing Makefiles, (since eclispe takes care of that).  I
        guess it's just a sign of the times.
        \_ The more people at my work use eclipse the less the code is
           managable in emacs.  I'm not sure which application's fault
	...
2006/8/12-15 [Finance/Banking, Computer/HW/Drives] UID:43982 Activity:nil
8/11    Aside from physically breaking a CD, what's the easiest way to make
        it permanently unreadable?
        \_ If you have a secure shredder service, they usually handle CDs as
           well.
        \_ Get a screwdriver, scratch the top of the CD.  It's not that much
           more work than writing with a pen.  Remember, data on CD is near
	...
2004/9/1 [Computer/HW/Drives] UID:33272 Activity:high
9/1     Securely destroy your CD/DVDs:
        http://www.primera.com/ds360_disc_shredder.html
        \_ Don't CDs often have stuff you aren't supposed to breathe in
           them?
        \_ nuke it in the microwave.
        \_ Do people really need this?  If I just break a CD in half, can
	...
2000/8/28-29 [Computer/HW/Drives] UID:19115 Activity:kinda low
8/28    I copied an audio CD with a CD drive on a PC, and the duplicate CD can
        only play in a regular CD player but not in a DVD player.  The DVD
        player doesn't recognize the CD.  Is this a common problem?  (I have
        consent from the author of the CD to make copies.)  -- yuen
        \_ Yes, many DVD players do not support CD-R/RWs. I believe only
           Toshiba or Sony has comprehensive support of all disc formats
	...
Cache (3697 bytes)
physics.nist.gov/cuu/Units/binary.html
home page Prefixes for binary multiples In December 1998 the International Electrotechnical Commission (IEC), the leading international organization for worldwide standardization in ele ctrotechnology, approved as an IEC International Standard names and symb ols for prefixes for binary multiples for use in the fields of data proc essing and data transmission. It is important to recognize that the new prefixes for binary multiples a re not part of the International System of Units (SI), the modern metric system. However, for ease of understanding and recall, they were derive d from the SI prefixes for positive powers of ten. As can be seen from t he above table, the name of each new prefix is derived from the name of the corresponding SI prefix by retaining the first two letters of the na me of the SI prefix and adding the letters "bi," which recalls the word "binary." Similarly, the symbol of each new prefix is derived from the s ymbol of the corresponding SI prefix by adding the letter "i," which aga in recalls the word "binary." The full content of Amend ment 2, which has a publication date of 1999-01, is reflected in the tab les above and the suggestion regarding pronunciation. Subsequently the c ontents of this Amendment were incorportated in the second edition of IE C 60027-2, which has a publication date of 2000-11 (the first edition wa s published in 1972). The complete citation for this revised standard is IEC 60027-2, Second edition, 2000-11, Letter symbols to be used in elec trical technology - Part 2: Telecommunications and electronics. Historical context^* Once upon a time, computer professionals noticed that 2^10 was very nearl y equal to 1000 and started using the SI prefix "kilo" to mean 1024. Tha t worked well enough for a decade or two because everybody who talked ki lobytes knew that the term implied 1024 bytes. But, almost overnight a m uch more numerous "everybody" bought computers, and the trade computer p rofessionals needed to talk to physicists and engineers and even to ordi nary people, most of whom know that a kilometer is 1000 meters and a kil ogram is 1000 grams. Then data storage for gigabytes, and even terabytes, became practical, an d the storage devices were not constructed on binary trees, which meant that, for many practical purposes, binary arithmetic was less convenient than decimal arithmetic. The result is that today "everybody" does not "know" what a megabyte is. When discussing computer memory, most manufac turers use megabyte to mean 2^20 = 1 048 576 bytes, but the manufacturer s of computer storage devices usually use the term to mean 1 000 000 byt es. Some designers of local area networks have used megabit per second t o mean 1 048 576 bit/s, but all telecommunications engineers use it to m ean 10^6 bit/s. The confusion is real, as is the potential for incompatibility in standards and in implemented sy stems. Faced with this reality, the IEEE Standards Board decided that IEEE stand ards will use the conventional, internationally adopted, definitions of the SI prefixes. Mega will mean 1 000 000, except that the base-two defi nition may be used (if such usage is explicitly pointed out on a case-by -case basis) until such time that prefixes for binary multiples are adop ted by an appropriate standards body. SI prefixes *Historical context adapted from: Bruce Barrow, "A Lesson in Megabytes," IEEE Standards Bearer, January 1997, page 5 Portions copyright 1997 b y the Institute of Electrical and Electronics Engineers, Inc. The IEEE d isclaims any responsibility or liability resulting from the placement an d use in the described manner. Information is reprinted with the permiss ion of the IEEE.
Cache (51 bytes)
www.dvdfllc.co.jp
FRAME: leftFrame FRAME: mainFrame FRAME: rightFrame