Mongodb 修补程序 KB2731284

Mongodb hotfix KB2731284

我在 windows server 2008 R2 上安装了 MongoDb 而 hotfix KB2731284 没有安装,但我无法轻易重启服务器。

hotfix 描述中,我收到了这条消息 "You run an application that uses the FlushViewOfFile() function to clean up memory-mapped files from the paged memory pool."(参见 https://support.microsoft.com/en-us/kb/2731284

我的问题是,什么时候调用函数 FlushViewOfFile()?我的应用程序只是写入一个集合并从中获取数据。我是否有做出错误行为的风险?

我认为您可以 运行 MongoDb 不应用修补程序,但我不推荐它。时间长了你可能会 运行 出问题。他们在 MongoDB 中包含了一些修复程序来解决该问题。

可以找到问题的详细描述here and here

另见 this

On Windows, Memory Mapped File flushes are synchronous operations. When the OS Virtual Memory Manager is asked to flush a memory mapped file, it makes a synchronous write request to the file cache manager in the OS. This causes large I/O stalls on Windows systems with high Disk IO latency, while on Linux the same writes are asynchronous.

The problem becomes critical on high-latency disk drives like Azure persistent storage (10ms). This behavior results in very long bg flush times, capping disk IOPS at 100. On low latency storage (local storage and AWS) the problem is not that visible.

在 Windows 7 和 Windows Server 2008 R2 上应用修补程序时,您可以获得更好的文件分配性能,这与 MongoDB

相关