XP: 大虚拟内存 &任务管理器中的正常内存使用 [英] XP: Large Virtual Memory & normal Mem Usage in Task Manager

查看:20
本文介绍了XP: 大虚拟内存 &任务管理器中的正常内存使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自任务管理器的大 VM 页面大小和正常内存使用量对应用程序意味着什么?它们是否意味着应用程序在内存使用方面表现不佳?

What does large VM page size and normal Memory usage numbers from Task Manager mean for an application? Do they mean the application is poorly performing in terms of memory usage?

我们有一个应用程序,一些用户声称该应用程序会使他们的 XP 机器变慢.

We have an application which some users claim that make their XP machines slow.

我们看到用户还运行了其他繁重的应用程序.但是当我们看到他们的任务管理器数据时,我们意识到任务管理器中的内存使用"列对于我们的应用程序来说是正常的,但与其他应用程序(包括繁重的应用程序)相比,VM 大小相当高.

We see that the user have other heavy applications running as well. But when we see their task Manager figures we realize "Memory Usage" column in task Mgr is normal for our app but the VM size is pretty high compared to others (including heavy applications).

例如

应用程序 X(大型应用程序和中等缓慢的应用程序)- 实际使用量 (500 MB) - 虚拟机使用量 (600 MB)

Application X (Heavy size application & moderately slow) - Actual Usage (500 MB) - VM Usage (600 MB)

我们的应用程序(正常大小的应用程序和非常慢)- 实际使用量 (200 MB) - VM 大小 (900 MB) <==== 这是否表明我们的应用程序泄漏?

Our Application (Normal size application & very slow) - Actual usage (200 MB) - VM Size (900 MB) <==== Is this indication of our application leaking?

有人可以为我提供更多信息吗?

Can someone shed more light for me on this?

谢谢

推荐答案

嗯,它是一只小猪.泄漏是可能的,但只有在 VM 大小持续不受控制地攀升时才开始检查.工作集当然可以远小于 VM 大小,未使用的内存页面将被换出以提供其他进程所需的 RAM.一个很好的统计数据是 Page Fault Delta,您必须添加它.如果这个峰值很大,那么用户抱怨程序减慢了一切可能是有效的.

Well, it is a piggy. A leak is possible, but only start checking for that when the VM size keeps climbing uncontrollably. The working set can certainly be much lower than the VM size, memory pages that don't get used will get swapped out to give other processes the RAM they need. A good statistic is Page Fault Delta, you'll have to add it. If that spikes a lot then a user complaint that the program slows down everything is likely to be valid.

有一种情况在 .NET 中并不少见,当您拥有大量嵌入式资源时,您将消耗大量虚拟机但很少使用工作集.哪个没问题.

There's one case that's not that uncommon in .NET, you'll consume a lot of VM but little working set when you have a large number of embedded resources. Which is okay.

当然强烈建议使用内存分析器,它比任务管理器提供更多洞察力.

Using a memory profiler is of course highly indicated, gives you much more insight than Task Manager.

这篇关于XP: 大虚拟内存 &amp;任务管理器中的正常内存使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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