Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 02-04-2019, 14:52   #1
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
OpenCPN running out of CMA memory on Rpi

I am using OpenPlotter on a Rpi3B+ with all the latest updates.
Kernal Version 4.19.30-v7+
OpenCPN V5.0
OpenPlotter is an access point for all on-board WiFi devices.

OpenGL driver with Fake KMS (real kms caused some problems with resolution if started headless).
I have the memory split set to it's lowest value since it makes no difference to the OpenGL driver.

Everything is working very well EXCEPT I get the occasional hang of the display system.

The system can run for days and then one user input like changing scale or changing to/from north/course up sometimes causes the display to hang up.
In this case the cursor still works, everything else is still running but the display is mostly frozen.
If I connect with VNC from another machine a window pops up saying a user is connected.
I can also use PUTTY to connect and view the log.
In every case there is an error from the VC4 driver stating that it can not allocate memory from CMA.

Quote:
pi@openplotter:~ $ dmesg
[21965.710804] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[21965.710817] [drm] V3D: 176852kb BOs (345)
[21965.710821] [drm] V3D shader: 412kb BOs (100)
[21965.710824] [drm] dumb: 3088kb BOs (2)
[21965.710833] vc4_v3d 3fc00000.v3d: Failed to allocate memory for tile binning: -12. You may need to enable CMA or give it more memory.
pi@openplotter:~ $

It looks like OpenPlotter is configured with 256M of CMA memory.
I see this in the system log, but I don't know where it's configured.

I'd like to test this with a larger amount of CMA memory and see if it resolves the problem, but I am not sure how to configure that ?

There is a lot of conflicting information about this. Perhaps someone who knows can explain it to me.
Can I configure a dynamic memory split as described here:https://elinux.org/RPiconfig ?
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 05-04-2019, 06:31   #2
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 514
Re: OpenCPN running out of CMA memory on Rpi

Check here:
https://opencpn.org/wiki/dokuwiki/do...iguration_file
__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is offline   Reply With Quote
Old 05-04-2019, 07:28   #3
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN running out of CMA memory on Rpi

Quote:
Originally Posted by rooiedirk View Post
OK, I guess I can try to limit OpenCPN graphic memory usage, but I have unused RAM that I could allocate to the GPU/CMA; It seems that would be better.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 05-04-2019, 09:54   #4
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN running out of CMA memory on Rpi

Quote:
Originally Posted by rooiedirk View Post
That file needs better explanations:

MEMCacheLimit overrides NCacheLimit
NCacheLimit only vaild if MEMCacheLimit not defined.
But this is system memory.

GPUMemorySize ????
Is this used at all ?
I could not find it in the code, but perhaps my search was wrong.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN - OpenPlotter - KPlex - RPi - CPU Maxed Out Dsanduril OpenCPN 8 26-09-2018 10:44
Anyone Use CMA as Bilge Antifreeze ? allanpeda Construction, Maintenance & Refit 16 21-01-2018 12:05
OpenCPN problem on RPi with Raspbian 9.1 janth OpenCPN 16 15-10-2017 08:30
World Chart missing/opencpn/rPi dugsmith98 OpenCPN 1 01-03-2017 17:05
Rpi OpenCPN System - recommendations geoffr OpenCPN 17 01-02-2017 10:45

Advertise Here


All times are GMT -7. The time now is 19:15.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.