Jump to content

Is there any way to disable memory caching in Windows? No, disabling prefetch, SysMain, and disk caching is not it. Even after that, Windows caches stuff in the memory, which can me seen in the task manager or resource manager. And yes, I know I can clear the standby memory (cache), but I want to completely disable it. I know it will hurt performance, but on a fast SSD, it wouldn't much difference, and anyways I just want to try it first.

PLEASE MARK COMMENTS AS SOLUTION IF SATISFIED!!

bigger number better, makes me look cooler.

Link to comment
https://linustechtips.com/topic/1505061-how-to-disable-memory-caching/
Share on other sites

Link to post
Share on other sites

2 minutes ago, NvidiaFirePro6900XXTX3DPRO said:

Is there any way to disable memory caching in Windows? No, disabling prefetch, SysMain, and disk caching is not it. Even after that, Windows caches stuff in the memory, which can me seen in the task manager or resource manager. And yes, I know I can clear the standby memory (cache), but I want to completely disable it. I know it will hurt performance, but on a fast SSD, it wouldn't much difference, and anyways I just want to try it first.

It only makes sense in the name of science because it has zero advantage irl...

Even with fast 5GB/sec SSD, RAM is still much faster like tenfold...

AMD R9  7950X3D CPU/ Asus ROG STRIX X670E-E board/ 2x32GB G-Skill Trident Z Neo 6000CL30 RAM ASUS TUF Gaming AMD Radeon RX 7900 XTX OC Edition GPU/ Phanteks P600S case /  Arctic Liquid Freezer III 360 ARGB cooler/  2TB WD SN850 NVme + 2TB Crucial T500  NVme  + 4TB Toshiba X300 HDD / Corsair RM850x PSU/ Alienware AW3420DW 34" 120Hz 3440x1440p monitor / ASUS ROG AZOTH keyboard/ Logitech G PRO X Superlight mouse / Audeze Maxwell headphones

Link to post
Share on other sites

I would highly doubt it. Operating systems are usually designed to load their most needed files into RAM. Heck some are made to load the entire OS into RAM so they can boot off read-only media. 

1 minute ago, NvidiaFirePro6900XXTX3DPRO said:

I know it will hurt performance, but on a fast SSD, it wouldn't much difference

Nah. The fastest SSDs measure random reads/writes in 100s of megabytes per second. Shitass slow RAM is tens of gigabytes per second, with latencies measured in nanoseconds. The better Optane drives might have more of a chance vs RAM, but would likely still be a good chunk slower. 

Just now, PDifolco said:

Even with fast 5GB/sec SSD, RAM is still much faster like tenfold...

Keep in mind that those peak reads/writes are only for large files, the OS uses a bunch of teeny files, so it's even worse than you'd think for SSDs. 

Gaming PC NAS Laptop Workstation

CPU: i5 12600KF 6P+4E Ryzen 7 3700X M4 SoC 4P+6E Xeon X5690 6c12t

Cooler: Noctua NH-D15S Wraith Stealth w/NF-A9 Passive Apple CPU Cooler

Motherboard: ASRock Z690 ITX/ax ASUS Pro B550M-C/CSM Apple J713AP Mac-F221BEC8 (Mac Pro 5,1)

RAM: 2x16GB 3600Mhz DDR4 2x16GB 2400MHz DDR4 24GB Micron LPDDR5 4x8GB 1333MHz ECC DDR3

GPU: Sapphire Pulse Radeon 9060 XT 16GB Radeon WX2100 M4 SoC 10C Radeon RX 5700

Storage: 1TB MP34 + 2TB P41 500GB SSD + 2x4TB IronWolf Pro in ZFS Mirror Apple AP0512Z 1TB Crucial MX500

ODD: LG WH14NS40 None LG GP65NB60 USB DVD Writer Don't know

PSU: EVGA 850W GM Silverstone SST-TX300 53.8Wh LiPo Battery Delta DPS-980BB

Case: Silverstone Sugo 14 Dell Inspiron 530S Mac16,12 chassis (13" MBA) 2009-2012 Mac Pro "Cheese Grater"

OS: Gentoo Linux TrueNAS Scale macOS 26 Tahoe Fedora Linux

 

Display: LG 27UK650-W (4K 60Hz IPS panel)

Mouse: EVGA X17

Keyboard: Corsair K55 RGB

 

Mobile/Work Devices: 14" M5P MacBook Pro (work) - iPhone 17 Pro - Apple Watch S11

 

Other Misc Devices: iPod Video (Gen 5.5E, iFlash Solo w/128GB SD Card, Rockbox), Nintendo Switch

 

Vehicles: 2002 Ford F150, 2003 Harley-Davidson Sportster 1200, 2022 Kawasaki KLR650, 1994 DR350SE

Link to post
Share on other sites

RAM caching is such an old concept in operating systems that it is likely built right into the fabric of every modern OS. Maybe on Linux you could hack your way into disabling it - probably by compiling a version of the OS from scratch that acted that way, as I doubt there's a config for that option - but I doubt you can do that with Windows.

 

Even if you could disable it in Linux or another OS, I wouldn't be surprised if the results were horrific. If not causing outright kernel panic/BSOD situations, it would completely cripple performance for absolutely no benefit.

 

You know how a computer slows to a crawl when it runs out of RAM? This is partly because it can't cache things anymore. So the computer would be in a state where it behaved as it it were always out of RAM.

 

Basically, this is a not-so-good idea.

 

EDIT: Here's an old post on AskUbuntu - the "solution" given is to write a script that forcibly clears the cache all the time to give you effectively the same result, if you're really masochistic and want to see what it's like to use an OS with effectively no RAM caching: https://askubuntu.com/questions/155768/how-do-i-clean-or-disable-the-memory-cache

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×