设为首页 收藏本站
查看: 825|回复: 0

[经验分享] 有关系统性能优化技巧

[复制链接]

尚未签到

发表于 2016-5-21 09:57:10 | 显示全部楼层 |阅读模式
  磁盘I/O性能优化
  Tune Disk Performance
  
  Windows磁盘性能优化技巧:
  下面的文字从微软的技术资料库中而来:
  Some disk tuning suggestions from the article - "if your disk system is too slow, consider the following alternative steps:
- Rule out a memory shortage. When memory is scarce, the Virtual Memory Manager writes more pages to disk, resulting in increased disk activity. Because low memory is a common cause of bottlenecks, make surethat this is not the source of the problem before adding hardware. Also, make sure to set the paging file to an appropriate size as described in "Evaluating Memory and Cache Usage" in this book.
- Defragment the disk using Disk Defragmenter. For information about using Disk Defragmenter, see Windows 2003/2008 Help.
- Use Diskpar.exe on the Windows 2003/2008 Resource Kit companion CD to reduce performance loss due to misaligned disk tracks and sectors.
- Use striped volumes to process I/O requests concurrently over multiple disks. The type you use depends on your data-integrity requirements. Implement striped volumes for fast reading and writing and improvedstorage capacity. When striped volumes are used, disk utilization per disk need to fall due to distribution of work across the volumes and overall throughput need to increase. When using striped volumes, make sure to use the optimal size of stripe for yourworkload. The stripe size needs to be a multiple of the size of the average request. If you find that there is no increased throughput when scaling to additional disks in a striped volume, you might be experiencing a bottleneck due to contention between disksfor the disk adapter. You might need to add an adapter to better distribute the load.
- Place multiple drives on separate I/O buses, particularly if a disk has an I/O-intensive workload.
- Distribute workload among multiple drives. For example, for database applications, you might want to put transaction logs on a separate spindle from data. Notice that writing to a log file is a sequentialoperation and tends to be more efficient than the random operations typical of accessing data in a database. If you are unsure of a suitable distribution for network applications, track users and the files they work with in order to plan an efficient distributionby means of the auditing capability of the NTFS file system. This tells you which disks are getting the most usage and helps you determine whether you need to redistribute workloads. For more information about auditing, see Windows 2003/2008 Professional Help.
- Limit your use of file compression or encryption. These features can add some overhead and you need to use them sparingly if not required by your enterprise and if performance is critical.
- When obtaining disk systems, use the most intelligent and efficient components available for your disk system, including controller, I/O bus, cabling, and the disk. Upgrade to faster-speed or wider-bandwidthcomponents as necessary. These measures generally decrease transfer time and improve throughput. Use intelligent drivers that support interrupt moderation or interrupt avoidance to alleviate the interrupt activity for the processor due to disk I/O. Some graphscan be used for the disk monitoring page for clarity.
  
  用中文解释叙述如下:
1. 规避内存短缺问题,因为当操作系统的内存不够之时,必将引发虚拟内存(pagefile)的大量操作,从而导致系统的整体性能大幅下降;
2. 磁盘碎片整理,当磁盘的碎片大量存在时,因为搜索寻址的时间大幅延长从而导致整体的性能大幅下降,适当的时候进行碎片整理是非常有必要的;
3. 使用磁盘的条带卷来并行在多个磁盘之间进行I/O并行化处理,从而大幅提升磁盘的I/O性能;
4. 在不同的I/O总线上放置多个磁盘来提升并行速度;
5. 将磁盘的读写负载分散到多个磁盘上;
6. 在应用系统上限制使用文件压缩以及加密功能,避免过多增加磁盘的随机读写操作;
7. 升级你的磁盘控制器、I/O总线、数据线以及磁盘的数据读写速度,从而大幅提高磁盘I/O性能;
  
  
  推荐一个整体性能优化专题网站:http://www.performancewiki.com/, 里面有各种各样的优化主题,涵盖应用、数据库、操作系统等等。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-219805-1-1.html 上篇帖子: Qt+4.x+Open+Source+(MinGW)+for+Windows安装 下篇帖子: Windows Vista 抢鲜(适用于开发人员)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表