Skip to content

Commit

Permalink
layers/meta-opentrons: address robot app g2d crashes (#135)
Browse files Browse the repository at this point in the history
* layers/meta-opentrons: weston increases cma size

This may help with occasional CMA OOMs (see
https://opentrons.atlassian.net/browse/RQA-2353)

* layers/meta-opentrons: restart app on failure

Because otherwise it's ugly.

Closes RQA-2353
  • Loading branch information
sfoster1 authored Feb 14, 2024
1 parent dd397d0 commit 7ff4dac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# increase the amount of contiguous memory area for buffer allocations
[Service]
ExecStartPre=/bin/echo '671088640' > /sys/module/galcore/parameters/contiguousSize
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += " file://manage-users.conf"
SRC_URI += " file://manage-users.conf file://increase-cma.conf"

do_install:append() {
install -D -p -m0644 ${WORKDIR}/manage-users.conf ${D}${systemd_system_unitdir}/weston.service.d/manage-users.conf
install -D -p -m0644 ${WORKDIR}/increase-cma.conf ${D}${systemd_system_unitdir}/weston.service.d/increase-cma.conf
}

FILES:${PN} += " ${systemd_system_unitdir}/weston.service.d ${systemd_system_unitdir}/weston.service.d/manage-users.conf"
FILES:${PN} += " \
${systemd_system_unitdir}/weston.service.d ${systemd_system_unitdir}/weston.service.d/manage-users.conf \
${systemd_system_unitdir}/weston.service.d ${systemd_system_unitdir}/weston.service.d/increase-cma.conf \
"
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ExecStopPost=/bin/systemctl start opentrons-loading.service
TimeoutStartSec=30
ExitType=cgroup
NotifyAccess=all
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit 7ff4dac

Please sign in to comment.