图标缓存 vista_在Vista中增加文件系统内存缓存大小

图标缓存 vista

图标缓存 vista

I’ve always wondered why Windows doesn’t allow you to set an arbitrary size for the filesystem cache. What if you have a slow hard drive in your laptop, but loads of available system memory? Shouldn’t you be able to maximize that memory in order to speed up hard drive access?

我一直想知道为什么Windows不允许您为文件系统缓存设置任意大小。 如果笔记本电脑中的硬盘驱动器速度慢,但是有大量可用系统内存怎么办? 您是否应该能够最大化该内存以加快硬盘访问速度?

I’ve found a slightly documented tweak that will allow you to tell Windows to use more cache for the NTFS “pool”, which should increase performance if your system opens and closes a lot of files all the time like mine does.

我发现有一个稍微记录在案的调整,可以让您告诉Windows为NTFS“池”使用更多的缓存,如果您的系统一直像我一样打开和关闭许多文件,这应该会提高性能。

According to the Microsoft documentation:

根据Microsoft文档

Increasing physical memory does not always increase the amount of paged pool memory available to NTFS. Setting memoryusage to 2 raises the limit of paged pool memory. This might improve performance if your system is opening and closing many files in the same file set and is not already using large amounts of system memory for other applications or for cache memory. If your computer is already using large amounts of system memory for other applications or for cache memory, increasing the limit of NTFS paged and non-paged pool memory reduces the available pool memory for other processes. This might reduce overall system performance.

增加物理内存并不总是会增加NTFS可用的页面缓冲池内存量。 将memoryusage设置为2会增加页面缓冲池内存的限制。 如果您的系统正在打开和关闭同一文件集中的许多文件,并且尚未为其他应用程序或高速缓存使用大量系统内存,则这可能会提高性能。 如果您的计算机已经在为其他应用程序或缓存使用大量的系统内存,则增加NTFS分页和非分页池内存的限制会减少其他进程的可用池内存。 这可能会降低整体系统性能。

I’ll be testing this change out myself, and I really hope to get feedback from our excellent readers on this one. Please note that I’ve not run any benchmarks yet, so I can’t confirm yet that this yields any major benefit in real-world performance.

我将亲自测试这一更改,我真的希望能从我们的优秀读者那里获得反馈。 请注意,我还没有运行任何基准测试,因此我无法确认这会给现实性能带来任何重大好处。

Command Line Hack

命令行黑客

Open up an Administrator mode command prompt by right-clicking and choosing Run as Administrator, or type in cmd into the start menu search box and use Ctrl+Shift+Enter.

右键单击并选择以管理员身份运行,以打开管理员模式命令提示符,或者在开始菜单搜索框中键入cmd ,然后使用Ctrl + Shift + Enter。

Type in the following command to increase the cache setting:

键入以下命令以增加缓存设置:

fsutil behavior set memoryusage 2

fsutil行为设置memoryusage 2

To check the current value, type in this command:

要检查当前值,请输入以下命令:

fsutil behavior query memoryusage

fsutil行为查询内存使用情况

To change the setting back to the default, use this command:

要将设置更改回默认值,请使用以下命令:

fsutil behavior set memoryusage 1

fsutil行为设置memoryusage 1

image

As always, these “slightly” documented settings can screw up your system, so perform at your own risk. Also, you’ll likely have to reboot the machine to see any difference.

与往常一样,这些“略有”文档记录的设置可能会使您的系统搞砸,因此,风险自负。 另外,您可能必须重新引导计算机才能看到任何区别。

Manual Registry Hack

手动注册表破解

You can also set this value by changing a registry parameter. Open up regedit.exe through the start menu search or run box, and then navigate down to the following key:

您还可以通过更改注册表参数来设置此值。 通过开始菜单搜索或运行框打开regedit.exe,然后向下导航至以下键:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ FileSystem

image

Double-click on the NtfsMemoryUsage key on the right-hand side and change the value to 2. Here’s the available values:

双击右侧的NtfsMemoryUsage键并将其值更改为2。这是可用的值:

  • Not Set: 0

    未设置:0
  • Set to Default: 1

    设置为默认值:1
  • Increase Cache: 2

    增加缓存:2

According to the documentation the default setting is “1”, but by default the key is set to “0”. Typically in that scenario the setting of “0” means “Not Set”, which means the system uses the default setting. You should be able to change the value to either “0” or “1” in order to change this back to default.

根据文档,默认设置为“ 1”,但默认情况下,键设置为“ 0”。 通常,在这种情况下,设置为“ 0”表示“未设置”,这表示系统使用默认设置。 您应该能够将值更改为“ 0”或“ 1”,以便将其更改回默认值。

This setting also works in Windows Server 2003.

此设置在Windows Server 2003中也可以使用。

翻译自: https://www.howtogeek.com/howto/windows-vista/increase-the-filesystem-memory-cache-size-in-vista/

图标缓存 vista

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值