2017-11-13 10 views
0

の計算:仮想メモリ - 私は明日の試験のために勉強していますし、私はこの質問に出くわした仮想アドレス空間

You are given a memory system with 2MB of virtual memory, 8KB page size, 
512 MB of physical memory, TLB contains 16 entries, 2-way set associative. 

How many bits are needed to represent the virtual address space? 

私は、それが20ビットになります考えていた2^10は1024年ですので、以来、I単純に2^10 * 2^10を乗算し、2^20を得る。しかし、答えは21歳になってしまい、理由は分かりません。

答えて

0

必要な仮想アドレス空間は2MBです。

計算したとおり、20ビットは1MBのVM領域に対応できます。あなたは2MBを収容するために21ビットが必要です。

関連する問題