Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions overlay/etc/sysctl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ net.core.somaxconn = 128

# Prevent orphaned TCP sockets in FIN_WAIT2 from accumulating indefinitely
net.ipv4.tcp_fin_timeout = 15

# Keep SD card writeback asynchronous but bounded: flusher kicks in at 512K
# dirty, writers are throttled at 4M. Without this, sync mounts serialize
# every write and card internal GC stalls propagate straight into the
# recorder/streamer path (dropped frames).
vm.dirty_background_bytes = 524288
vm.dirty_bytes = 4194304
3 changes: 2 additions & 1 deletion package/thingino-system/files/automount
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ do_mount() {
return 1
fi

if mount -t auto -o noatime,sync "$device_node" "$mount_point"; then
if mount -t auto -o noatime "$device_node" "$mount_point"; then
echo -c 240 -e "- Mounted $device_node to $mount_point"
else
echo -c 142 -e "Failed to mount $device_node to $mount_point" >&2
Expand All @@ -93,6 +93,7 @@ do_umount() {
if grep -qs "^$device_node " /proc/mounts; then
if umount -l "$mount_point"; then
echo -c 240 -e "- Unmounted $mount_point"
sync
else
echo -c 142 -e "Failed to unmount $mount_point" >&2
fi
Expand Down