gluon-core: limit fq_codel memory to 1MB per AP with less than 48MB RAM (#1046)

This commit is contained in:
Christof Schulze 2017-02-24 19:43:32 +01:00 committed by Matthias Schiffer
parent 946d873c14
commit b7651ee96f
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/bin/sh
if [ "${ACTION}" = "add" ]; then
RAM=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
if [ "$RAM" -lt $((48*1024)) ]; then
echo "fq_memory_limit 1048576" > "/sys/kernel/debug/ieee80211/$DEVICENAME/aqm"
fi
fi