Jump to content











Photo
- - - - -

Disable Windows Cache of RAMDRIVE


  • Please log in to reply
6 replies to this topic

#1 friske

friske

    Frequent Member

  • Advanced user
  • 245 posts
  •  
    Italy

Posted A week ago

I just noticed that using RAMMAP from Sysinternals.com, that on the File Details tab, my Z: (Ramdisk) files were listed as being part of the system cache.

I think it makes sense that Windows should NOT cache the RAM Disk?

How do I prevent Windows from caching that drive?
 



#2 v77

v77

    Silver Member

  • Team Reboot
  • 553 posts
  •  
    France

Posted A week ago

Of course that would be nice, but as far as I know, there is no way to control that.


  • Olof Lagerkvist likes this

#3 dencorso

dencorso

    Frequent Member

  • Advanced user
  • 141 posts
  •  
    Brazil

Posted A week ago

I think it makes sense that Windows should NOT cache the RAM Disk?
How do I prevent Windows from caching that drive?

 

You can do that by setting DisablePagingExecutive (dword) to a value of 1(hex) under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.  That does require a reboot.



#4 Blackcrack

Blackcrack

    Frequent Member

  • Advanced user
  • 375 posts
  •  
    Germany

Posted A week ago

Hi,

 

i guess, this fix it :

 

https://www.thewindo...ile-sys-windows

https://www.thewindo...-memory-windows

https://blogs.techne...ile-for-anyway/

 

best regards

Blacky



#5 Olof Lagerkvist

Olof Lagerkvist

    Gold Member

  • Developer
  • 1398 posts
  • Location:Borås, Sweden
  •  
    Sweden

Posted 4 days ago

There seems to be some confusion in this thread. The cache that OP is referring to has nothing to do with whether paging to disk is enabled or not. I agree with v77 here, I don't know any methods to disable file cache for a particular drive either.

#6 Blackcrack

Blackcrack

    Frequent Member

  • Advanced user
  • 375 posts
  •  
    Germany

Posted 4 days ago

Heeeyy Olof :))))

can you maybe write a small Tweaking Program for this..
where read out the Reg-keys and make a white(no light) or green light if running.
With a Button to press and maybe works from WinXP/Ros up to Win10 (if's possible?)
(With this Tweakprogramm could maybe other tweaks possible like this)

best regards
Blacky

#7 Olof Lagerkvist

Olof Lagerkvist

    Gold Member

  • Developer
  • 1398 posts
  • Location:Borås, Sweden
  •  
    Sweden

Posted 4 days ago

Heeeyy Olof :))))can you maybe write a small Tweaking Program for this..where read out the Reg-keys and make a white(no light) or green light if running.With a Button to press and maybe works from WinXP/Ros up to Win10 (if's possible?)(With this Tweakprogramm could maybe other tweaks possible like this)best regardsBlacky


No sorry, I don't know any way to do that. The cache logic is built-in "deeply" into file systems in Windows and certain methods for accessing data in files practically speaking requires the cache logic to be active. This can be turned off by the way applications access files though by not using memory-mapped files and always open files in non-cashed mode, but that requires changes in applications that open files and give them some requirements that are not always easy to meet, for example always reading and writing full sectors and always aligned to sector boundaries etc.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users