Оптимизация памяти в Firefox 7
Jan. 5th, 2012 02:56 pmАнализ использования памяти в Firefox 7
Для анализа используемой в данный момент памяти надо зайти по адресу
about:memory
Внизу открывшейся страницы будет что-то типа:
vsize - это зарезервированная приложением память. Вовсе не факт, что вся она используется. Этот параметр нам важен, скорее, для справки.
resident - это фактическая память, расположенная в оперативке (RAM). Остальной объем памяти располагается в свопе или ФС. Resident - это самый важный параметр для оценки.
Все остальные параметры нам не очень-то и важны. Желающие узнать подробности самостоятельно набивают и раскуривают маны.
Чуть ниже есть 3 кнопки: GC, GC+CC и Minimize memory usage.
GC - сбор "мусора"
GC+CC - циклический сбор "мусора"
Minimize memory usage - оптимизация памяти, используемой Firefox'ом. Суть в том, что эта пимпа как бы трижды нажимает на первые две кнопки, а потом чистит/ужимает кэш.
Так, нажав кнопку Minimize memory usage, можно выгадать до 15% памяти (больше на практике не получалось, но наверняка возможно)
Memory Restart
Как бы здоровско ни оптимизировали использование памяти разработчики, регулярно Firefox начинает отжирать жирные куски от ОЗУ и заметно сказываться на работе "слабых" систем.
Но есть такой специально обученный плагин - Memory Restart.
Выглядит его использование так:
Когда порог использованной памяти превысит заданный предел, цифры станут красными. Величина порога (как и цвета) настраивается.
На снимке приведены параметры по умолчанию. Лично меня они устраивают, но, если у вас очень много оперативной памяти, то имеет смысл увеличить параметр "Firefox memory threshold" до примерно четверти вашей ОЗУ.
При достижении заданного порогового значения плагин вас уведомит или в автоматическом режиме перезапустит Firefox (галочка "Restsrt Firefox automatically?"). После примерно 5-6 часов активной работы в Firefox эффект от такой перезагрузки - уменьшение потребления памяти на 40-50% (обычно - 25-30%).
Описанные методы работают как в Linux, так и в Windows.
Оптимизированной вам памяти!
http://ubuntism.ru/2011/10/firefox-7-memory-optimize/ http://kb.mozillazine.org/About:config_entriesPost by Nathan on Jul 15, 2012 1:59:24 GMT -5
This post includes the most effective techniques I have found combining balance in performance and preference in Firefox (Mozilla 4.0+). If you are interested in what’s to offer and consider applying these mods, I recommend reading this post a section at a time.1.) Introduction I have been researching techniques to enhance Mozilla Firefox’s performance as well as reviewing others’ experiences. In addition, I have put this configuration technique to the test and amazingly it’s shown unexpected results. Pages load faster, less memory is preoccupied with general web browsing and currently Firefox uses no memory whatsoever when minimized or idle. If you can get past the funky terminology, it doesn’t take a computer whiz to apply these steps. There are no prerequisites nor hidden installations. To analogize what these mods do: they are the tweaks a car needs in order to race. Sure the car runs fine, but without certain modifications it will never be a race car. Ready to build one?
2.) Getting Started Before making any changes, it is important to know Firefox's performance before and after these modifications are applied. Go here and take good note of your OVERALL SCORE. Once the changes ave been made, you can visit that site again to see how much the numbers have changed. After I applied these very changes, my overall performance score jumped up from 505.4 to 539.7! Enough of the blabber; let's continue, shall we?
3.) The Initial Setup I.) Type about:config in the address bar. II.) Read the warning and either proceed or go back. III.) Copy the values that are in bold, and paste them into the "Search:" bar in the about:config Control Panel to locate its default settings. To edit its settings, double click on the value and follow the given directions. III-A) If the value can not be located, that means you need to create one. To do this you need to: 1.) Right-click anywhere on the page and select New... 1-a.) Integer if the value contains numbers. 1-b.) Boolean if the value contains a True/False statement. 1-c.) String if the value contains letters. 2-a.) Enter the given Integer value. 2-b.) Enter the given Boolean value. 2-c.) Enter the given String value.
Minimizing Memory Usage browser.cache.compression_level; 1 browser.cache.memory.enabled; true browser.cache.memory.capacity; 32768 * 2048(very low RAM)-32768 (very high RAM) but can be bumped even higher for faster CPU's, as mine is set to 65536. If unsure, skip and research. * browser.display.show_image_placeholders; false browser.sessionhistory.max_total_viewers; 5 config.trim_on_minimize; true * Research the values listed above to ensure the best value suites your CPU. *
On-Page Load content.interrupt.parsing; true * Must add to use content enhancements! * content.max.tokenizing.time; 2250000 content.maxtextrun; 8191 content.notify.backoffcount; 5 content.notify.interval; 750000 content.notify.ontimer; true * Must add to use content enhancements! * content.switch.threshold; 750000
Ensuring Highest Performance network.dns.disableIPv6; true * Some say disabling this value could add security risks. * network.http.max-connections; 30 network.http.max-connections-per-server; 15 network.http.max-persistent-connections-per-server; 10 * This is the section that has Firefox programmers, beta testers, and ordinary users scratching their heads. The truth is, these settings are different for everyone and need to be tweaked accordingly. * * The trick is to retain a decent latency, while having all the necessary connections to display the various amount of content on any given page. Go here to test your connections. * * network.http.max-persistent-connections-per-server NEVER needs to be higher than 12. A value higher than 12 is considered very poor online etiquette, and can result in you being banned from a server. * * If you are using a proxy, you will need go to the link at the bottom and search keyword "proxy" and configure it likewise. *
Strictly Speed network.http.pipelining; true network.http.pipelining.maxrequests; 8 network.http.proxy.pipelining; true network.http.request.max-start-delay; 5 network.prefetch-next; false nglayout.initialpaint.delay; 100 * If you are using a proxy, you will need go to the link at the bottom and search keyword "proxy" and configure it likewise. *
Other Network Mods network.dnsCacheExpiration; 360 network.dnsCacheEntries; 100 network.ftp.idleConnectionTimeout; 60 network.http.keep-alive.timeout; 30 network.http.connect.timeout; 30
4.) Conclusion * An overview of these configurations and others can be found here. * * If unsure which to use, use them all! I did. Although, if you want to test the waters first, try applying just the “Strictly Speed” modifications and see how they work. * * If you are unhappy with your results, you can always refer back to this list, right click the modification and change it back to its default setting. * * Other great performance enhancements include: Speedfox, SpeedDNS and RAMback. * http://support.proboards.com/thread/420476/page/1/increase-firefoxs-performance#scrollTo=4871688


