[PATCH v2 0/12] add ubus support to ltq-[v|a]dsl-app

Hauke Mehrtens hauke at hauke-m.de
Mon Jan 25 15:22:57 EST 2021


On 12/15/20 10:35 AM, Andre Heider wrote:
> v2:
> - drop 0002-ltq-vdsl-app-fix-Wundef-warnings.patch
> - use "/dev/dsl_cpe_api" without the "0" suffix for the adsl daemon:
>    package/kernel/lantiq/ltq-adsl/patches/100-dsl_compat.patch:+   device_create(dsl_class, NULL, MKDEV(DRV_DSL_CPE_API_DEV_MAJOR, 0), NULL, "dsl_cpe_api");
>    package/kernel/lantiq/ltq-vdsl/patches/100-compat.patch:+   device_create(dsl_class, NULL, dsl_devt, NULL, "dsl_cpe_api0");
> - use callDSLMetrics() for luci, per jo
> - add Tested-by tags
> 
> This is to significantly speed up the generation of the metrics.
> 
> The motivation comes from the fact that ~2.6s is just way too
> ineffcient for interval based metric collectors like prometheus or
> collectd.
> 
> The luci status page also loads/refreshes alot faster.
> 
> $ time /etc/init.d/dsl_control dslstat
> real	0m 2.66s
> user	0m 0.90s
> sys	0m 1.76s
> 
> $ time ubus call dsl metrics
> real	0m 0.02s
> user	0m 0.00s
> sys	0m 0.01s
> 
> The ltq-adsl-app changes are only compile time tested.
> 

Do you have pull requests on github for the luci and package feed changes?

Hauke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210125/f2ec3d74/attachment-0001.sig>


More information about the openwrt-devel mailing list