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

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.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值