
本文共 8291 字,大约阅读时间需要 27 分钟。
������������ CPU ���������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
/sys/devices/system/cpu/cpuN/cache/indexN ���������������
��� Linux ������������`/sys/devices/system/cpu/cpuN/cache/indexN` ������������������������������������������������������ CPU ������������������������������������������ `cpuN` ������������������������ CPU ������������ `indexN` ��������������������������������������� L1���L2���L3 ������������������������������������������������������������������������ CPU ������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������ L2 ������������������������������������������������������������������������������WriteThrough ��� WriteBack������������������������������������������������������ `number_of_sets`������������������������ `coherency_line_size`������������������������������������������������������
���������������������������
������������������������������������������������������������������������������������������������������������������������������������L1 cache ������������������������������������������L2 ��� L3 ������������������������������������ `level` ������������������������������������������������ `type` ���������������������������������������������������������������������
��������������������������������������������������������������������������������������� L2 cache ��������������� CPU ���������������������������������������������������������������������������������������������������
EPT���Extended Page Table���������������������
EPT ��� KVM ��������������������������������������� MMU ������������������������ hypervisor ���������������������������������������������������������������������������EPT ��������������������������������������������������������������������� EPT��������������� cache Yonge ������������������������������������������������ I/O ������������������
������������ EPT ������������������������ `/proc/cpuinfo` ��������� CPU ��������������������������������� `/sys/module/kvm_intel/parameters/ept` ������������������������������EPT ��������������� TLB ������������������������������������������ EPT + ������������EPT������������������������������������
���������������������������������������������
������������������������������������������������������������������������������������������
��� KVM ��� Xen ��������������������� shadow page table ������������ MMU ������������������������������������������������������������������������������������������������������������������������������������������������ `/sys/kernel/mm/ksm` ������������������������������������
I/O ���������������������
������������������������I/O ������������������������������������������KVM ��������������� I/O ������������������������������������Para Virtualization���PV��������������������� I/O��������������������������������������� I/O ������������������������������������������������ PV ��������������� I/O ������������������������
PV ������������ intel-pvdriver������������������������ ger��ek ������������������������ middle��� ������������ I/O ���������������������������������������������������������������������������������������������������������������������������
IOMMU ������������������
IOMMU ��� KVM ������������������������ I/O ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ IOMMU���
������������ IOMMU ������������������������������������������������������������������
perf top &= 500 dmesg | grep DMAR
������������������ IOMMU��������������������������� PCI ���������PCI Passthrough��������������������������������� I/O ������������������������SR-IOV ���������������������������������������������������������������������VF��������������� `ip link set eth0 vf 0 rate 200`������������������������������������������
���������������������KSM���Kernel Samepage Merging���
KSM ��� Linux ������������������������������������������������������������������������������������������������������������������������������������������������������������������������KSM ���������������������������������������������������������������������
��������������������������������������������������������������� KSM���
��������� KSM ������������������������������������������������������ `mmap` ��� `madvise` ���������������������������������������������������������������������������������������������������������������������������������������������
������������������������������������������������
��� Virtualization ��������������������������������������������������������������������������������������������������� KVM���VMware ������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������
���������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������� I/O ������������������ KSM ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
