Dab Tsi Yog Cache Nco Rau?

Dab Tsi Yog Cache Nco Rau?
Dab Tsi Yog Cache Nco Rau?

Video: Dab Tsi Yog Cache Nco Rau?

Video: Dab Tsi Yog Cache Nco Rau?
Video: Tsis Tim Xwm Kab Los Yog Dab Roog { Nkauj Tawm Tshiab By Yias Vwj 09-03-2020} 2024, Hlis ntuj nqeg
Anonim

Nws yog qhov ib txwm hu rau lub cim xeeb cache lub cim xeeb ua rau hauv tus tsim, uas yog tus cwj pwm los ntawm lub nrawm nrawm thiab yog siv los khaws ib ntus ntawm cov ntaub ntawv siv tas.

Dab tsi yog cache nco rau?
Dab tsi yog cache nco rau?

Qhov xav tau los siv cache lub cim xeeb tau piav qhia los ntawm qhov sib txawv ntawm qhov ceev ntawm cov ntaub ntawv sib pauv ntawm cov khoom siv thiab ntau ntu ntawm lub cim xeeb hauv computer. Kev ua haujlwm ntawm txhua daim ntawv thov pib los ntawm hloov cov ntaub ntawv tsim nyog los ntawm lub zog qeeb qeeb disk mus rau RAM (lub computer nkag mus siv lub cim xeeb) rau hauv seem dynamic nkag ntu. Txij ntawd los, lawv tuaj yeem hloov mus rau L2 cache (L2 nco) nyob hauv processor nti lossis ntawm qhov siab kub siab cais SRAM nti nyob ib sab ntawm tus processor. Thaum kawg, cov ntaub ntawv siv feem ntau tuaj yeem hloov mus rau L1 cache (thawj theem cim xeeb), uas yog cov seem ntawm lub processor. Qhov loj ntawm thawj theem cache tsuas yog txog 128 KB, theem ob yog twb 512 KB. Rau kev sib piv, qhov loj me ntawm RAM tuaj yeem yog 1 GB. Kev ua tiav ntawm ib qho kev hais kom ua raws li cov phiaj xwm tshwj xeeb: - kev txheeb xyuas cov ntaub ntawv sau npe ntawm cov ntaub ntawv; ntawm qib ob; - kev tshuaj xyuas cov ntaub ntawv ntawm lub cim xeeb tseem ceeb; - nkag mus rau lub hard disk nco. Qhov sijhawm siv los ntawm tus processor kom tau txais cov ntaub ntawv tsim nyog nyob hauv kev faib ncaj qha rau qhov chaw uas cov ntaub ntawv khaws cia. Yog li, nkag mus rau thawj theem cache yuav siv li ntawm 1 mus rau 3 mus, theem ob - los ntawm rau mus rau kaum ob mus, thiab mus rau lub cim xeeb tseem ceeb - kaum, thiab qee kis - ntau pua mus. Lub cim xeeb cim xeeb ua lub luag haujlwm tshwj xeeb hauv cov txheej txheem ntawm cov neeg siv khoom siv ua haujlwm, vim tias cov txheej txheem ntawm lub cim tso tawm tuaj yeem ua rau muaj qhov tseem ceeb hauv cov teeb meem no. Lub cache qauv tseem ua haujlwm rau lub hom phiaj kom txoj kev sib txawv ntawm cov khoom siv qeeb qeeb, uas tau nce los ntawm 50 feem pua txhua xyoo, thiab RAM cov ntaub ntawv tus nqi, uas tau nce li 5 feem pua xwb. Kev tsim kho tsis tu ncua ntawm qib peb thiab qib plaub ntawm cache lub cim xeeb zoo li yog cov kauj ruam kev sib cav hauv cov lus qhia no. Lwm qhov kev xav tau ntawm kev txhim kho kuj yuav hloov mus rau programmatic tswj kev ua haujlwm ntawm cache lub cim xeeb.

Pom zoo: