|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 | |||
|
cheap philanthropist
|
A little project: bringing back some cache.
I got an idea and got carried away so instead of sleeping I put a little something together. A batch file that in a fairly efficient way reads files and folders location data off the drives, forcing the file cache to store it. This is probably not for all systems but for what little I've tested yet I can't see why I won't keep this unless prefetching in Windows 7 gets changed in the last minute. Anyway here's the readme I've been typing on, hopefully without too many errors.
I'm looking for critique of both the idea and the method and I want you to find flaws in the system. Not with proofreading the text though because I'll work more on it when my head has cleared. I'm sure something is not very clearly described though, and I changed some methods half way through so I had to rework the readme a few times, lol. I'm off to bed. ![]() file: http://www.ghus11.to/mikael.karlsson...ryout_file.zip Edit: Minor changes, remade the delay system in standard batch job to just one big 30s deyal, and added optional batch without any delay. Quote:
Quote:
Quote:
Last edited by mkk; Jun 16, 2009 at 04:02 PM. |
|||
|
|
|
|
|
#2 |
|
DriverHeaven Newbie
Join Date: Jun 2009
Posts: 1
Rep Power: 0 ![]() |
Re: A little project: bringing back some cache.
Hmm...
|
|
|
|
|
|
#3 |
|
DriverHeaven Extreme Member
|
Re: A little project: bringing back some cache.
Interesting mkk I will give it a more thorough read through after work
__________________
"My mom said the only reason men are alive is for lawn care and vehicle maintenance." - Tim Allen |
|
|
|
|
|
#4 |
|
cheap philanthropist
|
Re: A little project: bringing back some cache.
|
|
|
|
|
|
#5 | |
|
DriverHeaven Extreme Member
|
Re: A little project: bringing back some cache.
Quote:
__________________
"My mom said the only reason men are alive is for lawn care and vehicle maintenance." - Tim Allen |
|
|
|
|
|
|
#6 |
|
...just bummin 'round
|
Re: A little project: bringing back some cache.
im always up for some tweaking, and just the other day installed win7 7229 x64, but before i dive in i d like to know a little more about. currently my pc has been on for 1 day and 5 hours. the free mem in task manager is hanging out at bout 5, +\-2 MB or so, cached 2845, avail 2823 with a total of 4094. 1.24 GB showing on the meter. obviosly superfetch has used my reaming available mem as cache.
is this tweak more about what gets cached rather than how much is cached?
__________________
seeing the same things over again, repeating the same slogans we don't know where we've been
|
|
|
|
|
|
#7 |
|
cheap philanthropist
|
Re: A little project: bringing back some cache.
After having been run for such a long time the cache should fill up naturally with whatever files you have been using, for instance every web page or picture loaded is left in the growing filecache without any action from Superfetch. Superfetch is more about keeping track of files that are used often, and then preloading the cache with those files before the user touches them or starts a program that uses them.
Typically when I was running Vista, Superfetch was preloading several gigabytes of data into unused(free) RAM right after startup. Here so far with Windows 7 (or at least after the open beta) it doesn't do much until 5-6 minutes after startup and then preloads maybe 3-400MB of data and then stops, seemingly not picking up again. That's my experience anyhow. But I won't go back to Vista over it. ![]() Now what this batchfile does in a nushell is making the system go over the drives contents and load the folder structure and location of all files into the cache so that it has that information readily available when a program or the user accesses files and folders. It does not make the system preload the actual contents of any files, just the structure of where all the stuff is. Searching for files for instance or entering a folder with a lot of files like for instance "c:\windows\system32\" is speeded up since all of the folder structure and file locations already resides in RAM. Even starting a program like Photoshop that consists of many small files is sped up noticeably, which surprised me but with so many files involved it appears to have been help enough to just preload the structural data. This method could also benefit systems running WinXP or Vista with Superfetch disabled (as quite a few people to do) but I'm concentrating on testing this out with Windows 7 for now. Edit: Another benefit for my own system is related to how I have six harddrives most of which fall asleep after just ten minutes by choice. Now since all their file structure already exists in RAM through the cache, I can browse the folders on the sleeping drives without having to wait for a drive to wake up just to read the root folders. With Vista Superfetch was preloading so much that this was typically the case anyway, but now for me it helps here also to give the cache a kick in the right direction. Last edited by mkk; Jun 16, 2009 at 10:38 PM. |
|
|
|
|
|
#8 |
|
DriverHeaven Lover
|
Re: A little project: bringing back some cache.
I understand what your doing here but I'm at work at can't test this. If say, I have a home server and I have drives mapped to it, like my S:\ drive or my Documents folder mapped to the server instead would it cache those as well for faster browsing? Just curious with this being a file directory cache and not a program cache.
|
|
|
|
|
|
#9 | |
|
DH's Dormant Dragon
|
Re: A little project: bringing back some cache.
this looks extremely interesting.....
__________________
Quote:
|
|
|
|
|
|
|
#10 | |
|
cheap philanthropist
|
Quote:
There must be a client side limitation here when it comes to network drives since there is no probably way for the client system to know when files and folders have changed on the server until it makes the query. I'm not experienced enough with networks to make an educated guess, but I assume there should be some sort of time interval for a client to request a full re-read of the folder structure on a server. On a high speed local network such a time interval could be kept very low, which wouldn't help us in this case. (On the other hand I wonder if at this day and age there aren't some servers that can act differently by pushing this new information onto clients.) Fortunately however, assuming that the server is not overworked it will keep the file and folder structure in its own RAM cache. If it doesn't already before the client runs this batch job, then it certainly will have the data in cache and the next request for folder and file structure information will be sent from the RAM cache on the server, and so at least faster than if the data had to be gathered straight from a server harddrive. Excellent questions people, it really helps to evaluate the usefulness of this idea Last edited by mkk; Jun 17, 2009 at 03:07 PM. |
|
|
|
|
|
|
#11 | |
|
DH's Dormant Dragon
|
Re: A little project: bringing back some cache.
a new system that would allow another computer to access the cached information on a networked computer about it's own file systems would probably be the best right?
but i haven't a clue how that would work... Instead of caching all the information onto the very computer accessing the networked drives... as the other machine could make changes... append those changes to it's own cache at which point the other machine would have to completely refresh the cache as well... complicated lol
__________________
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|