Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions W11D1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
![image-20240101164856396](./pic/image-20240101164856396.png)

为什么要有Memory Reorder Buffer:为了保证多核之间的写一致性,如Write Barrier和Read Barrier。

芯片上电源和时钟部件的位置很关键。$P=CV^2 f$,整个机器的功耗与时钟频率成正相关。
9 changes: 9 additions & 0 deletions W15D1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<img src="./pic/image-20240101173149770.png" alt="image-20240101173149770" style="zoom:200%;" />

1. Core + Cache (V) + VM

synonym & alias problem: page table per process

2. Core + VM + Cache (P)

performance problem: TLB (translation lookaside buffer)
29 changes: 29 additions & 0 deletions W6D2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
2:1规则:提高关联度,至于要一半的大小,可以实现相近的miss rate(小范围成立)

![image-20240101150700234](./pic/image-20240101150700234.png)

![image-20240101150748620](./pic/image-20240101150748620.png)

Miss Rate先减小(能够更好地利用 spatial locality )后增大(more conflicts and capacity misses)

![image-20240101151144771](./pic/image-20240101151144771.png)

命中逻辑复杂,可能会增加时钟周期,导致最终的AMAT增加

![image-20240101151646084](./pic/image-20240101151646084.png)

对替换掉的Cache lines做一个回收的处理

![image-20240101155003823](./pic/image-20240101155003823.png)

![image-20240101154951193](./pic/image-20240101154951193.png)

![image-20240101155509933](./pic/image-20240101155509933.png)

![image-20240101160058894](./pic/image-20240101160058894.png)

![image-20240101160519951](./pic/image-20240101160519951.png)

<img src="./pic/image-20240101160543161.png" alt="image-20240101160543161" style="zoom: 67%;" />

![image-20240101160602705](./pic/image-20240101160602705.png)![image-20240101160609673](./pic/image-20240101160609673.png)
Binary file added pic/image-20240101150700234.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101150748620.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101151144771.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101151646084.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101154951193.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101155003823.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101155509933.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101160058894.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101160519951.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101160543161.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101160602705.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101160609673.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101164856396.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pic/image-20240101173149770.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.