DOCUMENTATION: How to convert bits to Megabytes

Article:TECH36554  |  Created: 2005-01-04  |  Updated: 2006-01-12  |  Article URL http://www.symantec.com/docs/TECH36554
Article Type
Technical Solution


Environment

Issue



DOCUMENTATION: How to convert bits to Megabytes

Solution



Details:
When investigating performance related issues, sometimes the logs report performance in bits per second.  This TechNote provides a method for converting bits per second into Megabytes per second, which is a more common measurement.

First, convert the number of bits to bytes by dividing by 8:

                                 1 byte  
    100,000,000,000,000 bits * --------- = x bytes
                                 8 bits

(Notice that the 'bits' cancel, leaving the unit 'bytes' in the answer.)

Then take that answer and convert it to Kilobytes by dividing by 1024:

                1 Kilobyte
    x bytes * ------------- = y Kilobytes
               1024 bytes

(Again, the 'bytes' cancel, leaving the unit 'Kilobytes' in the answer.)

Then take that answer and convert it to Megabytes by dividing by 1024 once again:

                        1 Megabyte
    y Kilobytes = * ---------------- = z Megabytes
                     1024 Kilobytes

Once you find z, you have your answer. Incidentally, you can continue this beyond Megabytes:
1024 Megabytes = 1 Gigabyte and 1024 Gigabytes = 1 Terabyte.

-----------------------
Example:
In practice, how fast is this in Megabytes per second (MBps)?

(bpbkar.log from test to dev/nul)

2:41:54.048 PM: [2900.3552] <4> tar_backup::V_DetermineEstimate: INF -
========================================================
<4> V_VSP_Cleanup: INF - VSP Cleanup - success
<2> tar_base::backup_finish: TAR - backup:                              1 files
<2> tar_base::backup_finish: TAR - backup:          file data:  379962656 bytes  4 gigabytes
<2> tar_base::backup_finish: TAR - backup:         image data:  379966464 bytes  4 gigabytes
<2> tar_base::backup_finish: TAR - backup:       elapsed time:         25 secs    186997346 bps
<2> tar_base::V_vTarMsgW: INF - EXIT STATUS 0: the requested operation was successfully completed
<4> tar_backup::backup_done_state: INF -
===========================================================

 
     

A handy Web site to perform this calculation quicker:  http://www.matisse.net/bitcalc/
(Note: VERITAS does not endorse or have any influence over the content of this Web site.)

Quick table of conversions:
1 gigabyte = 1024 megabytes = 1048576 kilobytes = 1073741824 bytes
1 megabyte = 1024 kilobytes = 1048576 bytes
1 kilobyte = 1024 bytes
1 byte = 8 bits
---
1 megabytes = 8 megabits = 8192 kilobits
1 kilobyte = 8 kilobits = 8192 bits





Legacy ID



274171


Article URL http://www.symantec.com/docs/TECH36554


Terms of use for this information are found in Legal Notices