Re: Low memory hacks



On Fri, 2008-02-29 at 01:01 +0300, Nickolay V. Shmyrev wrote:
> В Чтв, 28/02/2008 в 14:12 -0500, Behdad Esfahbod пишет:
> > On Thu, 2008-02-28 at 21:59 +0300, Nickolay V. Shmyrev wrote:
> > > Hello all
> > > 
> > > Nowadays it's rather hard to work with GNOME swapping on my 256 Mb
> > > laptop even if I don't run anything serious on it, just Evolution,
> > > Pidgin and Epiphany and sometimes Evince. Recently I decided to look on
> > > this problem a bit and the nice thing I discovered is an Evolution
> > > hack. 
> > > 
> > > It seems that if you don't use calendar you can just remove bonobo
> > > server files for GNOME_Evolution_Calendar_2.10.server and you'll get
> > > much faster Evolution and a lot of free memory.
> > > 
> > > I added this and some more hacks I'm using to the page:
> > > 
> > > http://live.gnome.org/MemoryReduction/LowMemoryHacks
> > > 
> > > Please if you know any other thing that can reduce memory usage with a
> > > little reduction of functionality share it with us.
> > 
> > Nice and all, but please make sure each issue is also reported in
> > bugzilla, so it's eventually fixed correctly.
> 
> Well, there is not much to report here, let's take for example one
> library, pango of course :) Massif shows the following significant
> thing:
> 
> Context accounted for  3.4% of measured spacetime 
>   0x1BC1E8: __gconv_open (in /lib/libc-2.6.so)
>   0x1C8A0D: _nl_find_msg (in /lib/libc-2.6.so)
>   0x1C923A: __dcigettext (in /lib/libc-2.6.so)
>   0x1C81E2: dcgettext (in /lib/libc-2.6.so)
>   0x213588: strerror_r (in /lib/libc-2.6.so)
>   0x2133E4: strerror (in /lib/libc-2.6.so)
>   0x793121: g_strerror (in /lib/libglib-2.0.so.0.1504.0)
>   0x76FCC0: g_key_file_load_from_file (in /lib/libglib-2.0.so.0.1504.0)
>   0x99048F: (within /usr/lib/libpango-1.0.so.0.1600.1)
>                        
> Called from:                                                                    
>    3.4% : 0x990779: pango_config_key_get (in /usr/lib/libpango-1.0.so.0.1600.1)
> 
> I never used pangorc and not going to. So I think I should just disable
> that search for config file that costs two two disk accesses. But there
> is nothing to fix in the library itself, I suppose there is no good
> solution for this search.

This is not an example of memory reduction.  That check doesn't consume
any memory.  Your original mail talked about major memory reductions.

For example, you've written on the wiki "Delete unused icon themes like
crystal from KDE and so on. They actually take a lot of memory and they
are scanned on start".  I fairly sure that you are wrong on that one,
but if you are right, then there's something to fix there.


> Heh, I also would like to delete all .po files if only I knew how to
> keep translations :)

Cheers,
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]