wiktionary
ref
Clipping of megabyte, megahertz, megajoule, etc.
Unknown
etymonline
ref
Meg
fem. proper name; before the late 20c. rise in popularity of Megan it typically was a pet form of Margaret, and was "used dial. to indicate a hoyden, coarse woman, etc." [OED]