《Systems Performance: Enterprise and the Cloud》读书笔记系列(四) —— 第二章(三)

本文深入探讨了资源饱和的概念及其对系统性能的影响,介绍了如何通过缓存机制来改善性能,并详细解释了缓存的工作原理、状态分类以及评估指标,包括缓存命中率、缓存缺失率和总运行时间计算方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. The degree to which more work is requested of a resource than it can process is saturation. Saturation begins to occur at 100% utilization (capacity-based), as extra work cannot be processed and begins to queue. Any degree of saturation is a performance issue, as time is spent waiting (latency).

2. In the field of performance, profiling is typically performed by sampling the state of the system at timed intervals, and then studying the set of samples.

3. Caching is frequently used to improve performance. A cache stores results from a slower storage tier in a faster storage tier for reference.  An example is caching disk blocks in main memory (RAM).
a) Cache's hit ratio: The number of times the needed data was found in the cache (hits) versus the number of times it was not(misses):  hit ratio = hit / total accesses (hits + misses);
b) Cache miss rate: Misses per second.
c) Total runtime for workload:  runtime = (hit rate * hit latency)+(niss rate * miss latency) (This calculation uses the average hit and miss latencies and assumes the work is serialized).

4. Cache state:
a) Cold: A cold cache is empty, or populated with unwanted data. The hit ratio for a cold cache is zero (or near zero as it begins to warm up).
b) Hot: A hot cache is populated with commonly requested data and has a high hit ratio, for example, over 99%.
c) Warm: A warm cache is one that is populated with useful data but doesn't have a high enough hit ratio to be considered hot.
d) Warmth: Cache warmth describes how hot or cold a cache is. An activity that improves cache warmth is one that aims to improve the cache hit ratio.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值