]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add.
authorSimon Josefsson <simon@josefsson.org>
Thu, 6 Jul 2006 20:02:09 +0000 (20:02 +0000)
committerSimon Josefsson <simon@josefsson.org>
Thu, 6 Jul 2006 20:02:09 +0000 (20:02 +0000)
doc/TODO

index 7659363aa68dbfb0c35e4e631f1748bbdfd18151..eb028fede2c158f9f63e47d3abe39ef228abfc2b 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -60,6 +60,26 @@ Current list:
   living socket (using the fcntl close-on-exec flag) and
   continue the TLS session as well.
 - Implement draft-salowey-tls-ticket-05, useful for (e.g.) EAP-FAST.
+- Reduce memory footprint
+  - Inside gnutls_global_init, the library allocates about 64 kb of
+    memory in almost 4000 calls to malloc. On my desktop, there are 22
+    processes using gnutls, meaning about 1.2 MB of memory usage from
+    this alone.
+  - Furthermore, gnutls has 24 kb of relocations in the shared
+    library. You can see this on a 2.6.16 kernel by reading
+    /proc/PID/smaps and looking for:
+
+    b71a5000-b71ab000 rw-p 00062000 03:01 3131118
+      /usr/lib/libgnutls.so.12.3.6
+    Size:                24 kB
+    Rss:                 24 kB
+    Shared_Clean:         0 kB
+    Shared_Dirty:         0 kB
+    Private_Clean:        0 kB
+    Private_Dirty:       24 kB
+
+    This means another 24 kb used by each process that makes use of
+    libgnutls.
 
 (+) Means high priority 
 (*) Means medium priority