Re: [Sugar-devel] poor man's mmap "sliding window" on Python 2.5.x

2009-07-07 Thread Martin Langhoff
On Tue, Jul 7, 2009 at 9:23 AM, Martin
Langhoff wrote:
> Thanks for looking into this. I'll post the (trivial, really) repro
> code I have later (I'm on a gruelling >35hr trip at the moment).

Had some time to retest this on the plane, and I think it was
mis-diagnosis. The original code I was testing is lost. In re-testing
this I find that the problem is more nuanced, and I may have been
wrong: looking at 'top', the kernel does not appear very eager to
discard old mapped pages.

The process is doing a linear read through the file, and is slow
enough that it appears only to grow. But if I run another process that
allocates a lot of memory, then the kernel does discard pages pages.

A good way of monitoring this seems to be:

   watch --differences grep -A8  /proc//smaps

So the mmap does the right thing. ACCESS_READ doesn't seem to make any
difference.

#!/usr/bin/python

import mmap
import sys

def mmap_to_death(fpath):
fh = open(fpath, 'r+')
mm = mmap.mmap(fh.fileno(), 0, access=mmap.ACCESS_READ)

l = len(mm)
c = 0
buf = ''

while c < l:
buf = mm[c]
c = c+1

mm.close()
fh.close()

mmap_to_death(sys.argv[1])



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Boomingbang project- err BAD ZIP FILE

2009-07-07 Thread Abhishek Indoria
Hi, preciously, when i try to install the x windows system 'x-1.xo'
the message appears in the terminal after several lines after names of
some python files, -bad zip file. . . Zipfile.badzipfile. . .blah blah
blah. I am running default version of sugar which came pre-installed
on my xo. I think it is 8.2.0. Thanks in advance:) cheers.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Touch-screen OMAP3-based netbook as XO-2 prototype?

2009-07-07 Thread John Gilmore
The new "Touch Book" by "Always Innovating" looks interesting as a
possible prototype for the XO-2.  It looks vaguely like an ordinary
netbook, but the electronics are behind the screen as in the XO-1, as
is one of the batteries.  So the keyboard half can detach from the
screen/electronics package.  The two are connected via USB (and the
keyboard provides a second battery, doubling life to 10 hrs).  $299 in
quantity one ($399 with keyboard).  Fanless, uses TI OMAP3, internal
SDHC card for storage, internal USB slots for connectivity.  Open
source oriented company, running Linux, XFCE, etc (Ångström Distro,
which started from OpenEmbedded).  They are willing to license the
hardware design, or even give it away to open-source-oriented
projects.  Motherboard is tiny; photo below.

  http://www.alwaysinnovating.com/home/
  http://www.alwaysinnovating.com/company/design.htm
  http://www.magniel.com/omaplaptop.html

What it doesn't have that the XO-2 wants:

  *  Multi-touch or all-fingers touch-screen-keyboard.
  *  Mary Lou's screens.
  *  Camera
  *  Two screens (however I bet you could attach two of them to each
 other with a little bit of USB host/host connection glue).

FYI.

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


OLPC Volunteer Infrastructure Group Meeting: [Today]

2009-07-07 Thread Stefan Unterhauser
The Volunteer Infrastructure Group (/gang) Meeting is today (July 7th)
at 4pm (EST)

The Volunteer Infrastructure Group is a team of Volunteer Sysadmins
who help maintain services and systems around OLPC and the
OLPC/SugarLabs community.  The weekly VIG meeting is an excellent
chance to get involved, or to be aware of upcoming projects.

http://wiki.laptop.org/go/OLPC:Volunteer_Infrastructure_Group
http://vig.laptop.org/
http://meeting.laptop.org/olpc-admin/
http://idea.laptop.org/ideatorrent/ideatorrent/vig/
http://embed.mibbit.com/?server=irc.oftc.net&channel=%23olpc-admin&noServerTab=false&noServerNotices=true&noServerMotd=true&nick=Guest

Agenda:
* meeting: new face for olpc-admin
* idea: promote picture
* vig and wiki (testwiki): update
* bigsister: new VM
other: rt maps treehouse asterisk backup vellum one/groups

 Meeting Details:
 Date:   June 9th, 2009
 Time:   16:00 EST
 Location: irc.oftc.net  #olpc-admin
 or click on ->
http://embed.mibbit.com/?server=irc.oftc.net&channel=%23olpc-admin&noServerTab=false&noServerNotices=true&noServerMotd=true&nick=Guest

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


Re: Boomingbang project- err BAD ZIP FILE

2009-07-07 Thread Walter Bender
You should generally be installing .xo bundles with the Browse activity. It
will load them into your Journal. You can launch them from there. Can you
confirm that that is working before we try to debug further.

On Tue, Jul 7, 2009 at 8:31 AM, Abhishek Indoria  wrote:

> Hi, preciously, when i try to install the x windows system 'x-1.xo'
> the message appears in the terminal after several lines after names of
> some python files, -bad zip file. . . Zipfile.badzipfile. . .blah blah
> blah. I am running default version of sugar which came pre-installed
> on my xo. I think it is 8.2.0. Thanks in advance:) cheers.
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: IP addressing + XO MPP connectivity

2009-07-07 Thread Daniel Drake
Hi John,

On Tue, 2009-07-07 at 02:03 -0400, John Watlington wrote:
>If you are getting a self-assigned IP address, it is
> because the laptop is not discovering the MPP.
> This is probably due to a short cut in the MPP
> discovery process.

The NM-0.6 code *definitely* ignores the IP address assigned from the
MPP DHCP server.

some snippets

case MESH_S3_XO_MPP:
/* Kill dhclient; we don't need it anymore after MPP discovery here
 * because we're ignoring the returned lease.
 */
  nm_dhcp_manager_cancel_transaction (dhcp_manager,
 nm_device_get_iface (NM_DEVICE (self)));

...

if (self->priv->step == MESH_S3_XO_MPP) {
/* Step 3 (XO_MPP) ignores the IP address provided in the DHCP 
response,
 * so we still have to do autoip.
 */
if (!aipd_exec (self)) {
nm_warning ("Activation (%s/mesh): couldn't start 
avahi-autoipd.",

> The XS server software should set up any mesh interfaces
> to accept the anycast MAC address, but this might have
> been lost in more recent builds. 

The XS connectivity scenario is a totally different case, where the DHCP
lease is indeed received and applied. The code differentiates between
"school mesh" and "mesh portal" (and the anycast addresses are
different).

However I think you have indirectly explained why the MPP lease is
ignored... you are accounting for the case where there are multiple MPPs
all on 1 channel, therefore two MPPs could give the same IP address to 2
different XOs. autoipd presumably has some magic to avoid IP conflicts.

And this is a pain to implement so it will probably not happen this time
around... but I should be able to keep the school mesh case.

Daniel


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


Re: Boomingbang project- err BAD ZIP FILE

2009-07-07 Thread Walter Bender
On Mon, Jul 6, 2009 at 11:45 PM, Abhishek Indoria <
hackerboymaya...@gmail.com> wrote:

> From: Abhishek Indoria
> Date: Mon, 6 Jul 2009 18:24:36 +0500
> Subject:  err BAD ZIP FILE in .xo files
> To: contribut...@laptop.org
>
> Hi,sorry for formatting, sent from cell.  Now, when i try to
> install any .xo file after
> i've installed the key, a message appears in terminal,- file is not a
> zip file, zipfile.badzipfile : file is not a ..  So how can i install
> activities? Also, kindly tell of a way to boot XO via some other os
> with usb. Cheers:)
>
> --
> Abhishek Indoria
> Head
> Phoenix Team


A bit more context please. How are you installing which .xo bundles onto
what version of Sugar?

-walter

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] IP addressing + XO MPP connectivity

2009-07-07 Thread Martin Langhoff
On Tue, Jul 7, 2009 at 8:03 AM, John Watlington wrote:
> The XS server software should set up any mesh interfaces
> to accept the anycast MAC address, but this might have
> been lost in more recent builds.

Interesting. When was this last seen to work? I can do some quick
archeology and resuscitate needed bits..

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel