Firefox/Projects/Startup Time Improvements Notes: Difference between revisions

(→‎adw's Windows XP experience: Fixed flushmem link, added more info)
 
(5 intermediate revisions by 2 users not shown)
Line 41: Line 41:
</pre>
</pre>


The purge command on Linux, <tt>echo 3>  /proc/sys/vm/drop_caches</tt>, requires root privileges. [ddahl via adw]


== Startup post on dev-apps-firefox==
== Startup post on dev-apps-firefox==
Line 143: Line 144:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters
</pre>
</pre>
(sorry, I remembered wrong. -- sid0)


The default value of the <tt>EnablePrefetcher</tt> key is 3 (on XP at least). [adw]
The default value of the <tt>EnablePrefetcher</tt> key is 3 (on XP at least). [adw]
(it's the same on Vista/7 -- sid0)


=== adw's Windows XP experience ===
=== adw's Windows XP experience ===


The notes above point to three tools for flushing disk cache on Windows:
The notes above point to three tools for purging disk cache on Windows:


* [http://technet.microsoft.com/en-us/sysinternals/bb897561.aspx CacheSet] from Microsoft
* [http://technet.microsoft.com/en-us/sysinternals/bb897561.aspx CacheSet] from Microsoft
Line 183: Line 188:
* Invalidating the CPU caches
* Invalidating the CPU caches
* Invalidating the cache on the storage media
* Invalidating the cache on the storage media
* Invalidating the OS's read cache (note that this is not the same as the write cache which can be flushed with [http://msdn2.microsoft.com/en-us/library/aa364439.aspx FlushFileBuffers])
* Invalidating the OS's read cache (note that this is not the same as the write cache which can be flushed with [http://technet.microsoft.com/en-us/sysinternals/bb897438.aspx Sync.exe] via [http://msdn2.microsoft.com/en-us/library/aa364439.aspx FlushFileBuffers])
* Removing items from the OS's KnownDLL cache ([http://blogs.msdn.com/larryosterman/archive/2004/07/19/187752.aspx Larry], [http://support.microsoft.com/kb/164501 KB])
* Removing items from the OS's KnownDLL cache ([http://blogs.msdn.com/larryosterman/archive/2004/07/19/187752.aspx Larry], [http://support.microsoft.com/kb/164501 KB])
* Removing items from the CLR JIT compilation cache (.NET apps only)
* Removing items from the CLR JIT compilation cache (.NET apps only)
</blockquote>
</blockquote>
Confirmed users, Bureaucrats and Sysops emeriti
2,088

edits