Qhov txawv ntawm RAM thiab Cache Nco

Qhov txawv ntawm RAM thiab Cache Nco
Qhov txawv ntawm RAM thiab Cache Nco

Video: Qhov txawv ntawm RAM thiab Cache Nco

Video: Qhov txawv ntawm RAM thiab Cache Nco
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Lub Xya hli ntuj
Anonim

RAM vs Cache Memory

Nco lub khoos phis tawj tau teeb tsa rau hauv qib siab thiab lawv tau teeb tsa los txiav txim siab lub sijhawm siv los nkag rau lawv, nqi thiab peev xwm. RAM thiab cache nco yog ob tug tswv cuab hauv lub cim xeeb hierarchy. RAM (Random Access Memory) yog thawj lub cim xeeb siv hauv computer. Nws tus kheej lub cim xeeb tuaj yeem nkag mus rau hauv txhua ntu, thiab yog li ntawd nws yog hu ua random access memory. RAMs tau muab faib ua ob pawg xws li Static RAM (SRAM) thiab Dynamic RAM (DRAM). Cache nco yog lub cim xeeb tshwj xeeb siv los ntawm CPU (Central Processing Unit) ntawm lub khoos phis tawj rau lub hom phiaj txo qis lub sijhawm nruab nrab uas yuav tsum tau nkag mus rau lub cim xeeb.

YRAM yog dab tsi?

RAM tseem hu ua lub cim xeeb tseem ceeb ntawm lub khoos phis tawj. Nws yog lub cim xeeb tsis muaj zog uas cov ntaub ntawv khaws cia hauv lub cim xeeb ploj thaum lub hwj chim kaw. RAMs tau muab faib ua ob pawg xws li Static RAM (SRAM) thiab Dynamic RAM (DRAM). SRAM siv cov transistors khaws cia ib qho me ntsis ntawm cov ntaub ntawv thiab nws tsis tas yuav tsum tau rov ua dua tshiab. DRAM siv lub capacitor cais los khaws txhua cov ntaub ntawv me ntsis thiab nws yuav tsum tau ua kom rov ua dua ib ntus kom tswj tau tus nqi hauv cov capacitor. Hauv cov khoos phis tawj niaj hnub no, RAM tau teeb tsa rau hauv cov qauv uas tuaj yeem hloov kho. Qhov no yuav tso cai rau nce lub peev xwm ntawm RAM lossis kho kev puas tsuaj yooj yim heev.

Cache Memory yog dab tsi?

Cache nco yog lub cim xeeb tshwj xeeb siv los ntawm CPU rau lub hom phiaj txo qis lub sijhawm nruab nrab ntawm kev nkag mus rau lub cim xeeb. Cache nco yog qhov me me thiab tseem yog lub cim xeeb nrawm dua, uas khaws cov ntaub ntawv feem ntau nkag mus ntawm lub cim xeeb loj. Thaum muaj kev thov rau lub cim xeeb nyeem, cache nco yog kuaj xyuas seb cov ntaub ntawv ntawd puas muaj nyob hauv cache nco. Yog tias cov ntaub ntawv ntawd nyob hauv lub cim xeeb cache, ces tsis tas yuav nkag mus rau lub cim xeeb tseem ceeb (uas yuav siv sijhawm ntev dua kom nkag tau), yog li ua rau lub sijhawm nruab nrab lub cim xeeb nkag tau me dua. Feem ntau, muaj cais caches rau cov ntaub ntawv thiab cov lus qhia. Cov ntaub ntawv cache feem ntau yog teeb tsa hauv hierarchy ntawm qib cache (qee zaum hu ua multilevel caches). L1 (Level 1) thiab L2 (Level 2) yog cov caches saum toj kawg nkaus hauv qhov hierarchy ntawm caches. L1 yog qhov ze tshaj cache rau lub cim xeeb tseem ceeb thiab yog lub cache uas raug kuaj ua ntej. L2 cache yog qhov txuas ntxiv hauv kab thiab yog qhov thib ob ze tshaj plaws rau lub cim xeeb loj. L1 thiab L2 sib txawv hauv kev nkag tau nrawm, qhov chaw, qhov loj thiab tus nqi.

Qhov txawv ntawm RAM thiab Cache Memory yog dab tsi?

Nyob hauv lub cim xeeb hierarchy, cache nco yog lub cim xeeb ze rau CPU thaum piv nrog RAM. Cache nco tau nrawm dua thiab tseem kim thaum piv nrog RAM. Tab sis lub peev xwm ntawm RAM nco yog loj dua lub peev xwm ntawm lub cim xeeb cache. Tsis tas li ntawd, lub cim xeeb cache tseem raug teeb tsa raws li hierarchy li L1, L2 thiab L3 caches uas sib txawv ntawm qhov nrawm, nqi thiab muaj peev xwm.

Pom zoo: