Skip to content
Contents
GuidesOpenWrt

Why does OpenWrt fq_codel show a 4 MiB or 32 MiB memory limit?

Read memory_limit, packet limits and backlog in tc, then compare the active queue with the default for your OpenWrt build.

One report shows a 32 MiB queue, but your router displays 4 MiB. Compare the kernel build, queue type and attachment point first. The number limits the memory a single fq_codel instance may use for queuing. It does not specify link speed or application buffer size.

Read the parameters on the device that carries the traffic

Run these read-only commands in an OpenWrt SSH session. Use a tc build with qdisc support, such as tc-full. Read device and l3_device from the WAN status to identify the data path. Replace eth0 with the relevant device. With SQM enabled, check the configured interface and its ingress shaping device separately.

ubus call system board
ubus call network.interface.wan status
tc -s -d qdisc show dev eth0

Read the queue type at the start of each line. Compare memory_limit only for fq_codel. If the root is mq, look for child queues under each parent. If you see only cake or noqueue, interpret that queue type separately. If the command fails, check the interface name and tc version first.

Why does the source contain two limits?

The OpenWrt 25.12.0 and 25.12.6 kernel patch selects the default using CONFIG_X86_64. That build uses 32 MiB and other builds use 4 MiB. The administrator can override it when creating the queue. Although tc may print 32Mb, the patch shifts 32 left by 20 bits and the value is in bytes. The p after limit counts packets; flows counts configured flow buckets. Neither measures the current backlog.

On the idle OpenWrt queue, memory_limit is 32Mb, backlog is 0b 0p, and no packets have been sent

This screenshot is from an idle virtual interface on a 25.12.6 x86/64 guest. Compare memory_limit with backlog to distinguish the ceiling from the current queue. A multiqueue device may have several child queues. Adding their limits does not measure allocated physical memory.

Take a reading before and after ordinary use on the same interface and handle. Record backlog, dropped and drop_overlimit when available, alongside latency and receiver loss. An idle snapshot cannot establish a throughput bottleneck. A rising dropped count alone does not identify the memory ceiling as the cause. Leave the live queue intact while checking. If you previously tuned it, restore it through the SQM or network configuration that manages the queue and read the settings again. Why hardware flow offload can bypass your OpenWrt SQM limits

Explore hardware

Comments