Package: beagle
Version: 0.3.9-3
Severity: normal
File: /usr/bin/beagled

Beagled eats memory because it has too many threads by default.

On my system, a uniprocessor P4 with 2Gb of memory, I see 11
(count 'em 11!) beagled threads.
Silliness!   Each thread has 74Mb of unshared memory, so the
total is about 800Mb.

This may hurt overall system performance, and may even
hurt beagled's performance.   It's possible to get in
situations where extra swapping happens because of all the
copies of beagled.

It's hard to imagine that:
(a) My system can really make use of 11 threads, and
(b) I really *want* 11 beagled threads banging away at
once.

Personally, if my system is busy, I'm perfectly happy for
beagled to get a little behind.    The work I'm doing is
important.   But, the results of beagled are only occasionally
important.   So, beagled should never be in a position of
dominating the system.   So, why so many threads?


Overall, it seems that there should be fewer threads
on smaller systems and more threads on bigger systems.
I'd suggest the following algorithm for choosing the
number of threads:

min(1+(total_memory/140Mb), 1+number_of_cpus)

This will guarantee that beagled will occupy no more
than half of RAM (more or less), and will scale
the number of threads with the number of CPUs.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages beagle depends on:
ii  adduser                3.110             add and remove users and groups
ii  bash                   3.2-6             The GNU Bourne Again SHell
ii  dbus                   1.2.16-2          simple interprocess messaging syst
ii  libatk1.0-0            1.26.0-1          The ATK accessibility toolkit
ii  libavahi1.0-cil        0.6.19-4          CLI bindings for Avahi
ii  libc6                  2.9-23            GNU C Library: Shared libraries
ii  libcairo2              1.8.8-2           The Cairo 2D vector graphics libra
ii  libchm1                2:0.40-1          library for dealing with Microsoft
ii  libexif12              0.6.17-1          library to parse EXIF files
ii  libexpat1              2.0.1-4           XML parsing C library - runtime li
ii  libfontconfig1         2.6.0-4           generic font configuration library
ii  libfreetype6           2.3.9-5           FreeType 2 font engine, shared lib
ii  libgconf2.0-cil        2.24.1-4          CLI binding for GConf 2.24
ii  libglade2.0-cil        2.12.9-1          CLI binding for the Glade librarie
ii  libglib2.0-0           2.20.4-1          The GLib library of C routines
ii  libglib2.0-cil         2.12.9-1          CLI binding for the GLib utility l
ii  libgmime2.2a-cil       2.2.22-4          CLI binding for the MIME library
ii  libgnome-desktop-2-11  2.26.1-1          Utility library for loading .deskt
ii  libgnome-vfs2.0-cil    2.24.1-4          CLI binding for GnomeVFS 2.24
ii  libgnome2.24-cil       2.24.1-4          CLI binding for GNOME 2.24
ii  libgsf-1-114           1.14.15-1         Structured File Library - runtime 
ii  libgsf0.0-cil          0.8-2             CLI bindings for libgsf
ii  libgtk2.0-0            2.16.5-1          The GTK+ graphical user interface 
ii  libgtk2.0-cil          2.12.9-1          CLI binding for the GTK+ toolkit 2
ii  libice6                2:1.0.5-1         X11 Inter-Client Exchange library
ii  libjpeg62              6b-15             The Independent JPEG Group's JPEG 
ii  libmono-cairo2.0-cil   2.4.2.3+dfsg-1    Mono Cairo library (for CLI 2.0)
ii  libmono-corlib2.0-cil  2.4.2.3+dfsg-1    Mono core library (for CLI 2.0)
ii  libmono-posix2.0-cil   2.4.2.3+dfsg-1    Mono.Posix library (for CLI 2.0)
ii  libmono-security2.0-ci 2.4.2.3+dfsg-1    Mono Security library (for CLI 2.0
ii  libmono-sharpzip2.84-c 2.4.2.3+dfsg-1    Mono SharpZipLib library (for CLI 
ii  libmono-sqlite2.0-cil  2.4.2.3+dfsg-1    Mono Sqlite library (for CLI 2.0)
ii  libmono-system-data2.0 2.4.2.3+dfsg-1    Mono System.Data Library (for CLI 
ii  libmono-system-web2.0- 2.4.2.3+dfsg-1    Mono System.Web Library (for CLI 2
ii  libmono-system2.0-cil  2.4.2.3+dfsg-1    Mono System libraries (for CLI 2.0
ii  libmono0               2.4.2.3+dfsg-1    Mono JIT library
ii  libndesk-dbus-glib1.0- 0.4.1-2           CLI implementation of D-Bus (GLib 
ii  libndesk-dbus1.0-cil   0.6.0-2           CLI implementation of D-Bus
ii  libpango1.0-0          1.24.5-1          Layout and rendering of internatio
ii  libpng12-0             1.2.38-1          PNG library - runtime
ii  librsvg2-2             2.26.0-1          SAX-based renderer library for SVG
ii  libsm6                 2:1.1.0-2         X11 Session Management library
ii  libsqlite3-0           3.6.17-2          SQLite 3 shared library
ii  libtaglib2.0-cil       2.0.3.2+dfsg-3    CLI library for accessing audio an
ii  libwmf0.2-7            0.2.8.4-6.1       Windows metafile conversion librar
ii  libwv-1.2-3            1.2.4-2           Library for accessing Microsoft Wo
ii  libx11-6               2:1.2.2-1         X11 client-side library
ii  libxml2                2.7.3.dfsg-2.1    GNOME XML library
ii  libxss1                1:1.1.3-1         X11 Screen Saver extension library
ii  mono-runtime           2.4.2.3+dfsg-1    Mono runtime
ii  xdg-utils              1.0.2-6.1         desktop integration utilities from
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages beagle recommends:
pn  mono-gmcs                   <none>       (no description available)
ii  poppler-utils               0.10.6-1     PDF utilitites (based on libpopple
ii  util-linux [schedutils]     2.15.1~rc1-1 Miscellaneous system utilities

Versions of packages beagle suggests:
pn  beagle-backend-evolution      <none>     (no description available)
ii  gnumeric                      1.9.9-1    spreadsheet application for GNOME 
pn  icedove-beagle                <none>     (no description available)
pn  iceweasel-beagle              <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to