If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:psetd (avmcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> psetd (avmcmd) @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Info
  
Name-Collision - multiple objects in this wiki use the name psetd!
psetd (avmcmd) Daemon setting system parameters from psetd.cfg.
psetd (process) Process running psetd

AVM-Command

Goto:   Examples  -  Events  -   Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

psetd is a daemon which sets system parameters from the parameter file psetd.cfg.

fw 7.29 help - call with no arguments for help:

root@fritz2:/var/mod/root# psetd

psetd: Info: Usage: psetd <parameter file> [-i] 

[-i] Set parameters from file only once then exit.

Parameters in parameter file:

<name> irq <interrupt number> <cpu affinity>
<name> slab <entry name> <limit> <batchcount> <sharedfactor>

Not in the help output but manually added:

<name> rps_flow_count <interface> <num> <num>
<name> net_feature <interface> gso|gro on|off

Numbers could be decimal or hexadecimal.

psetd is also running if psetd.cfg is empty (ie: 7490). It is also the System KPI provider calling the kpi script.

KPI (Key Performance Indicators) are a collection of sensor values like they are required for professional system monitoring.
Many services collect sensor data and generate KPI and starting with fw 7.39 FRITZ!OS implements metering in avmcounterd.
KPI are sent as IPC messages with attached JSON data to ctlmgr which serves the me_KPI.ctl IPC endpoint for this purpose.
Explained KPI providers: aha, kpid, psetd (kpi), voipkpid (libvoipkpi.so), latencyd.

psetd does not call kpi automatically, it is subscribed to the KPI_PRE_INFORM_NOTIFY event in the AVMIPC-Datastore,
by its systemKPIReceiver IPC endpoint, and sends the KPI to ctlmgr on request.

Examples

Parameter files are hardware specific and differ between models:

Parameters of a 7490 fw 7.29:

root@fritz3:/var/mod/root# cat /etc/psetd.cfg 

<empty>

Parameters of a 6490 fw 7.29:

root@fritz2:/var/mod/root# cat /etc/psetd.cfg 

ethirq irq 45 0x2

Parameters of a 7530 fw 7.29:

root@fritz1:/var/mod/root# cat /etc/psetd.cfg 

wifi0 irq wifi0 0x1
wifi1 irq wifi1 0x1
wtf3 irq wifi0-avm_offload_rx_refill 0x4
wtf4 irq wifi0-avm_offload_tx_free 0x8
wtf5 irq wifi1-avm_offload_rx_refill 0x2
wtf6 irq wifi1-avm_offload_tx_free 0x4

qca-init-tx0 irq edma_eth_tx0 0x4
qca-init-tx1 irq edma_eth_tx1 0x4
qca-init-tx2 irq edma_eth_tx2 0x4
qca-init-tx3 irq edma_eth_tx3 0x4
qca-init-tx4 irq edma_eth_tx4 0x8
qca-init-tx5 irq edma_eth_tx5 0x8
qca-init-tx6 irq edma_eth_tx6 0x8
qca-init-tx7 irq edma_eth_tx7 0x8
qca-init-tx8 irq edma_eth_tx8 0x1
qca-init-tx9 irq edma_eth_tx9 0x1
qca-init-tx10 irq edma_eth_tx10 0x1
qca-init-tx11 irq edma_eth_tx11 0x1
qca-init-tx12 irq edma_eth_tx12 0x2
qca-init-tx13 irq edma_eth_tx13 0x2
qca-init-tx14 irq edma_eth_tx14 0x2
qca-init-tx15 irq edma_eth_tx15 0x2

#QCA_EDMA_FIQ disabled: benutze diese, sonst die 2. Variante darunter
#Entsprechende Fehler ignorieren.
qca-init-rx0 irq edma_eth_rx0 0x1
qca-init-rx2 irq edma_eth_rx2 0x2
qca-init-rx4 irq edma_eth_rx4 0x4
qca-init-rx6 irq edma_eth_rx6 0x8

qca-init-rx0-2nd irq edma_eth_2nd_0 0x1
qca-init-rx1-2nd irq edma_eth_2nd_1 0x2
qca-init-rx2-2nd irq edma_eth_2nd_2 0x4
qca-init-rx3-2nd irq edma_eth_2nd_3 0x8

#RPS ausschalten!
#qca-init-rfc-eth0-rx0           rps_flow_count eth0 0 256
#qca-init-rfc-eth0-rx1           rps_flow_count eth0 1 256
#qca-init-rfc-eth0-rx2           rps_flow_count eth0 2 256
#qca-init-rfc-eth0-rx3           rps_flow_count eth0 3 256
#qca-init-rfc-eth1-rx0           rps_flow_count eth1 0 256
#qca-init-rfc-eth1-rx1           rps_flow_count eth1 1 256
#qca-init-rfc-eth1-rx2           rps_flow_count eth1 2 256
#qca-init-rfc-eth1-rx3           rps_flow_count eth1 3 256
#qca-init-rfc-eth2-rx0           rps_flow_count eth2 0 256
#qca-init-rfc-eth2-rx1           rps_flow_count eth2 1 256
#qca-init-rfc-eth2-rx2           rps_flow_count eth2 2 256
#qca-init-rfc-eth2-rx3           rps_flow_count eth2 3 256
#qca-init-rfc-eth3-rx0           rps_flow_count eth3 0 256
#qca-init-rfc-eth3-rx1           rps_flow_count eth3 1 256
#qca-init-rfc-eth3-rx2           rps_flow_count eth3 2 256
#qca-init-rfc-eth3-rx3           rps_flow_count eth3 3 256

qca-init-gro-eth0   net_feature eth0 gro off
qca-init-gro-eth1   net_feature eth1 gro off
qca-init-gro-eth2   net_feature eth2 gro off
qca-init-gro-eth3   net_feature eth3 gro off

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2023-12-10 05:13 GMT.
The owners of Event-Sinks and Event-Sources are manual research, which may be incomplete or even wrong.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
A ** in the Mod column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Netlink family NETLINK_ROUTE 17** 7.29 - 7.57 Communication channel between routing dæmons and the kernel packet forwarding (#0) Linux
Multicast group RTMGRP_IPV4_IFADD 17** 7.29 - 7.57 IPv4 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV4_ROUTE 17** 7.29 - 7.57 IPv4 Routing Table change Linux
Multicast group RTMGRP_IPV6_IFADDR 17** 7.29 - 7.57 IPv6 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV6_ROUTE 17** 7.29 - 7.57 IPv6 Routing Table change Linux
Multicast group RTMGRP_LINK 17** 7.29 - 7.57 Creation / deletion or up / down change of a Network-Interface. Linux
Multicast group RTMGRP_NOTIFY 17** 7.29 - 7.57 Enable notification about changes in subscribed rtnetlink groups Linux
Multicast group RTMGRP_TC 17** 7.29 - 7.57 Packet Scheduler Traffic Control change Linux
Endpoint sock me_systemKPIReceiver.ctl 37* 6.90 - 7.57 avmipc endpoint to trigger KPI creation by psetd AVM
Listens to avmipc KPI_PRE_INFORM_NOTIFY 20** 7.12 - 7.57 Trigger event to create KPI. AVM
10 event relations for this command

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /sbin/psetd | grep -e '\.c$' -e '\.cpp$'

<empty>  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-12-21 07:44 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Started by serv psetd.service 45 7.19 - 8.00 supervisor service for psetd. AVM
Runs as proc psetd (process) 43* 6.90 - 8.00 Process running psetd AVM
Serving sock me_systemKPIReceiver.ctl 43* 6.90 - 8.00 avmipc endpoint to trigger KPI creation by psetd AVM
Depends on lib ld.so 23 7.08 - 8.00 Dynamic linker / loader Linux
Depends on lib libavm_event.so 45 6.83 - 8.00 AVM-Events management API AVM
Depends on lib libavmcsock.so 45 6.83 - 8.00 Networking, I/O and helper functions AVM
Depends on lib libc.so 45 6.83 - 8.00 Standard C library Linux
Depends on lib libewnwlinux.so 44 7.19 - 8.00 Linux networking functions AVM
Depends on lib librt.so 26 6.83 - 8.00 POSIX realtime extensions library Linux
9 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-12-21 05:44 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 3490 (main) 7.01 - 7.30 /sbin 28.0k - 41.3k
FRITZ!Box 4040 6.98 - 8.00 /sbin 25.4k - 41.8k
FRITZ!Box 4050 7.58 - 7.90 /sbin 25.4k - 29.3k
FRITZ!Box 4060 7.29 - 7.90 /sbin 25.4k - 29.3k
FRITZ!Box 5490 (main) 7.01 - 7.29 /sbin 28.0k - 41.3k
FRITZ!Box 5491 (main) 7.01 - 7.29 /sbin 28.0k - 41.3k
FRITZ!Box 5530 Fiber (main) 7.21 - 7.30 /sbin 31.8k
FRITZ!Box 5590 Fiber (main) 7.29 - 8.00 /sbin 25.4k - 29.3k
FRITZ!Box 5590 Fiber (prx) 7.29 - 7.30 /sbin 31.8k
FRITZ!Box 5690 Pro (main) 7.62 /sbin 29.3k
FRITZ!Box 6430 Cable (atom) 7.01 - 7.29 /sbin 29.2k - 41.7k
FRITZ!Box 6490 Cable (atom) 7.00 - 7.51 /sbin 29.2k - 41.7k
FRITZ!Box 6590 Cable (atom) 6.110 - 7.51 /sbin 29.2k - 41.7k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.08 /sbin 38.4k - 41.9k
FRITZ!Box 6591 Cable (atom) 7.04 - 8.00 /sbin 29.3k - 41.9k
FRITZ!Box 6660 Cable (atom) 7.14 - 8.00 /sbin 29.3k - 38.2k
FRITZ!Box 6670 Cable (atom) 7.61 - 7.90 /sbin 33.6k - 37.4k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.90 /sbin 29.3k - 37.4k
FRITZ!Box 6850 LTE 7.21 - 7.90 /sbin 25.4k - 31.8k
FRITZ!Box 6850 5G 7.24 - 7.90 /sbin 25.4k - 29.4k
FRITZ!Box 6890 LTE (main) 6.84 - 7.57 /sbin 31.8k - 61.2k
FRITZ!Box 6890 LTE v1 (main) 6.84 - 7.57 /sbin 31.8k - 61.2k
FRITZ!Box 6890 LTE v2 (main) 6.84 - 7.57 /sbin 31.8k - 61.2k
FRITZ!Box 7362 SL (main) 6.98 - 7.18 /sbin 37.3k - 41.3k
FRITZ!Box 7430 (main) 6.98 - 7.31 /sbin 28.0k - 41.3k
FRITZ!Box 7490 (main) 6.83 - 7.51 /sbin 28.0k - 61.5k
FRITZ!Box 7510 7.30 - 8.00 /sbin 25.4k - 29.3k
FRITZ!Box 7520 6.98 - 8.00 /sbin 25.4k - 41.8k
FRITZ!Box 7520 v2 (main) 7.30 - 8.00 /sbin 25.4k - 29.4k
FRITZ!Box 7530 6.98 - 8.00 /sbin 25.4k - 41.8k
FRITZ!Box 7560 (main) 6.88 - 7.30 /sbin 31.8k - 61.3k
FRITZ!Box 7580 (main) 6.90 - 7.30 /sbin 31.8k - 61.3k
FRITZ!Box 7583 (main) 7.01 - 7.59 /sbin 31.8k - 49.3k
FRITZ!Box 7583 VDSL (main) 7.19 - 8.00 /sbin 31.8k - 31.9k
FRITZ!Box 7590 (main) 6.83 - 8.00 /sbin 31.8k - 61.3k
FRITZ!Box 7590 AX (main) 7.19 - 8.00 /sbin 31.8k - 31.9k
FRITZ!Box 7690 7.61 - 7.90 /sbin 25.4k - 29.3k
FRITZ!Smart Gateway 7.52 - 7.63 /sbin 29.3k
FRITZ!Repeater 1200 7.11 - 7.58 /sbin 29.3k - 41.8k
FRITZ!Repeater 1200 AX 7.30 - 7.58 /sbin 29.3k
FRITZ!Repeater 3000 6.98 - 7.58 /sbin 25.4k - 41.8k
FRITZ!Repeater 3000 AX 7.41 - 7.58 /sbin 29.3k
FRITZ!Repeater 6000 7.19 - 7.58 /sbin 29.3k
FRITZ!Powerline 1240 AX 7.57 - 7.58 /sbin 29.3k
FRITZ!Powerline 1260E 6.90 - 7.58 /sbin 29.3k - 50.3k
FRITZ!Powerline 1260 7.27 - 7.58 /sbin 29.3k - 29.4k
46 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-12-21 07:44 GMT.

Firmware Symbol
6.98 - 8.00 checkIrqName
6.83 - 7.19 fixpoint2doubleVWidth
6.83 - 7.19 float2fixpointVWidth
6.83 - 7.19 getMeasure
7.19 - 8.00 ifadd
6.83 - 7.19 initMeasures
6.83 - 7.19 isNeuroptimaAvailable
6.83 - 8.00 main
6.83 - 7.19 optimize
6.83 - 7.19 parseDefaultParameterFile
7.19 - 8.00 parseParameterFile
6.83 - 7.19 pollKPI
6.83 - 7.19 readProcFile
6.83 - 7.19 registerKPICallback
6.83 - 7.19 resetUponNICUP
6.83 - 7.19 resetUponSIGHUP
6.83 - 8.00 setIrq
6.98 - 8.00 setIrqByName
6.98 - 7.81 setIrqByName_strerror
6.83 - 8.00 setIrq_strerror
6.83 - 7.19 setMeasure
6.98 - 8.00 setNetFeature
6.98 - 8.00 setNetFeature_strerror
6.83 - 7.19 setParametersRandom
6.98 - 8.00 setRpsFlowCount
6.98 - 8.00 setRpsFlowCount_strerror
6.83 - 8.00 setSlab
6.83 - 8.00 setSlab_strerror
7.19 - 8.00 setThread
7.19 - 8.00 setThread_strerror
6.83 - 7.19 sigalrmHandler
6.83 - 7.19 sighupHandler
6.83 - 7.19 startGetMeasure
6.83 - 7.19 unregisterKPICallback
6.83 - 7.19 writeProcFile
7.39 y
6.83 - 8.00 yy_create_buffer
6.83 - 8.00 yy_delete_buffer
6.83 - 8.00 yy_flush_buffer
6.83 - 8.00 yy_scan_buffer
6.83 - 8.00 yy_scan_bytes
6.83 - 7.81 yy_scan_string
7.39 yy_switch_to_bu
6.83 - 8.00 yy_switch_to_buffer
6.83 - 7.81 yyalloc
6.83 - 8.00 yyerror
6.83 - 7.81 yyfree
6.83 - 7.81 yyget_column
6.83 - 7.81 yyget_debug
6.83 - 7.81 yyget_extra
6.83 - 7.81 yyget_in
6.83 - 7.81 yyget_leng
6.83 - 7.81 yyget_lineno
6.83 - 7.81 yyget_lloc
6.83 - 7.81 yyget_lval
6.83 - 7.81 yyget_out
6.83 - 7.81 yyget_text
6.83 - 8.00 yylex
6.83 - 8.00 yylex_destroy
6.83 - 8.00 yylex_init
6.83 - 7.81 yylex_init_extra
6.83 - 8.00 yyparse
6.83 - 8.00 yypop_buffer_state
6.83 - 7.81 yypush_buffer_state
6.83 - 7.81 yyrealloc
7.57 yyrest
6.83 - 8.00 yyrestart
6.83 - 7.81 yyset_column
6.83 - 7.81 yyset_debug
6.83 - 7.81 yyset_extra
6.83 - 8.00 yyset_in
6.83 - 7.81 yyset_lineno
6.83 - 7.81 yyset_lloc
6.83 - 7.81 yyset_lval
6.83 - 7.81 yyset_out
75 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.