Re: Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-24 Thread Polychronis Ypodimatopoulos
I did the following as a basic test for memory usage of various python 
modules. I did the test on my computer, a 32-bit Centrino laptop running 
ubuntu.

Let's start with the following code:
   
import gobject
mainloop = gobject.MainLoop()
mainloop.run()

Cost: 1.2MB of memory (1.2MB total)


Add a dummy class, like the following:
   
import dbus
import dbus.service
class Dummy(dbus.service.Object):
   pass

Additional cost: 0.9MB of memory (2.1MB total)


Importing some more modules, like the following:

import time, sys, os, traceback
from select import select  
from socket import *
from random import random
from struct import pack, unpack
from optparse import OptionParser
from os.path import basename

Additional cost: 1.0MB of memory (3.1MB total)


Running the same thing as above as root:
Additional cost: 2.8MB of memory (5.9MB total)  (WHY?!?!?)


Nothing specific to cerebro up to this point.


Running Cerebro fully-blown as root:
Additional cost: 1.3MB of memory (7.2MB total)


It doesn't seem to me that there's much I can do, except for writing 
some parts of Cerebro in C.

Pol

-- 
Polychronis Ypodimatopoulos
Graduate student
Viral Communications
MIT Media Lab
Tel: +1 (617) 459-6058
http://www.mit.edu/~ypod/

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-24 Thread david
On Sun, 24 Aug 2008, Polychronis Ypodimatopoulos wrote:

 I did the following as a basic test for memory usage of various python
 modules. I did the test on my computer, a 32-bit Centrino laptop running
 ubuntu.

 Let's start with the following code:

import gobject
mainloop = gobject.MainLoop()
mainloop.run()

 Cost: 1.2MB of memory (1.2MB total)


 Add a dummy class, like the following:

import dbus
import dbus.service
class Dummy(dbus.service.Object):
   pass

 Additional cost: 0.9MB of memory (2.1MB total)


 Importing some more modules, like the following:

import time, sys, os, traceback
from select import select
from socket import *
from random import random
from struct import pack, unpack
from optparse import OptionParser
from os.path import basename

 Additional cost: 1.0MB of memory (3.1MB total)


 Running the same thing as above as root:
 Additional cost: 2.8MB of memory (5.9MB total)  (WHY?!?!?)

I wouldn't be surprised to leard that one of the modules included a bunch 
of extra functionality if you are root.

for example dbus may find a bunch more things that you can do if you are 
root.

it would probably be worthwhile narrowing down which module(s) increase 
their size if you are root.

David Lang


 Nothing specific to cerebro up to this point.


 Running Cerebro fully-blown as root:
 Additional cost: 1.3MB of memory (7.2MB total)


 It doesn't seem to me that there's much I can do, except for writing
 some parts of Cerebro in C.

 Pol


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-23 Thread Marco Pesenti Gritti
On Fri, Aug 22, 2008 at 1:47 PM, James Cameron [EMAIL PROTECTED] wrote:
 I also tried using ps_mem.py to compare memory used by processes, but
 the method that ps_mem.py uses has changed as a result of kernel change.

 http://dev.laptop.org/~quozl/2008-08-22-ps-mem/ has the samples that I
 took, showing how they are difficult to compare.

Cerebro is running there for some reason (I've seen it in another bug
report already). I can't reproduce on a clean 2328 joyride, not sure
if it has been fixed or something weird is going on.

Marco
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-23 Thread C. Scott Ananian
On Sat, Aug 23, 2008 at 5:16 AM, Marco Pesenti Gritti
[EMAIL PROTECTED] wrote:
 Cerebro is running there for some reason (I've seen it in another bug
 report already). I can't reproduce on a clean 2328 joyride, not sure
 if it has been fixed or something weird is going on.

Cerebro is enabled in joyride builds, started from /etc/init.d; it
should be disabled in 8.2 builds at the moment.  How much memory usage
is cerebro responsible for?
 --scott

-- 
 ( http://cscott.net/ )
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-23 Thread Marco Pesenti Gritti
On Sat, Aug 23, 2008 at 3:09 PM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 On Sat, Aug 23, 2008 at 5:16 AM, Marco Pesenti Gritti
 [EMAIL PROTECTED] wrote:
 Cerebro is running there for some reason (I've seen it in another bug
 report already). I can't reproduce on a clean 2328 joyride, not sure
 if it has been fixed or something weird is going on.

 Cerebro is enabled in joyride builds, started from /etc/init.d; it
 should be disabled in 8.2 builds at the moment.  How much memory usage
 is cerebro responsible for?

6.5 Mib according to ps_mem

You are right, it's enabled in joyride... it's failing for me because
it can't find msh0 (not sure why).

Marco
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-23 Thread Ton van Overbeek
On Sat, Aug 23, 2008 at 1:25 PM, Marco Pesenti Gritti
[EMAIL PROTECTED] wrote:
 On Sat, Aug 23, 2008 at 3:09 PM, C. Scott Ananian [EMAIL PROTECTED] wrote:
 On Sat, Aug 23, 2008 at 5:16 AM, Marco Pesenti Gritti
 [EMAIL PROTECTED] wrote:
 Cerebro is running there for some reason (I've seen it in another bug
 report already). I can't reproduce on a clean 2328 joyride, not sure
 if it has been fixed or something weird is going on.

 Cerebro is enabled in joyride builds, started from /etc/init.d; it
 should be disabled in 8.2 builds at the moment.  How much memory usage
 is cerebro responsible for?

 6.5 Mib according to ps_mem

 You are right, it's enabled in joyride... it's failing for me because
 it can't find msh0 (not sure why).

 Marco
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel


Same for me. Joyride 2325 has cerebro enabled, but it aborts because
device msh0 cannot be found. This also hangs up the shutdown when
trying to kill cerebro. So somehow cerebro is enabled in 2325. Also
idle suspend is enabled again in 2325, while it should be off.
The msh0 disappearing might have something to do with the new libertas firmware.
I also have much more problems with wireless connections. Will do some
more testing.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-23 Thread pgf
ton van overbeek wrote:
  Also idle suspend is enabled again in 2325, while it should be off.

i think this was intentional.  now that we're building separate
release (Subject: New release8.2 build 7nn) and joyride streams, idle
suspend was re-enabled in joyride in order to help continue
flushing out suspend-related bugs.

paul
=-
 paul fox, [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cerebro (was Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708))

2008-08-23 Thread Polychronis Ypodimatopoulos
Marco Pesenti Gritti wrote:
 6.5 Mib according to ps_mem

 You are right, it's enabled in joyride... it's failing for me because
 it can't find msh0 (not sure why).

 Marco
   

I filed #8128 to address the memory usage that seems excessive.

I have also disabled cerebro from start-up while this is being 
investigated and the issue with blocking shutdown process (#8108). 
Should be picked up at the next version of joyride.

p.


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel