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 september. 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 Gallery

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) Daemon setting system parameters from psetd.cfg.

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).

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-01-30 06:34 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 15** 7.29 - 7.51 Communication channel between routing dæmons and the kernel packet forwarding (#0) Linux
Multicast group RTMGRP_IPV4_IFADD 15** 7.29 - 7.51 IPv4 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV4_ROUTE 15** 7.29 - 7.51 IPv4 Routing Table change Linux
Multicast group RTMGRP_IPV6_IFADDR 15** 7.29 - 7.51 IPv6 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV6_ROUTE 15** 7.29 - 7.51 IPv6 Routing Table change Linux
Multicast group RTMGRP_LINK 15** 7.29 - 7.51 Creation / deletion or up / down change of a Network-Interface. Linux
Multicast group RTMGRP_NOTIFY 15** 7.29 - 7.51 Enable notification about changes in subscribed rtnetlink groups Linux
Multicast group RTMGRP_TC 15** 7.29 - 7.51 Packet Scheduler Traffic Control change Linux
Endpoint sock me_systemKPIReceiver.ctl 37* 6.90 - 7.51 avmipc endpoint to trigger KPI creation by psetd AVM
Listens to avmipc KPI_PRE_INFORM_NOTIFY 18** 7.12 - 7.51 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: 2023-01-30 18:58 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 46 7.19 - 7.51 supervisor service for psetd. AVM
Runs as proc psetd (process) 37* 6.90 - 7.51 Daemon setting system parameters from psetd.cfg. AVM
Serving sock me_systemKPIReceiver.ctl 37* 6.90 - 7.51 avmipc endpoint to trigger KPI creation by psetd AVM
Depends on lib ld.so 23 7.08 - 7.51 Dynamic linker / loader Linux
Depends on lib libavm_event.so 46 6.83 - 7.51 AVM-Events management API AVM
Depends on lib libavmcsock.so 46 6.83 - 7.51 Networking, I/O and helper functions AVM
Depends on lib libc.so 46 6.83 - 7.51 Standard C library Linux
Depends on lib libewnwlinux.so 45 7.19 - 7.51 Linux networking functions AVM
Depends on lib librt.so 32 6.83 - 7.50 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: 2023-01-30 16:58 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) label in the Model column shows which CPU is meant for models with multiple Linux instances.
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 5530 Fiber (prx) 7.27 - 7.30 /sbin 31.8k
FRITZ!Box 3490 (main) 7.01 - 7.30 /sbin 28.0k - 41.3k
FRITZ!Box 4040 6.98 - 7.39 /sbin 29.3k - 41.8k
FRITZ!Box 4060 7.26 - 7.39 /sbin 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 (arm) 7.27 - 7.39 /sbin 29.3k - 31.8k
FRITZ!Box 5590 Fiber (prx) 7.27 - 7.30 /sbin 31.8k
FRITZ!Box 6430 Cable (arm) 7.01 - 7.29 /sbin 29.2k - 41.7k
FRITZ!Box 6430 Cable (atom) 7.01 - 7.29 /sbin 29.2k - 41.7k
FRITZ!Box 6490 Cable (arm) 7.00 - 7.39 /sbin 29.2k - 41.7k
FRITZ!Box 6490 Cable (atom) 7.00 - 7.39 /sbin 29.2k - 41.7k
FRITZ!Box 6590 Cable (arm) 6.110 - 7.39 /sbin 29.2k - 41.7k
FRITZ!Box 6590 Cable (atom) 6.110 - 7.39 /sbin 29.2k - 41.7k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.39 /sbin 29.3k - 41.9k
FRITZ!Box 6591 Cable (atom) 7.04 - 7.39 /sbin 29.3k - 41.9k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.39 /sbin 29.3k - 38.2k
FRITZ!Box 6660 Cable (atom) 7.14 - 7.39 /sbin 29.3k - 38.2k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.50 /sbin 29.3k - 37.4k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.50 /sbin 29.3k - 37.4k
FRITZ!Box 6850 LTE 7.21 - 7.39 /sbin 25.4k - 31.8k
FRITZ!Box 6850 5G 7.24 - 7.39 /sbin 29.3k - 29.4k
FRITZ!Box 6890 LTE 6.84 - 7.39 /sbin 31.8k - 61.2k
FRITZ!Box 6890 LTE v1 6.84 - 7.39 /sbin 31.8k - 61.2k
FRITZ!Box 6890 LTE v2 6.84 - 7.39 /sbin 31.8k - 61.2k
FRITZ!Box 7362 SL 6.98 - 7.13 /sbin 37.3k - 41.3k
FRITZ!Box 7430 6.98 - 7.29 /sbin 28.0k - 41.3k
FRITZ!Box 7490 (main) 6.83 - 7.51 /sbin 28.0k - 61.5k
FRITZ!Box 7510 7.30 - 7.39 /sbin 29.3k
FRITZ!Box 7520 6.98 - 7.50 /sbin 29.3k - 41.8k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.50 /sbin 29.3k - 29.4k
FRITZ!Box 7530 6.93 - 7.51 /sbin 25.4k - 41.8k
FRITZ!Box 7560 6.88 - 7.29 /sbin 31.8k - 61.3k
FRITZ!Box 7580 6.90 - 7.29 /sbin 31.8k - 61.3k
FRITZ!Box 7583 7.01 - 7.31 /sbin 31.8k - 49.3k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /sbin 31.8k
FRITZ!Box 7590 6.83 - 7.51 /sbin 31.8k - 61.3k
FRITZ!Box 7590 AX 7.19 - 7.39 /sbin 31.8k
FRITZ!Repeater 1200 7.11 - 7.29 /sbin 29.3k - 41.8k
FRITZ!Repeater 1200 AX 7.27 - 7.39 /sbin 29.3k
FRITZ!Smart Gateway 7.39 - 7.51 /sbin 29.3k
FRITZ!Repeater 3000 6.98 - 7.39 /sbin 25.4k - 41.8k
FRITZ!Repeater 3000 AX 7.39 - 7.41 /sbin 25.3k - 29.3k
FRITZ!Repeater 6000 7.19 - 7.39 /sbin 29.3k
FRITZ!Powerline 1260E 6.90 - 7.29 /sbin 29.3k - 50.3k
FRITZ!Powerline 1260 7.08 - 7.29 /sbin 29.3k - 41.8k
47 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2023-01-30 18:58 GMT.

Firmware Symbol
6.93 - 7.51 checkIrqName
6.83 - 7.19 fixpoint2doubleVWidth
6.83 - 7.19 float2fixpointVWidth
6.83 - 7.19 getMeasure
7.19 - 7.51 ifadd
6.83 - 7.19 initMeasures
6.83 - 7.19 isNeuroptimaAvailable
6.83 - 7.51 main
6.83 - 7.19 optimize
6.83 - 7.19 parseDefaultParameterFile
7.19 - 7.51 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 - 7.51 setIrq
6.93 - 7.51 setIrqByName
6.93 - 7.51 setIrqByName_strerror
6.83 - 7.51 setIrq_strerror
6.83 - 7.19 setMeasure
6.98 - 7.51 setNetFeature
6.98 - 7.51 setNetFeature_strerror
6.83 - 7.19 setParametersRandom
6.98 - 7.51 setRpsFlowCount
6.98 - 7.51 setRpsFlowCount_strerror
6.83 - 7.51 setSlab
6.83 - 7.51 setSlab_strerror
7.19 - 7.51 setThread
7.19 - 7.51 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
6.83 - 7.51 yy_create_buffer
6.83 - 7.51 yy_delete_buffer
6.83 - 7.51 yy_flush_buffer
6.83 - 7.51 yy_scan_buffer
6.83 - 7.51 yy_scan_bytes
6.83 - 7.51 yy_scan_string
6.83 - 7.51 yy_switch_to_buffer
6.83 - 7.51 yyalloc
6.83 - 7.51 yyerror
6.83 - 7.51 yyfree
6.83 - 7.51 yyget_column
6.83 - 7.51 yyget_debug
6.83 - 7.51 yyget_extra
6.83 - 7.51 yyget_in
6.83 - 7.51 yyget_leng
6.83 - 7.51 yyget_lineno
6.83 - 7.51 yyget_lloc
6.83 - 7.51 yyget_lval
6.83 - 7.51 yyget_out
6.83 - 7.51 yyget_text
6.83 - 7.51 yylex
6.83 - 7.51 yylex_destroy
6.83 - 7.51 yylex_init
6.83 - 7.51 yylex_init_extra
6.83 - 7.51 yyparse
6.83 - 7.51 yypop_buffer_state
6.83 - 7.51 yypush_buffer_state
6.83 - 7.51 yyrealloc
6.83 - 7.51 yyrestart
6.83 - 7.51 yyset_column
6.83 - 7.51 yyset_debug
6.83 - 7.51 yyset_extra
6.83 - 7.51 yyset_in
6.83 - 7.51 yyset_lineno
6.83 - 7.51 yyset_lloc
6.83 - 7.51 yyset_lval
6.83 - 7.51 yyset_out
72 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.