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
  • 246 posts
  •  
    Italy

Posted 05 December 2018 - 04:50 AM

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
  • 566 posts
  •  
    France

Posted 05 December 2018 - 07:57 PM

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
  • 142 posts
  •  
    Brazil

Posted 06 December 2018 - 03:36 AM

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
  • 403 posts
  •  
    Germany

Posted 06 December 2018 - 06:06 AM

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
  • 1415 posts
  • Location:Borås, Sweden
  •  
    Sweden

Posted 10 December 2018 - 05:18 AM

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
  • 403 posts
  •  
    Germany

Posted 10 December 2018 - 06:24 AM

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
  • 1415 posts
  • Location:Borås, Sweden
  •  
    Sweden

Posted 10 December 2018 - 06:45 AM

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