Operating System Implications of Fast, Cheap, Non-Volatile Memory - - PowerPoint PPT Presentation

operating system implications of fast cheap non volatile
SMART_READER_LITE
LIVE PREVIEW

Operating System Implications of Fast, Cheap, Non-Volatile Memory - - PowerPoint PPT Presentation

Today memories NVRAM NVRAM and operating systems Summary Bibliography Operating System Implications of Fast, Cheap, Non-Volatile Memory Adam Morawski MIMUW 2012-01-16 Adam Morawski Operating System Implications of Fast, Cheap,


slide-1
SLIDE 1

Today memories NVRAM NVRAM and operating systems Summary Bibliography

Operating System Implications of Fast, Cheap, Non-Volatile Memory

Adam Morawski

MIMUW

2012-01-16

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-2
SLIDE 2

Today memories NVRAM NVRAM and operating systems Summary Bibliography Hard disk Flash memory SRAM DRAM

Hard disk

Very cheap, very big capacities available Very big latencies (3000000ns) Read and write only whole blocks (512B - few kB) Very bad performance while using randomly placed small amounts of data (can’t be operating memory) Delicate, high power mechanical device

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-3
SLIDE 3

Today memories NVRAM NVRAM and operating systems Summary Bibliography Hard disk Flash memory SRAM DRAM

Flash memory

Cheap, big capacities on small chips available Fast read (70ns), even small randomly placed data Slow write (2500ns/block), only whole blocks - can’t be

  • perating memory

Limited durability (104 - 107 single block writes - high voltage, data retention of about 20 years)

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-4
SLIDE 4

Today memories NVRAM NVRAM and operating systems Summary Bibliography Hard disk Flash memory SRAM DRAM

SRAM

Static Random Access Memory random access to single bytes/words can be very fast (2ns), while not writing current can be very low (memory cells are made of logic gates) volatile (can’t be reliable data store) expensive, small capacities, memory cells are big

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-5
SLIDE 5

Today memories NVRAM NVRAM and operating systems Summary Bibliography Hard disk Flash memory SRAM DRAM

DRAM

Dynamic RAM like SRAM but a little bit slower cheap, big capacities available, small cells size volatile must be refreshed, clock frequency can’t be changed in wide range not neglible power consumption (cells are made of capacitors and driving transistors)

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-6
SLIDE 6

Today memories NVRAM NVRAM and operating systems Summary Bibliography Resistance-based memories Other ideas

MRAM

Magnetoresistive RAM In development from 90-ies Resistance change depending on magnetization Random access, non-volatile, fast, durable Commercially available but can’t compete with DRAM EverSpin Technologies MR2A16AVYS35: 4Mb, 35ns, $20 (500 pcs) - $30 (1 pc)

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-7
SLIDE 7

Today memories NVRAM NVRAM and operating systems Summary Bibliography Resistance-based memories Other ideas

Memristor

Fourth fundamental passive electronic component Resistance as a function of previous charge flow Theoretically predicted in 1971 Made in 2008 (HP Labs, titanium dioxide) Memory: non-volatile, random access, can be clocked up to 1GHz In november 2011 commercial availability in 18 mounths announced

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-8
SLIDE 8

Today memories NVRAM NVRAM and operating systems Summary Bibliography Resistance-based memories Other ideas

Phase Change Memory

Resistance change depending on way of heating material Promising predictions but big current needed to write Prototypes: IBM, june 2011, 200kb, good properties Hybrid technologies (with MEMS) - 512Mb prototypes Limited durability! (108 writes - heat)

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-9
SLIDE 9

Today memories NVRAM NVRAM and operating systems Summary Bibliography Resistance-based memories Other ideas

FeRAM

Ferroelectric RAM Changing crystal properties with current, read as energy measuring while writing Non-volatile, random access, low power, fast (< 10ns) Durability up to 1016 cycles, has to be refreshed after read, big cell size Fujitsu MB85R1002ANC-GE1: 1Mb, 150ns, ok $10

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-10
SLIDE 10

Today memories NVRAM NVRAM and operating systems Summary Bibliography Resistance-based memories Other ideas

Racetrack memory

Magnetic domains movement in thin ferromagnetic wire Non-volatile, almost random access, durable Predictions: access time down to 30ns, density like in HDDs, throughput worse than in DRAM

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-11
SLIDE 11

Today memories NVRAM NVRAM and operating systems Summary Bibliography Resistance-based memories Other ideas

Racetrack memory

Magnetic domains movement in thin ferromagnetic wire Non-volatile, almost random access, durable Predictions: access time down to 30ns, density like in HDDs, throughput worse than in DRAM In 2008 working 3-bit prototype (IBM)

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-12
SLIDE 12

Today memories NVRAM NVRAM and operating systems Summary Bibliography Possible architectures System kernel File system Machine state Data portability Safety, privacy etc

Possible architectures

NVRAM as data store NVRAM and DRAM in common address space (NUMA)

  • nly NVRAM

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-13
SLIDE 13

Today memories NVRAM NVRAM and operating systems Summary Bibliography Possible architectures System kernel File system Machine state Data portability Safety, privacy etc

System kernel

Taking into account memory cells wearing-off (wear-leveling) No need of swapping Is there a need of paging?

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-14
SLIDE 14

Today memories NVRAM NVRAM and operating systems Summary Bibliography Possible architectures System kernel File system Machine state Data portability Safety, privacy etc

File system

Capability of random access, not only to whole blocks Common address space with executed code and program-allocated memory Other bottle-necks, optimalisations In some cases there is no need to load some data to memory Is there a need for virtual memory (malloc) and data-store (fopen) division? Are files needed at all?

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-15
SLIDE 15

Today memories NVRAM NVRAM and operating systems Summary Bibliography Possible architectures System kernel File system Machine state Data portability Safety, privacy etc

Machine state

Machine/program state more durable than with volatile memory In memory we can store program state (with code), not only code that is loaded to memory and executed to initialise this program state More options while rebooting/powering off - some pieces of system can save their state Wrong program can destroy itself unrecoverably - data structures corruption is non-volatile too Mayby some repair mechanisms are needed (checkpoints+event log)

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-16
SLIDE 16

Today memories NVRAM NVRAM and operating systems Summary Bibliography Possible architectures System kernel File system Machine state Data portability Safety, privacy etc

Machine state - installation, update, repair

Installing program as image, state (checkpoint), stopped program doesn’t have to be present in other form than running - program starting is not needed Saving checkpoints (to repair or update) - while there is as few dependencies of system as possible How to update - parallel checkpoints, hot-patching, old way - restart needed Existing mechanisms of running programs moving between machines can be used (COW...)

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-17
SLIDE 17

Today memories NVRAM NVRAM and operating systems Summary Bibliography Possible architectures System kernel File system Machine state Data portability Safety, privacy etc

Data portability

Single address space make harder direct data migration between machines Sending data only through network, with specialised protocols

  • r.. as files

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-18
SLIDE 18

Today memories NVRAM NVRAM and operating systems Summary Bibliography Possible architectures System kernel File system Machine state Data portability Safety, privacy etc

Safety, privacy etc

Cold-boot attack prone Easier investigation after failure/attack (checkpoints, durable program state) Programmer have to has control of data (non)volatility Maybe some volatile memory has to be leaved for encryption keys etc

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-19
SLIDE 19

Today memories NVRAM NVRAM and operating systems Summary Bibliography Almost as NVRAM - PalmOS NVRAM opportunities

Almost as NVRAM - PalmOS

Everything in battery-supported DRAM No normal filesystem - only programs and their databases Execution in place Program state saved between application starts/context changes though there is no multitasking Program state can survive even cold-reset or be back-uped while synchronizing Palm with PC User point of view: there is no file saving operation - you are working on the only existing copy

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-20
SLIDE 20

Today memories NVRAM NVRAM and operating systems Summary Bibliography Almost as NVRAM - PalmOS NVRAM opportunities

Almost as NVRAM - PalmOS

”Turning off”: stopping CPU and some other pieces of hardware ”Turning on”: partial hardware initialisation, return to recently executed code Differences with NVRAM are visible while battery is disconnected or exhausted: data durability, no cold-boot attack risk

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-21
SLIDE 21

Today memories NVRAM NVRAM and operating systems Summary Bibliography Almost as NVRAM - PalmOS NVRAM opportunities

NVRAM opportunities

  • ne of holy Gralls of electronics

working on NVRAM is noticable some technologies can’t compete with DRAM while with

  • thers it can be unprofitable

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-22
SLIDE 22

Today memories NVRAM NVRAM and operating systems Summary Bibliography Almost as NVRAM - PalmOS NVRAM opportunities

NVRAM opportunities

  • ne of holy Gralls of electronics

working on NVRAM is noticable some technologies can’t compete with DRAM while with

  • thers it can be unprofitable

there can be a chance while DRAM will reach physical boundaries

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo

slide-23
SLIDE 23

Today memories NVRAM NVRAM and operating systems Summary Bibliography

Bibliography

1 Katelin Bailey, Luis Ceze, Steven D. Gribble, Henry M. Levy:

Operating System Implications of Fast, Cheap, Non-Volatile Memory

2 B.C. Lee, Ping Zhou, Jun Yang, Youtao Zhang, Bo Zhao, E.

Ipek, O. Mutlu, and D. Burger: Phase-change technology and the future of main memory

3 Wikipedia: MRAM, Racetrack Memory, Ferroelectric RAM,

PCRAM

Adam Morawski Operating System Implications of Fast, Cheap, Non-Volatile Memo