Solved To Prefetch, or not to Prefetch?


To waste RAM or not to waste RAM? :unsure:

Prefetch is still one of the lead causes of leaked RAM/CPU.
 

My Computer My Computer

At a glance

Home26H2CanAMD Ryzen 5 8600G (07/24)2x32GB Kingston FURY DDR5 5600 MHz CL36 @5200...ASROCK Radeon RX 6600 Challenger D 8G @48FPS ...
OS
Home26H2Can
Computer type
PC/Desktop
CPU
AMD Ryzen 5 8600G (07/24)
Motherboard
ASROCK B650M-HDV/M.2 (07/24) BIOS 4.21 AGESA ComboAM5 1.3.0.1 (04/26)
Memory
2x32GB Kingston FURY DDR5 5600 MHz CL36 @5200 CL36 (07/24)
Graphics Card(s)
ASROCK Radeon RX 6600 Challenger D 8G @48FPS (08/24)
Sound Card
Creative Sound BlasterX AE-5 Plus (05/24)
Monitor(s) Displays
24" Philips 24M1N3200ZS/00 (05/24)
Screen Resolution
1920×1080@165Hz via DP1.4
Hard Drives
Kingston KC3000 NVMe 2TB (05/24)
ADATA XPG GAMMIX S11 Pro 512GB (07/19)
PSU
Seasonic Core GM 550 Gold (04/24)
Case
Fractal Design Define 7 Mini with 3x Noctua NF-P14s/12@555rpm (04/24)
Cooling
Noctua NH-U12S with Noctua NF-P12 (04/24)
Keyboard
HP Pavilion Wired Keyboard 300 (07/24) + Rabalux 76017 Parker (01/24)
Mouse
Logitech M330 Silent Plus (01/26)
Internet Speed
500/100 Mbps via RouterOS (05/21) & TCP Optimizer
Browser
Edge, Brave for YouTube, LibreWolf for FB
Antivirus
NextDNS blocking 1/3 Traffic
Other Info
Phone: Motorola Moto G86 (02/26)
Backup: Hasleo Backup Suite (PreOS)
Headphones: Sennheiser RS170 (09/10)
Chair: Huzaro Force 4.4 Grey Mesh (05/24)
Notifier: Xiaomi Mi Band 9 Milanese (10/24)
FlexCore USB-C 3.2 Gen 1 (M) to LAN (F) (08/25)
Hi folks
Prefetch is a complex algorithm which exists in all modern OS'es and is often far more useful than you think. What it does is by "learning" what the user runs most frequently and then puts this into storage so when the application is run it's available almost instantly. You need a decent amount of RAM of course and it's "dynamic". Large applications with sluggish start up times obviously will benefit more than small fast apps.

Some indication of performance can often be noticed after clean installing a new Windows system. You'll probably see overall performance improve after a few logons as the prefetch algorithm starts using data it has collected and it refines as it goes along.

On multi user systems like servers etc it makes a lot of sense.

Some of those articles about CPU / memory leak etc have nothing to do with the theoretical aspects of prefetch. If those things happen that's because of defects in the OS itself. High CPU usage also is usually caused (unless you are running a load of complex mathematical models and a load of floating point apps) by either lack of RAM for the workload or incredibly poor Disk I/O subsystems (or both). On modern machines the graphic functions are often handled via a separate graphic processor / co-processor.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
"Scanning and backing up prefetch data will have no noticeable impact on time or storage."

Au contraire Mon Fraire!

Repeatedly scanning thousands of garbage files on a hard drive, shortens the life of the drive. And it also lengthens the time of the scan too.
It can also lengthen the time it takes for the system to boot up, because all files have to be read and directories formed.
Then if you do a backup, the garbage files swell the size of the backup.
Maybe a better example for you, would be, "do you take out the garbage in your house, or just stack it in a corner?".

You're whole precept that garbage should be left alone because it won't hurt anything is amateurish, juvenile and very poor advice to the new PC operators, that might be reading this forum.

Personally, I have just shut OFF Prefetch on this PC, and so far I see no ill effects. "Minus krud is cool!"
 
"Scanning and backing up prefetch data will have no noticeable impact on time or storage."

Au contraire Mon Fraire!

Repeatedly scanning thousands of garbage files on a hard drive, shortens the life of the drive. And it also lengthens the time of the scan too.
It can also lengthen the time it takes for the system to boot up, because all files have to be read and directories formed.
Then if you do a backup, the garbage files swell the size of the backup.
Maybe a better example for you, would be, "do you take out the garbage in your house, or just stack it in a corner?".

You're whole precept that garbage should be left alone because it won't hurt anything is amateurish, juvenile and very poor advice to the new PC operators, that might be reading this forum.

Personally, I have just shut OFF Prefetch on this PC, and so far I see no ill effects. "Minus krud is cool!"
You seem to not realise that what you consider garbage Windows does not.
What is this 'all files have to be scanned, read and directories formed' you are talking about? When is this supposed to happen, at boot up? Doesn't happen that way. Windows only reads the files needed for boot, when booting, not the whole disk.
An anti-virus app will exclude certain file types and directories when scanning.
Most backup apps will also exclude certain files and directories to keep the size of the backup reduced, these files and directories will be re created by Windows when it is restored, if needed.
Encouraging 'new' PC operators to switch off parts of the OS and delete files without fully understanding their use is hardly good advice.
You seem to need your tinfoil hat loosening a little bit. :unsure:
 

My Computer My Computer

At a glance

Windows 11 Pro 22H2, build: 22621.521Intel i7-12700K 3.6GHz Base (5.0GHz Turbo)64GB DDR 3600MhzAsus Tuff RTX 3080 10GB OC
OS
Windows 11 Pro 22H2, build: 22621.521
Computer type
PC/Desktop
Manufacturer/Model
Scan 3XS Custom 1700
CPU
Intel i7-12700K 3.6GHz Base (5.0GHz Turbo)
Motherboard
Asus ProArt Creator B660 D4
Memory
64GB DDR 3600Mhz
Graphics Card(s)
Asus Tuff RTX 3080 10GB OC
Sound Card
Onboard Realtek
Monitor(s) Displays
Gigabyte G32QC 32inch 16:9 curved @2560 x 1440p 165Hz Freesync Premium Pro/ Dell SE2422H 24inch 16:9 1920 x 1080p 75Hz Freesync
Screen Resolution
2560 x 1440p & 1920 x 1080p
Hard Drives
WD SN570 1TB NVME (Boot), Samsung 870QVO 1TB (SSD), SanDisk 3D Ultra 500Gb (SSD) x2, Seagate 3Tb Expansion Desk (Ext HDD), 2x Toshiba 1Tb P300 (Ext HDD)
PSU
Corsair RM1000X Modular
Case
Corsair 4000D Airflow Desktop
Cooling
Corsair Hydro H150i RGB Pro XT 360mm Liquid Cooler, 3 x 120mm fans, 1x Exhaust
Keyboard
Microsoft Ergonomic
Mouse
Logitech G402
Internet Speed
800Mbs
Browser
Edge Chromium
Antivirus
Defender, Malwarebytes
Some here obviously don't understand either what prefetch is or how it works. It's nothing to do with scanning 1000's of files etc etc. Some people also confuse "Prefetch" with "Indexing" which is a different ball game.

99% of people should really leave a lot of these "internal parts" of the Windows OS alone until they have some idea (hopefully not gleaned from terrible sites like Reddit) of how the OS works -- and even then it's often better just to leave Windows to manage itself.

If you want to try out new things for "Learning" then start by using a VM as you can fiddle around quite a lot and if it all goes wrong just delete the VM and start again. If you can't manage VM's then you shouldn't be tinkering around with parts of the Windows kernel in any case

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
Back
Top Bottom