(Windows) Move the Firefox or Chrome cache to a RAM disk and speed up surfing
downloadsquad.com
downloadsquad.com
The advantages besides speed are, the temp folder cleans up every time you restart, it's also useful for storing anything disposable, an archive you'll need to download only once and use its contents, and useful for doing anything potentially unsafe for your regular disk.
The disadvantage for setting your temp folder to the ram disk is that sometimes, some programs will try to store a lot of data on the temp folder and fill it up (I use 384mb), but that's something you can usually change in the programs' settings.
The idea of a RAM disk being quicker than a real disk -- when memory is backed by the file system, and the file system has a cache in front of it -- sounds a lot like 1975 programming: http://www.varnish-cache.org/trac/wiki/ArchitectNotes
My linux machine was having issues with one of its hard drives (an external one) being slow to access. For some reason, chrome would decide to hit that drive once in a while and that would halt everything for a few seconds while it did so. I told it to stop using disk cache at all and suddenly everything is much nicer.
With apps waiting on disks for -any- reason, it doesn't surprise me that making the temp dir be ultra-fast helps.
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`
ex: Initialized /dev/rdisk4 as a 569 MB HFS Plus volume
works for me in firefox. but doesn't really seem faster, probably because my main disk is an ssd raid array. Usage: diskutil eraseVolume format name MountPoint|DiskIdentifier|DeviceNode
Completely erase an existing volume. Ownership of the affected disk is
required. Format is the specific filesystem name you want to erase it as
(HFS+, etc.). Name is the (new) volume name (subject to filesystem naming
restrictions), or can be specified as %noformat% to skip initialization
(newfs). You cannot erase the boot volume.
Example: diskutil eraseVolume JHFS+ UntitledHFS /Volumes/SomeDisk
Edit: I got it to work by doing hdiutil attach -nomount ram://1165430 on one line, then diskutil eraseVolume on the newly mounted volume.Maybe you should try to find speed tests for browsers, like at http://www.webdevelopersnotes.com/articles/test-browser-spee...
mkdir -p /mnt/ramdisk
/sbin/mdmfs -s 256M md10 /mnt/ramdisk
vi /etc/sysctl.conf
vm.swappiness = 0