Stability and Memory Pressure in 8.2

Marco Pesenti Gritti mpgritti at gmail.com
Wed Sep 10 03:19:09 EDT 2008


On Wed, Sep 10, 2008 at 5:42 AM, Gary C Martin <gary at garycmartin.com> wrote:
> Not sure if this is any help or just muddying the waters, but I noticed when
> using pmap on the sugarshell process between 711 and 759 that there is an
> [anon] block that has increased by 5Mb since 711.
>
> 711
> [olpc at xo-05-24-02 ~]$ pmap 1676
> 1676:   python /usr/bin/sugar-shell
> --- snip ---
> 0804a000  13888K rw---    [ anon ]
> --- snip ---
>  total    54988K
>
> 759
> [olpc at xo-05-24-02 ~]$ pmap 1316
> 1316:   python /usr/bin/sugar-shell
> --- snip ---
> 09865000  18996K rw---    [ anon ]
> --- snip ---
>  total    62188K
>
> On cursory glance through the other lib's shown by pmap linked in, I don't
> see any obvious monster deltas in 759 vs 711. Sure, most of the libs seem to
> have grown a little in size, but the single, unfortunately opaque, [anon]
> block seems to hold the majority of whatever the mem delta between 711 and
> 759 is (as reported by pmap).

Can you try to apply the following patch and see if affects the anon block?

diff --git a/src/sugar/graphics/style.py b/src/sugar/graphics/style.py
index 1b510d1..90d8565 100644
--- a/src/sugar/graphics/style.py
+++ b/src/sugar/graphics/style.py
@@ -124,8 +124,8 @@ XLARGE_ICON_SIZE = zoom(55 * 2.75)
 FONT_SIZE = zoom(7 * _XO_DPI / _get_screen_dpi())
 FONT_NORMAL = Font('Bitstream Vera Sans %d' % FONT_SIZE)
 FONT_BOLD = Font('Bitstream Vera Sans bold %d' % FONT_SIZE)
-FONT_NORMAL_H = _compute_font_height(FONT_NORMAL)
-FONT_BOLD_H = _compute_font_height(FONT_BOLD)
+FONT_NORMAL_H = 10 #_compute_font_height(FONT_NORMAL)
+FONT_BOLD_H = 10 #_compute_font_height(FONT_BOLD)

 TOOLBOX_SEPARATOR_HEIGHT = zoom(9)
 TOOLBOX_HORIZONTAL_PADDING = zoom(75)

> The pmap man page describes the [anon] blocks as: Anonymous memory is
> reported for the process heap, stack, for 'copy on write' pages with
> mappings mapped with MAP_PRIVATE. Memory not relating to any named  object
> or file within the file system is reported as [ anon ]. The pmap command
> displays common names for cer-                  tain known anonymous memory
> mappings, such as: [ heap ] The process heap. [ stack ] The process stack.
> If the common name for the mapping is unknown, pmap displays [ anon ] as the
> mapping name.
>
> BTW: pmap listed fonts for the 759 sugarshell process as:
> b58f6000    244K r----  /usr/share/fonts/dejavu/DejaVuLGCSansMono-Bold.ttf
> b5933000     60K r----  /usr/share/fonts/kacst/KacstArt.ttf
> b5942000    436K r----  /usr/share/fonts/dejavu/DejaVuLGCSans-Bold.ttf
> b59af000    264K r----  /usr/share/fonts/dejavu/DejaVuLGCSansMono.ttf
> b59f1000    620K r----  /usr/share/fonts/paktype/PakTypeNaqsh.ttf
> b5a94000    468K r----  /usr/share/fonts/dejavu/DejaVuLGCSans.ttf
>
> For 711 they were:
> b5de0000    408K r----  /usr/share/fonts/dejavu-lgc/DejaVuLGCSans-Bold.ttf
> b5e46000    248K r----  /usr/share/fonts/dejavu-lgc/DejaVuLGCSansMono.ttf
> b5e84000     92K r----  /usr/share/fonts/arabic/KacstQura.ttf
> b5ea4000    428K r----  /usr/share/fonts/dejavu-lgc/DejaVuLGCSans.ttf

Very interesting.

> Sorry for the noise.

Send more of this noise please!!! :)

Marco



More information about the Devel mailing list