본문 바로가기
CS/System Software

SRAM vs DRAM

by gamxong 2023. 3. 12.

DRAM

  • DRAM  is widely used as a computer’s main memory. Each DRAM memory cell is made up of a transistor and a capacitor within an integrated circuit, and a data bit is stored in the capacitor. Since transistors always leak a small amount, the capacitors will slowly discharge, causing information stored in it to drain; hence, DRAM has to be refreshed (given a new electronic charge) every few milliseconds to retain data.

정리

→ 메인메모리로, 일정 시간동안만 데이터를 가지고 있다.

→ 메모리 refresh가 필요

→ 하지만 불러오는(데이터에 접근하는) 속도가 느리다. 그래서 power를 덜 먹는다.

→ 비용이 싸서 용량이 상대적으로 크다.

SRAM

  • SRAM  is made up of four to six transistors. It keeps data in the memory as long as power is supplied to the system unlike DRAM, which has to be refreshed periodically. As such, SRAM is faster but also more expensive, making DRAM the more prevalent memory in computer systems.

정리

→ 휘발성 메모리로 전원이 꺼지면 보관하고 있는 데이터가 사라진다.

→ 메모리 refresh를 하지 않는다.

→ CPU가 빠르게 접근할 수 있도록 만든 메모리이다. 따라서 power를 많이 먹는다.

→ 비용이 비싸 용량은 크지 않다.

 

'CS > System Software' 카테고리의 다른 글

fork() vs clone()  (0) 2023.03.12
좀비 프로세스 vs 고아 프로세스  (0) 2023.03.12
O_APPEND의 기능  (0) 2023.03.12
System call vs API  (1) 2023.03.12

댓글