Hi, On Fri, Mar 27, 2009 at 02:05:23PM -0600, Scott Scriven wrote:
* Jorge Arellano Cid <jcid@dillo.org> wrote:
BTW, it'd be good to have some memory usage data for dillo-2.1.
A while ago, I noticed that dillo was using a lot of memory on a specific page, and I didn't remember it doing that before. So I tested a few versions and found that dillo2 uses more memory initially, but less memory for large tables. Specifically:
Memory use (in KiB) (on ubuntu 7.10 x86_64) dillo-0.8.6/src/dillo: 3692 file:///nothing 4900 http://dillo.org/ 45204 http://idlerpg.net/db.php dillo-2.0/src/dillo: 4700 file:///nothing 6564 http://dillo.org/ 36408 http://idlerpg.net/db.php hg/dillo/src/dillo: 4812 file:///nothing 6684 http://dillo.org/ 36756 http://idlerpg.net/db.php
Note: I remmeber having an awful memory footprint on 64bit Ubuntu. It didn't happen with 32bit. What's the current status, I don't know.
I have both 64-bit and 32-bit ubuntu systems here, if you need measurements. For example, I tried the above on my 32-bit box:
Memory use (in KiB) (on ubuntu 8.04 i686) dillo-0.8.6/src/dillo: 4916 file:///nothing 6504 http://dillo.org/ 36824 http://idlerpg.net/db.php dillo-2.0/src/dillo: 3972 file:///nothing 5732 http://dillo.org/ 25144 http://idlerpg.net/db.php hg/dillo/src/dillo: 4036 file:///nothing 5760 http://dillo.org/ 25296 http://idlerpg.net/db.php
Yes, 64bit uses more memory. I've collected the following numbers: (Ubuntu 8.10, 32bit) dillo-2.1: VSZ RSS COMMAND 8148 3872 ./dillo (empty) 26936 19196 ./dillo DragonFly.html (1.1MB HTML) 178684 174620 ./dillo MySQL-6.0.html (13MB HTML) 119788 113096 ./dillo MySQL-6.0.html (no IMG) f=7.2 dillo-0.8.6 VSZ RSS COMMAND 16592 3960 ./d086 83784 35748 ./d086 DragonFly.html (1.1MB HTML) 357320 293796 ./d086 MySQL-6.0.html (13MB HTML) 297224 234344 ./d086 MySQL-6.0.html (no IMG) f=16.3 firefox-3.0.8 VSZ RSS COMMAND 100884 37572 ./firefox 123184 59688 ./firefox DragonFly.html (1.1MB HTML) 312652 241016 ./firefox MySQL-6.0.html (13MB HTML) 328352 237560 ./firefox MySQL-6.0.html (no IMG) f=15 The 13MB page can be found at: http://dillo.org/test/mysql-6.0.doc.tar.bz2 The 1.1MB page can be found at: http://dillo.org/test/DragonFly.html.bz2 This numbers are the basis to claim that dillo2 uses half the memory footprint of dillo1. The "f" factor is the RSS for the MySQL manual (with no images), minus the empty RSS, minus 13MB, all divided by 13MB. The memory-cached page is substracted to get a clean HTML to Widgets factor. This is, if you have a 130KB html page, f*130KB will be used for rendering. It'd be good to have some wall-clock numbers too. Then the data can be tabulated and shown in the web site. Suggestions are highly welcomed. The VSZ and RSS numbers come from ps. I don't know of a better way to measure memory usage. The general idea is to have reproduceable numbers that show how dillo differs in memory and speed with other browsers. -- Cheers Jorge.-