maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] modRana: a flexible GPS navigation system (https://talk.maemo.org/showthread.php?t=58861)

Estel 2013-11-27 12:31

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by misiak (Post 1389169)
edit: I trust the ereswap used swap measurement method is correct, I haven't analysed the code (just pointing that out, as it could also have influence on the result and its credibility).

I belive it to be correct, and I agree that it isn't enough swap activity to be bottleneck. *But*, actual memory activity of sole ModRana might be even lower - remember, that how swap is used, is determined by swap-related settings.

I mean, that after initial reswap'ping before staerting ModRana, you had "fresh" allocation between memory and swap.

Now, depending on how aggressive swaping-out routines are on your setup, device would start to move-out some things to swap with passing time, even if you wouldn't be doing anything on device - more or less quickly.

Now, again, dependng on your settings, increased memory "consumption" by using ModRana could "convince" swaping routines, that more things need to be stockpiled in swap at faster pate, freeing memory - even if actual memory consumption is much lower.

In any case, ModRana itself hardly have any control over it.

/Estel

misiak 2013-11-27 14:24

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Estel (Post 1389291)
I belive it to be correct, and I agree that it isn't enough swap activity to be bottleneck. *But*, actual memory activity of sole ModRana might be even lower - remember, that how swap is used, is determined by swap-related settings.

I mean, that after initial reswap'ping before staerting ModRana, you had "fresh" allocation between memory and swap.

Now, depending on how aggressive swaping-out routines are on your setup, device would start to move-out some things to swap with passing time, even if you wouldn't be doing anything on device - more or less quickly.

Now, again, dependng on your settings, increased memory "consumption" by using ModRana could "convince" swaping routines, that more things need to be stockpiled in swap at faster pate, freeing memory - even if actual memory consumption is much lower.

In any case, ModRana itself hardly have any control over it.

/Estel

Stock configration for this test (e.g. /proc/sys/vm/swappiness set to unfortunate "100"), I'll add that to my previous post.

pichlo 2013-11-27 14:37

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Estel (Post 1389291)
In any case, ModRana itself hardly have any control over it.

Reuse memory rather than allocate-free constantly?

I imagine this might be difficult to achieve in a Python application.

biketool 2013-11-27 18:42

Re: [Announce] modRana: a flexible GPS navigation system
 
For those crashing phones on big tile downloads I have flopswap installed just so I have my swap on a different partition than wherever I am saving or transferring a large file. There are also swap settings that eliminate the swap pileup but flopswap is far better.
BTW repeatedly crashing your phone like this with CSSU installed is a fast way to reflash land.

Another topic, early in this thread there was talk of adding location sharing between devices so my map pin can find or track another map pin in town as long as we are both logged in to a map server like was possible on older modRana with the position sharing server from TangoGPS. What happened to that feature?

marmistrz 2013-12-01 17:26

Re: [Announce] modRana: a flexible GPS navigation system
 
MartinK: In reply to http://talk.maemo.org/showpost.php?p...&postcount=449

If this motivates you, I can help porting python-mapnik2 to Fremantle :)

MartinK 2013-12-02 00:19

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by marmistrz (Post 1391427)
MartinK: In reply to http://talk.maemo.org/showpost.php?p...&postcount=449

If this motivates you, I can help porting python-mapnik2 to Fremantle :)

Looking at the Mapnik Python docs it indeed looks nice! :)
So I'm all for it - if you can port it (and its dependencies), I'm sure I can make it show something usable in modRana. :)

Some possible concerns:
  • dependencies - Mapnik seems to have quite a lot of dependencies (no problem if you can manage to package & build them all :) )
  • scaling - the example in the docs is just rendering country borders, for normal usage in modRana a much higher level of detail is needed & for a much larger area
    • getting data - could be from Geofabrik or from other extract site
    • data access - IIRC Mapnik is using postgis (PostgreSQL with some geographic extensions, making it possible to query distinct regions easily) for data storage & access, so that might be another dependency that might be needed (or maybe Mapnik supports some other format more suitable for mobile use ?)
    • rendering speed - Mapnik servers are usually pretty beefy machines, but I would say with a simple enough style (like for example routes & route names only) we should hopefully get some usable rendering speed

Question backlog
As I'm as busy as always, while I follow the modRana thread I'm not always able to answer all questions right away - I'll try to do something about it in the next few days. :)

marmistrz 2013-12-02 18:23

Re: [Announce] modRana: a flexible GPS navigation system
 
I gave it a try

http://marmistrz.net63.net/public/ma...0.0+ds1.tar.gz

Simply untar it.

Install debhelper7, python2.7 and scons, ignore other dependencies.

Fails on some python stuff. You might experiment with stock python2.5. I removed --with python2, as it's non-existent, uses --with python-central instead.

marmistrz 2013-12-03 15:40

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by marmistrz (Post 1391829)
I gave it a try

http://marmistrz.net63.net/public/ma...0.0+ds1.tar.gz

Simply untar it.

Install debhelper7, python2.7 and scons, ignore other dependencies.

Fails on some python stuff. You might experiment with stock python2.5. I removed --with python2, as it's non-existent, uses --with python-central instead.

Got the build process working. Simply disabled SBOX_REDIRECT_FROM_DIRS - is utterly slow, but at least works. Any suggestions for a less dirty workaround?

Now libproj is missing, building it right now.

misiak 2013-12-03 16:34

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by marmistrz (Post 1392166)
Got the build process working. Simply disabled SBOX_REDIRECT_FROM_DIRS - is utterly slow, but at least works. Any suggestions for a less dirty workaround?

Now libproj is missing, building it right now.

If you'll face some problems with proj4 or gdal packages, post here, I'll try to help. I've spent countless days (>2 weeks) at work few months ago to get together, compile and use a few geo libraries to write quite complex geographical converter (and reading/writing/manipulating data with gdal can be a pain in the lower part of my back at times).

Edit: also, I don't know if anything changed during this time, but gdal could easily eat up hundreds of megabytes of RAM if used without caution, so if there are any python gdal bindings, be careful ;)

marmistrz 2013-12-03 16:50

Re: [Announce] modRana: a flexible GPS navigation system
 
libproj built (now some minor tweaking). Waiting 'til the builder updates my ssh pubkey and I'll push it to devel

/edit: I can't do it even through the autobuilder. stuck (tried with user agent tool)


All times are GMT. The time now is 08:23.

vBulletin® Version 3.8.8