Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Tool to preload windows cache?
New Posts  All Forums:Forum Nav:

Tool to preload windows cache?

post #1 of 109
Thread Starter 
I've got 24GB of RAM, most of which sits idle. It'd be nice to just load a game entirely into RAM ahead of time. Of course there's always RAM disks, but they're inflexible and inefficient - they have to completely block off a predefined chunk of my memory, and anything I read off of it is redundantly cached in the standard windows file cache, since windows technically doesn't know it's a RAM disk.

What would be really neat is if I could just right click a folder, pick load to cache, and let it rip right into the file cache. Even though it's now liable to be bumped out of RAM by other processes, I've got enough RAM that it's not a major issue. I googled up and down and can't find anything of the sort, but it seems no more complicated that a script that simply reads the files and then quits.

Anyone got any ideas?
post #2 of 109
Never heard of anything like it, but would love to have it myself. Sadly I don't think it exists as I would probably have heard of it in all these years then.
The up/downgrade
(14 items)
 
  
CPUMotherboardGraphicsRAM
|Intel 6800K @ 4ghz 1.24v| |Asus ROG Strix X99| |Gainward GTX 1070 @ ~2ghz| |4x4gb Corsair XMS 3000mhz CL14| 
Hard DriveOSMonitorKeyboard
|840 Pro 256gb| |OCZ Vertex 2 120gb| |WD Red 2tb| |Windows 10 Pro x64| |27" QNIX QX2710 @ 2560x1440 120hz| |Logitech G810 Orion Spectrum RGB| 
PowerCaseMouseAudio
|EVGA SuperNOVA 1000 G2| |Corsair 750D| |Logitech G502 Proteus Spectrum RGB|  |JBL L890 speakers| 
AudioAudio
|Emotiva XDA-2 receiver| |2x Advanced Acoustic MAA-705 @ 200w 8ohm| 
  hide details  
Reply
The up/downgrade
(14 items)
 
  
CPUMotherboardGraphicsRAM
|Intel 6800K @ 4ghz 1.24v| |Asus ROG Strix X99| |Gainward GTX 1070 @ ~2ghz| |4x4gb Corsair XMS 3000mhz CL14| 
Hard DriveOSMonitorKeyboard
|840 Pro 256gb| |OCZ Vertex 2 120gb| |WD Red 2tb| |Windows 10 Pro x64| |27" QNIX QX2710 @ 2560x1440 120hz| |Logitech G810 Orion Spectrum RGB| 
PowerCaseMouseAudio
|EVGA SuperNOVA 1000 G2| |Corsair 750D| |Logitech G502 Proteus Spectrum RGB|  |JBL L890 speakers| 
AudioAudio
|Emotiva XDA-2 receiver| |2x Advanced Acoustic MAA-705 @ 200w 8ohm| 
  hide details  
Reply
post #3 of 109
Thread Starter 
Quote:
Originally Posted by go4life View Post

Never heard of anything like it, but would love to have it myself. Sadly I don't think it exists as I would probably have heard of it in all these years then.

This is the closest thing I've found:

http://www.ddo.com/forums/showthread.php/420738-How-to-make-the-game-loading-faster-DDOPreload-official

It does exactly what I want....for only DDO. But the source code is there, and theoretically someone more talented with C++ could probably generalize it fairly easily. It's completely beyond my skills, but it'd be pretty awesome if someone took up the task. smile.gif
post #4 of 109
Quote:
Originally Posted by Darius510 View Post


This is the closest thing I've found:

http://www.ddo.com/forums/showthread.php/420738-How-to-make-the-game-loading-faster-DDOPreload-official

It does exactly what I want....for only DDO. But the source code is there, and theoretically someone more talented with C++ could probably generalize it fairly easily. It's completely beyond my skills, but it'd be pretty awesome if someone took up the task. smile.gif

 

Hmm....

 

I have a friend who might be able to pull it off. I don't know if he'd have time for it though, but I can ask.

It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
post #5 of 109
Thread Starter 
Well, I've got a bit of a dirty hack working.

I downloaded this tool, also has source code:

http://www.arcgis.com/home/item.html?id=08a5a05ff82446bb8a8befad03b1bb86

Basically a tiny little java commandline program. Have to install the java SDK to get it to work. First, run the compile .bat. Then you need to make a tiny mod to the run batch file, and change the first %1 to %~1, otherwise it won't accept folders with a space in them. The batch and the .class file also need to be in the folder that contains the folder you want to cache. Then just drag and drop the folder (or file) onto the batch file, and watch it load everything. When it's done, hit enter and it drops from active memory right into the cache.

Works like a charm. Tested with path of exile, which normally takes over a minute to load off a HDD. Just dragged and dropped the folder, it took a while to preload everything. Fired it up.....16 seconds.

So the theory works, it's totally doable, I'm just hoping someone can take the foundations here and build it into a much more elegant tool.
post #6 of 109
Thread Starter 
Looks like you can just copy the .bat to the send to menu in explorer...works perfectly now.

It's absolutely shameful how fast stuff loads now, and it's so much easier than dealing with a RAM disk. I'm honestly surprised no one's thought of this before!
post #7 of 109
Quote:
Originally Posted by Darius510 View Post

Looks like you can just copy the .bat to the send to menu in explorer...works perfectly now.

It's absolutely shameful how fast stuff loads now, and it's so much easier than dealing with a RAM disk. I'm honestly surprised no one's thought of this before!

 

I'll send my friend a "nevermind" e-mail. lol Nice work!

It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
post #8 of 109

Wait. Hang on. So, what exactly did you do, and what exactly are you doing now? Can you dummy it down for me? I'd like to try this, but I think my brain might be a bit too fried right now from being awake too long because I'm not understanding what you said in Post #5, but I understand the Send To menu part in #6 - but I still don't get what you're doing. lol

It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
post #9 of 109
Whatever your doing sounds incredibly ballsy. And awesome.

Nice work, however you did it.

Really interesting thread actually, thanks for posting, but a little more clarity like TwoCables suggested would be even better smile.gif
Sabertooth
(18 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 4770k @4.5 GHz Asus Z87 Pro PowerColor R9 290X BF4 Edition Corsair/G.Skill 16GB @ 1600 
Hard DriveHard DriveHard DriveHard Drive
Sandisk Ultra Plus 256GB WD1002FAEX Caviar Black 1TB  Samsung HD502HJ 500GB Samsung HD501LJ 500GB 
Optical DriveCoolingOSMonitor
Lite-ON 24X CD/DVD Burner  Antec H20 620 w/ AP-15 Push-Pull Windows 7 Pro  Acer G276HL 27" 
KeyboardPowerCaseMouse
Das Keyboard Pro w/ MX Blues Corsair HX850 Cooler Master HAF 922 Microsoft IE 3.0 
Mouse Pad
Steelseries Qck 
  hide details  
Reply
Sabertooth
(18 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 4770k @4.5 GHz Asus Z87 Pro PowerColor R9 290X BF4 Edition Corsair/G.Skill 16GB @ 1600 
Hard DriveHard DriveHard DriveHard Drive
Sandisk Ultra Plus 256GB WD1002FAEX Caviar Black 1TB  Samsung HD502HJ 500GB Samsung HD501LJ 500GB 
Optical DriveCoolingOSMonitor
Lite-ON 24X CD/DVD Burner  Antec H20 620 w/ AP-15 Push-Pull Windows 7 Pro  Acer G276HL 27" 
KeyboardPowerCaseMouse
Das Keyboard Pro w/ MX Blues Corsair HX850 Cooler Master HAF 922 Microsoft IE 3.0 
Mouse Pad
Steelseries Qck 
  hide details  
Reply
post #10 of 109

Yeah, I tried it but it's not working. A Command Console window opens for about 1ms and that's all I see.

It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Tool to preload windows cache?