知识卡片
瓶颈优化靠资源交换
确定瓶颈后,可以用非紧缺资源换紧缺资源:缓存花内存和CPU减少I/O,预取花CPU与提前安排换等待时间。另一条路径是利用机制减少浪费,如批量化、优化线程划分。必须先测限制因素再选择交换,否则会消耗原本也紧缺的资源而未改善用户目标。
相关:[[瓶颈之外的空闲不等于浪费]]。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 理解性能的心智模型 · 查看原书依据
The next step is to fix the bottleneck because there is little to be gained by optimizing nonbottleneck areas. We can fix the bottleneck in two primary ways: Trading a nonbottleneck resource for a bottleneck resource Knowing how the system works
参考来源
- 位置:《Software Architecture and Decision-Making》第3章《理解性能的心智模型》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch03.xhtml)
- 结论依据:原文的定义、比较或例子支持“确定瓶颈后,可以用非紧缺资源换紧缺资源:缓存花内存和CPU减少I/O,预取花CPU与提前安排换等待时间”;正文据此说明用途和边界。
- 原始内容:The next step is to fix the bottleneck because there is little to be gained by optimizing nonbottleneck areas. We can fix the bottleneck in two primary ways: Trading a nonbottleneck resource for a bottleneck resource Knowing how the system works