windows 2008 R2 内存问题。 OS 是Windows 2008 R2 Standard版,Total 有12 G内存,从task manager 和Nagios监控看,内存基本上被吃光了,但是,把所有的process 占用的内存加起来,用了大概2G多,其它9G的内存不知道用到什么地方去了。
我使用RAMMAP的工具检查,发现 这不见的9G内存时被Metafile占用了。请问一下这个Metafile 具体是指什么?如何解决?
回答:通过下面的三篇文章,让我们共同分析这个问题:
Introduction to the new Sysinternals tool: RAMMap
http://blogs.technet.com/b/askperf/archive/2010/08/13/introduction-to-the-new-sysinternals-tool-rammap.aspx
High Memory Usage – Windows Server 2008 R2 File Server
http://wasthatsohard.wordpress.com/2011/03/01/high-memory-usage-windows-server-2008-r2-file-server/
You experience performance issues in applications and services when the system file cache consumes most of the physical RAM
http://support.microsoft.com/kb/976618#appliesto
所以,Metafile is part of the system cache and consists of NTFS metadata. NTFS metadata includes the MFT as well as the other various NTFS metadatafiles (see How NTFS Works for more details, and of course Windows Internals is a great reference). In the MFT each file attribute record takes 1k and each file has at least one attribute record. Add to this the other NTFS metadata files and you can see whythe Metafile category can grow quite large on servers with lots of files.
那么Metafile是系统缓存的一部分同时也包含了NTFS的数据。您看到的文章来自活动目录seo http://adirectory.blog.com/category/system-network-administration/
在上面提到的那个KB中,Microsoft提供了一个Microsoft Windows Dynamic Cache Service这样的话可以用GetSystemFileCacheSize API 和 SetSystemFileCacheSize API去设置最大的内存使用率,