-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update "4MB" target to "tiny", including 8/32 devices #666
Conversation
Could you please provide some information about the affected software (daemons). |
It's mostly the kernel OOM killer causing LuCI / lua, olsrd, hostapd to "die". |
I think the title of the PR and it's description don't really describe the changes. The router target names have been updated to mirror the changes made upstream. All "4MB" targets are now "tiny" targets. Targets with only 32MB ram are also now "tiny" targets. |
@pmelange feel free to change to a better subject for 4/32 devices our current setup seems the best, but for 8/32 devices we should keep opkg, imho. |
If this isn't ready, then maybe we should wait for the full implementation. When the 8/32 devices should be taken care of at a later time, then they should not be put into the "tiny" images yet. |
@SvenRoederer I've updated the title and first comment of this PR. Can you make the commit messages clearer? |
The point is: do we want to handle the 8/32 devices like the 4/32 devices? The 8/32 have enough flash to hold the regular software and have still space left. This is a major difference to 4/32. But as of the low RAM we should handle them separately from recent 8+/64+ devices |
It isn't clear to me what we are doing differently with the 32MB devices. So far the only thing I know about is in the wizard, when deciding to configure statistics or not. Am I missing something? Are the installed packages for 8/32 different from the 8+/64+ devices? How exactly is the low RAM handled? |
Beside the statistics the 4MB-packages exclude some daemons, some kernel-modules and use the smaller version of wpad. This should help to reduce the memory-pressure. |
Should we close this PR unmerged, forget about the 4MB devices, and move on with our lives? Dealing with low-RAM devices could be handled separately. Perhaps by automatically disabling certain settings/services (RRD, OLSR6) in the wizard or uci-defaults? |
That's the point: It's quiet clear, that nobody will take care for 4MB devices anymore. But the subject is about "do we handle 8/32 MB devices like 4/32 MB devices"? --> drop official support now? |
for reference https://openwrt.org/supported_devices/432_warning. Also the OpenWrt-team mentions:
|
for 8/32 MB devices gluon seems to go to use zram to ease the low-ram issue by emulating additional RAM (freifunk-gluon/gluon#1692) |
I just installed a master-branch build (b255cf3) on a NSM5 (8/32 device). The board was nearly not operable, until I disabled collectd (local RRD was not enabled at all). The avail RAM also became lower, as the kernel has become >1MB larger from Hedy-1.0.4 to this master.
So using the current 4MB package list will remove some RAM-pressure, as some smaller binaries are used the collectd package will not be installed anyways and so the wizard even do not need to think of enabling it or not. |
So there seems some room by disabling additional kernel-options |
#806 seems also affected by the limited RAM of 32MB devices |
I recently read the following comment in a non-public mailinglist
They are running with "Freifunk Berlin 1.1.0-rc2-Gonzo / c544521" (OpenWrt.18.06). |
They were recently running hedy. They crashed regularly then too. The following services are also disabled (in hedy and gonzo) olsr6, rrd, uhhtpd and odhcpd. 32MB RAM just doesn't work for nodes on the backbone. |
I'm wondering, why this discussion starts again after nearly one year of inactivity. Didn't we agree on, that we won't support those devices droped by OpenWRT?!On the firmware wiki-page, we do not recommend those routers for a long time. I think we should not invest even more time in handling deprecated devices, as there are some other major issues in our firmware. I'd be in favor of even stop building these images, as new Freifunkas might try to flash them against all warnings and will get very frustrated. This is not an issue of software instability, but of far too less resources. |
I totally agree with @Akira25 s arguments! |
Nice to see, that everybody agrees on phasing out the support of these "tiny" hardware capability devices. If the consensus is so clear, I wonder why there was never any approach to merge this PR and step forward.
I'm runnig a TLink-WR741 (4/32) on Hedy without problems having removed collectd and vnstat also (https://github.com/freifunk-berlin/firmware/blob/master/packagelists/mesh_4MB.txt) in a mesh linked via bbbvpn.
|
This renaming lifts the limit to use this profile only for 4MB devices.
There have been problems seen with devices which only have 32MB RAM. For such devices there is also the "4/32 deprecation warning" of OpenWrt [1], so treat them as "tiny" also. 1 - https://openwrt.org/supported_devices/432_warning
5298b43
to
44b614a
Compare
rebased the whole thing onto master and looking forward to get it merged within the 2 years period. |
Be more generic and reference to small hardware rather than only speaking of 4MB flash.
These PR should be merged as "rebase", as the individual commits are so much apart from each other. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT, this looks good. I'd like to have this merged.
@Akira25 the repo is setup to require at least one reviewer with commit-permissions to allow merging. As you seem to have the right spirit I just sent you an invitation to the @freifunk-berlin/firmware-contributors team. |
The router target names have been updated to mirror the changes made upstream. All "4MB" targets are now "tiny" targets. Targets with only 32MB ram are also now "tiny" targets.