PDA

View Full Version : How much space taken by temp files?


sonnet
02-13-2008, 01:20 PM
Hi guys,
I'm going to create a RamDisk on my system.
On the RamDisk I will move the pagefile.sys file, and the temp folder of windows.
Specifically I will move the following folders:
1)Internet Temporary files
2)%USERPROFILE%\AppData\Local\Temp
3)%USERPROFILE%\AppData\Local\Temp
4)C:\Windows\Temp\

The problem is how much space do they need?The fact is that bigger is the RamDisk,smaller is the amount of RAM available to the system.
Though I have 8GB of ram installed I just want size correctly the ramdisk.
So considering I'm giving 256mb for the pagefile.sys, how much space do you think would be fair to give for the temps file?
What happens if the space given is not enough?

Azhar
02-13-2008, 02:44 PM
You can force page files and cache files to max out at certain sizes and write over itself.

Right-click on My Computer, then Properties, then Advanced, then Settings (under Performance), then Advanced, then Change (under virtual memory) to set your maximum pagefile.

As for internet cache, open Control Panel, then Internet Options, then in the General tab click Settings (under Browsing History) to set your maximum cache size.

sonnet
02-13-2008, 03:58 PM
You can force page files and cache files to max out at certain sizes and write over itself.

Right-click on My Computer, then Properties, then Advanced, then Settings (under Performance), then Advanced, then Change (under virtual memory) to set your maximum pagefile.

As for internet cache, open Control Panel, then Internet Options, then in the General tab click Settings (under Browsing History) to set your maximum cache size.

Thanks for the reply, I knew that for the pagefile I can set my maximum,my problem is which size should I give to these folder:
2)%USERPROFILE%\AppData\Local\Temp
3)%USERPROFILE%\AppData\Local\Temp
4)C:\Windows\Temp\

Azhar
02-13-2008, 04:06 PM
I cannot say. I've never had the opportunity to customize temp folder size.

But I think it's not very wise to move temp into RAMDISK because sooner or later something is bound to mess up. Sometimes files stored in temp is required by Windows during start-up, for example, if a software tells you to reboot to complete the installation, but rebooting will cause RAMDISK to clean itself out before installation could be completed!

You know what I'm getting at?

sonnet
02-13-2008, 04:41 PM
I cannot say. I've never had the opportunity to customize temp folder size.

But I think it's not very wise to move temp into RAMDISK because sooner or later something is bound to mess up. Sometimes files stored in temp is required by Windows during start-up, for example, if a software tells you to reboot to complete the installation, but rebooting will cause RAMDISK to clean itself out before installation could be completed!

You know what I'm getting at?
yas I get it now..to be honest I didn't think aboutthis case, but know that you are telling me..it seems mine was defintely not a good idea.

Mithent
02-13-2008, 05:36 PM
There's also no real benefit in moving your pagefile.sys to a RAMdisk:

http://forums.2cpu.com/showpost.php?p=63581&postcount=3

The Windows memory management system doesn't just spend all its time paging things to disk for fun; it pages if it needs to, and it might page things that haven't been used in ages. If you really want to prevent it paging things then set no page file, rather than trying to accomplish the same in a less efficient way - but disabling the page file isn't going to help either, because again, Windows doesn't page things without reason, and sometimes programs allocate huge amounts of virtual memory that Windows has to commit to supplying, but will usually mark off in the page file until they're actually in use. Disabling the page file - or, indeed, putting it in the RAM - means that physical memory has to be used for this purpose, marking potentially hundreds of megabytes as "for future use" (http://www.windowsitpro.com/Articles/ArticleID/42035/42035.html).

sonnet
02-14-2008, 11:47 AM
There's also no real benefit in moving your pagefile.sys to a RAMdisk:

http://forums.2cpu.com/showpost.php?p=63581&postcount=3

The Windows memory management system doesn't just spend all its time paging things to disk for fun; it pages if it needs to, and it might page things that haven't been used in ages. If you really want to prevent it paging things then set no page file, rather than trying to accomplish the same in a less efficient way - but disabling the page file isn't going to help either, because again, Windows doesn't page things without reason, and sometimes programs allocate huge amounts of virtual memory that Windows has to commit to supplying, but will usually mark off in the page file until they're actually in use. Disabling the page file - or, indeed, putting it in the RAM - means that physical memory has to be used for this purpose, marking potentially hundreds of megabytes as "for future use" (http://www.windowsitpro.com/Articles/ArticleID/42035/42035.html).


Well the fact is that I have 8GB of ram on my pc, and pagefile management is not efficient, at least not with XP (but I saw complain even from Vista users ).Many user stated that even with a lot of ram (2gb ) e few process running they noticed that files were still paged .
On the other hand I read an interview to a Windows developer who stated that it would be better not disable pagefile as the windows kernel was conceived to make use of it.
So the best way I found is to put it on a Ram disk.
The point is that I want avoid as much as possible any Hard Drive activity if not necessary.

Gambit
02-14-2008, 02:18 PM
There *is* software out there that will auto save/load a ramdisk when the computer boots up and shutsdown. This would give you the speed of accessing the temp files in memory, but also allow files that actually need to persist between reboots to do so.