Shadow memory

Shadow memory

Shadow memory describes a computer science technique in which potentially every byte used by a program during its execution has a shadow byte or bytes. These shadow bytes are typically invisible to the original program and are used to record information about the original piece of data. The program is typically kept unaware of the existence of shadow memory by using a dynamic binary translator/instrumentor, which, among other things, may translate the original programs memory read and write operations into operations that do the original read and write and also update the shadow memory as necessary.

Naturally, this technique when implemented naively has both high slowdown and relatively large RAM requirements. The shadow memory requirements can be lessened through two level tables, similar to those used by modern operating systems for virtual memory lookup. For example, initially all first level page entries (each entry might cover 128kB) might point to a reserved "invalid" or "uninitialized" page entry. As the program reads/writes to/from a section specified by a page entry, then a new page entry is automatically created and initialized with the default values. Future reads/writes to that section will use that newly created entry.

The slowdown is harder to overcome, as each load and store must somehow result in the shadow memory being updated if 100% correctness is desired. Furthermore, modern CPUs perform relatively poorly when doing data intensive tasks due to the limits of local cache sizes.

References

*Nethercote, N. and Seward, J. 2007. How to shadow every byte of memory used by a program. In Proceedings of the 3rd international Conference on Virtual Execution Environments (San Diego, California, USA, June 13 - 15, 2007). VEE '07. ACM, New York, NY, 65-74. DOI=http://doi.acm.org/10.1145/1254810.1254820


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • shadow memory —    The technique of copying the contents of the BIOS ROM into faster RAM when the computer first boots up.    Because RAM is usually two to three times faster than ROM, and the speedier access reduces the time required to execute a BIOS routine,… …   Dictionary of networking

  • Shadow RAM (Acorn) — Shadow RAM , on the Acorn BBC Microcomputer and Master series microcomputer is a special framebuffer implementation to free up main memory and permit double buffered graphics.The BBC Micro and Master series machines used the 8 bit 6502 and 65C102 …   Wikipedia

  • Memory Type Range Registers — (MTRRs) are control registers that provide system software with control of how accesses to memory ranges by the CPU are cached. It uses a set of programmable model specific registers (MSRs) which are special registers provided by most modern CPUs …   Wikipedia

  • Memory type range register — Memory type range registers (MTRRs) are a set of processor supplementary capabilities control registers that provide system software with control of how accesses to memory ranges by the CPU are cached. It uses a set of programmable model specific …   Wikipedia

  • Shadow the Hedgehog (videojuego) — Desarrolladora(s) Sega Studio USA Distribuidora(s) Sega Diseñador(es) Takashi Iizuka Shun Miyanaga …   Wikipedia Español

  • Shadow mapping — or projective shadowing is a process by which shadows are added to 3D computer graphics. This concept was introduced by Lance Williams in 1978, in a paper entitled Casting curved shadows on curved surfaces . Since then, it has been used both in… …   Wikipedia

  • Shadow Striker — is the name of a fictional character in the various Transformers universes. She shouldn t be confused with Striker, a Dinobot with a similar name.Transformers: UniverseTransformers character name =Shadow Striker caption = affiliation =Decepticon… …   Wikipedia

  • shadow RAM — memory above 640K which stores information from the Read Only Memory in order to enable fast access to the information (Computers) …   English contemporary dictionary

  • Shadow the Hedgehog — general CVG character|width=240px name=Shadow the Hedgehog caption=Shadow the Hedgehog, as he appears in Sonic Rivals. series=Sonic the Hedgehog debut=June 19, 2001 creator=Takashi Iizuka firstgame= Sonic Adventure 2 (2001) voiceactor=Video Games …   Wikipedia

  • Shadow of the Colossus — Infobox VG title = Shadow of the Colossus caption = The Shadow of the Colossus cover emphasizes the massive size of the colossus compared to the protagonist. developer = Team Ico publisher = Sony Computer Entertainment designer = Fumito Ueda… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”