文件系统缓存增长对应用程序有一些影响 [英] file system cache growth has some impact on application

查看:74
本文介绍了文件系统缓存增长对应用程序有一些影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们有一个Windows服务,收到UDP请求,并对一个非常大(16GB)的大量
文件中的一个进行小的(完全随机的)读取。在读取数据后,它通过UDP将其返回给请求者。随着时间的推移,systemfilecache增长到消耗所有可用的RAM。随着内存的增长,我们注意到在
分配时间(几毫秒)内未处理的请求数量略有增加。  我们使用了MS
动态缓存服务固定
systemfilecache,最大值为2 GB。 
修复了RAM增长,但我们仍然遇到未处理消息的相同增长。 
有没有人遇到过类似的问题?  我们将去无缓冲读取以避免任何缓存。

We have a windows service that receives UDP requests and does a small (completely random) read on one of a number of very large (16gbyte) files. After it reads the data it returns it to the requestor via UDP. Over time the systemfilecache grew to consume all of the avail RAM. As memory grew we noticed a small increase number of requests that did not get processed in the allotted time (few milliseconds).  We utilized the MS Dynamic Cache Service to pin the systemfilecache to a max value of 2 Gbytes.  The fixed the RAM growth but we still experience the same increase in unprocessed messages.  Has anyone experienced a similar problem?  We are going to go to unbuffered reads to avoid any caching.

 

我们在Windows 2008 R2 SP1上运行。

推荐答案

你可以设想将页面文件移动到另一个驱动器然后C.在这里阅读有关页面文件的更多信息:
http://www.petri.co.il/pagefile_optimization.htm

但是你的程序可能有内存泄漏。你现在收到的文件有什么不同,那么在一切正常之前你收到的文件是什么?您是否在事件日志中出现任何错误?

However your program could have a memory leak. Is there any difference to the files you receive now, then the files you received before when everything was ok? Did you get any errors in the event log?


这篇关于文件系统缓存增长对应用程序有一些影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆