第五周-Review-memory002

随着计算机硬件的发展,各子系统如CPU、内存、大容量存储等的性能差距逐渐增大,导致性能瓶颈出现。本文探讨了如何通过软件优化,如操作系统缓存管理和高速缓存存储器,来解决大容量存储和内存的性能问题。

What Every Programmer Should Know About Memory
Ulrich Drepper
Red Hat, Inc.
drepper@redhat.com

In the early days computers were much simpler. The various components of a system, such as the CPU, memory,mass storage, and network interfaces, were developed together and, as a result, were quite balanced in their performance.For example, the memory and network interfaces were not (much) faster than the CPU at providing data.
早期计算机更简单。一个系统的不同组件,比如CPU,内存,大容量存储和网络接口都是一同设计的,因此,它们在性能方面是很平衡的。例如,在提供数据方面,内存和网络接口比CPU快不了多少。

This situation changed once the basic structure of computers stabilized and hardware developers concentrated on optimizing individual subsystems. Suddenly the performance of some components of the computer fell significantly behind and bottlenecks developed. This was especially true for mass storage and memory subsystems which, for cost reasons, improved more slowly relative to other components.
计算机曾经稳定的基本结构已经发生了改变,硬件开发者开始集中精力优化独立的子系统。突然之间,部分组件的性能严重落后,并且出现了瓶颈。对于大容量存储和内存子系统来说这种情况尤为明显,因为成本的原因,相对于其它组件来说,它们提升的更慢。

The slowness of mass storage has mostly been dealt with using software techniques: operating systems keep most often used (and most likely to be used) data in main memory,which can be accessed at a rate orders of magnitude faster than the hard disk. Cache storage was added to the storage devices themselves, which requires no changes in the operating system to increase performance.For the purposes of this paper, we will not go into more details of software optimizations for the mass storage access.
通常使用软件技术来处理大容量存储的性能问题,操作系统将最常使用的数据(也是最有可能被使用)放在比硬盘访问速度高几个数量级的主内存中。高速缓存存储器被加入到存储设备中,而这些不需要改变操作系统就能够提升性能。出于本文的目的,我们不会深入讲述大容量存储访问的软件优化技术。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值