Active Topics

 



Notices


Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#1511
Originally Posted by misiak View Post
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
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#1512
Originally Posted by Estel View Post
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.
 

The Following User Says Thank You to misiak For This Useful Post:
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#1513
Originally Posted by Estel View Post
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.
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
Posts: 1,431 | Thanked: 2,630 times | Joined on Jan 2011 @ Touring
#1514
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?
 

The Following 2 Users Say Thank You to biketool For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1515
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
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-12-01 at 17:34.
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1516
Originally Posted by marmistrz View Post
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.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)

Last edited by MartinK; 2013-12-02 at 00:22.
 

The Following 8 Users Say Thank You to MartinK For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1517
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.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1518
Originally Posted by marmistrz View Post
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.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#1519
Originally Posted by marmistrz View Post
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
 

The Following User Says Thank You to misiak For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1520
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)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-12-03 at 19:38.
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post:
Reply

Tags
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps


 
Forum Jump


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