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.
Property:taskset
BoxMatrix >> Shell-Commands >> taskset | @ 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 |
BusyBox-Command
Command: | taskset - type Link | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Shell-Commands >> BusyBox-Commands - Origin: busybox | ||||||
Path: | Release: /bin, /usr/bin, <bb> Lab+Rel: /bin, /usr/bin, <bb> | ||||||
Properties: | Size: Link - Firmware: 6.54 - 8.00 | ||||||
Function: | Set or get CPU affinity. |
Goto: GPL-Browser - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
taskset sets or gets CPU affinity.
It can be used to run a command on one or more specified CPU cores.
The default method is to specify the cores to use as a hexadecimal bitmask.
For a quad core CPU this can be 1 / 2 / 4 / 8
for each single core or mixes up to F
for all cores.
There's an optional -c
parameter to specify the core numers in a comma separated list like -c 1,2,3,4
,
but it's mostly not compiled in in FRITZ!OS even if taskset --help
lists it, so get used to the bitmask!
Let's benchmark the 4 cores of a Dakota based 7530 fw 7.29:
root@fritz1:/var/mod/root# taskset -p $PPID pid 19780's current affinity mask: f root@fritz1:/var/mod/root# taskset 1 dhrystone 10000000 Dhrystone MIPS: 642.4 root@fritz1:/var/mod/root# taskset 2 dhrystone 10000000 Dhrystone MIPS: 638.1 root@fritz1:/var/mod/root# taskset 4 dhrystone 10000000 Dhrystone MIPS: 641.7 root@fritz1:/var/mod/root# taskset 8 dhrystone 10000000 Dhrystone MIPS: 641.7 root@fritz1:/var/mod/root# taskset F dhrystone 10000000 Dhrystone MIPS: 641.7
You see, dhrystone measures single core integer performance and does not benefit from multiple cores.
See also the sched_getaffinity(2) and sched_setaffinity(2) man pages. This is what taskset calls.
Excerpt from: BusyBox manual >> taskset command
taskset [-p] [MASK] [PID | PROG [ARGS]] Set or get CPU affinity Options: -p Operate on an existing PID
No usage info for this command.
Note that some options may not be compiled in. If Usage: is shown multiple times these are compile options.
GPL-Browser
Daily updated index of all taskset code findings on the GPL-Browser. Last update: 2025-01-23 05:00 GMT.
The Browse
column points to the Path
containing the respective source code on the gpl.boxmatrix.info service.
The SoC
column lists the Chip-Codenames, the Model
column lists the nicks of the Box-Models.
The Diff
column links the comparison of the AVM Kernel to the pristine original from Kernel.org.
The Download
column links the full tarball the respective directory content is extracted from.
The presence of the source does not mean it fits the respective model and architecture. See the Model-Matrix where it's used.
Browse | Path | SoC | Arch | Model | Firmw | Diff | Download |
---|---|---|---|---|---|---|---|
0 directories containing taskset source code |
Excerpt from: BusyBox manual >> taskset command - Last update: 2009-10-02 09:23 GMT.
Dependencies
Daily updated index of all dependencies of this command. Last update: 2025-01-23 07:41 GMT.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Symlink to | cmd | busybox (bbcmd) | 59 | 6.54 - 8.00 | The BusyBox executable itself. Contains the code for all applets. | BusyBox |
1 dependency for this command |
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2025-01-23 05:39 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.
The path <bb> means the applet could be located in the busybox binary and could be called busybox taskset.
If a path is shown and no <bb> marker, then this is a dead link to a missing applet.
Model | Firmware | Path | Size |
---|---|---|---|
FRITZ!Box 3490 (main) | 7.27 - 7.30 | /usr/bin, <bb> | Link |
FRITZ!Box 3490 (scrpn) | 7.27 - 7.30 | /usr/bin, <bb> | Link |
FRITZ!Box 4040 | 7.24 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 4050 | 7.58 - 7.90 | /usr/bin, <bb> | Link |
FRITZ!Box 4060 | 7.29 - 7.90 | /usr/bin, <bb> | Link |
FRITZ!Box 5490 (main) | 7.27 - 7.29 | /usr/bin, <bb> | Link |
FRITZ!Box 5490 (scrpn) | 7.27 - 7.29 | /usr/bin, <bb> | Link |
FRITZ!Box 5491 (main) | 7.27 - 7.29 | /usr/bin, <bb> | Link |
FRITZ!Box 5491 (scrpn) | 7.27 - 7.29 | /usr/bin, <bb> | Link |
FRITZ!Box 5530 Fiber (boot) | 7.21 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 5530 Fiber (main) | 7.21 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 5590 Fiber (boot) | 7.29 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 5590 Fiber (main) | 7.29 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 5590 Fiber (prx) | 7.29 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 5690 Pro (main) | 7.62 | /usr/bin, <bb> | Link |
FRITZ!Box 5690 Pro (rtl) | 7.62 | /bin | Link |
FRITZ!Box 6430 Cable (atom) | 7.01 - 7.29 | /usr/bin, <bb> | Link |
FRITZ!Box 6490 Cable (atom) | 7.00 - 7.51 | /usr/bin, <bb> | Link |
FRITZ!Box 6590 Cable (atom) | 6.110 - 7.51 | /usr/bin, <bb> | Link |
FRITZ!Box 6820 LTE v1 (main) | 7.19 - 7.59 | /usr/bin, <bb> | Link |
FRITZ!Box 6820 LTE v2 (main) | 7.19 - 7.59 | /usr/bin, <bb> | Link |
FRITZ!Box 6820 LTE v3 (main) | 7.19 - 7.57 | /usr/bin, <bb> | Link |
FRITZ!Box 6820 LTE v4 | 7.59 | /usr/bin, <bb> | Link |
FRITZ!Box 6850 LTE | 7.21 - 7.90 | /usr/bin, <bb> | Link |
FRITZ!Box 6850 5G | 7.24 - 7.90 | /usr/bin, <bb> | Link |
FRITZ!Box 6890 LTE (main) | 6.84 - 7.57 | /usr/bin, <bb> | Link |
FRITZ!Box 6890 LTE v1 (main) | 6.84 - 7.57 | /usr/bin, <bb> | Link |
FRITZ!Box 6890 LTE v2 (main) | 6.84 - 7.57 | /usr/bin, <bb> | Link |
FRITZ!Box 7430 (main) | 7.21 - 7.31 | /usr/bin, <bb> | Link |
FRITZ!Box 7490 (main) | 7.19 - 7.51 | /usr/bin, <bb> | Link |
FRITZ!Box 7490 (scrpn) | 7.19 - 7.51 | /usr/bin, <bb> | Link |
FRITZ!Box 7510 | 7.30 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7520 | 7.21 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7520 v2 (main) | 7.30 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7520 v2 (rtl) | /bin | Link | |
FRITZ!Box 7530 | 7.19 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7530 AX | 7.20 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7560 (main) | 6.69 - 7.30 | /usr/bin, <bb> | Link |
FRITZ!Box 7580 (main) | 6.69 - 7.30 | /usr/bin, <bb> | Link |
FRITZ!Box 7581 | 6.54 - 7.18 | /usr/bin, <bb> | Link |
FRITZ!Box 7582 | 6.83 - 7.18 | /usr/bin, <bb> | Link |
FRITZ!Box 7583 (main) | 7.01 - 7.59 | /usr/bin, <bb> | Link |
FRITZ!Box 7583 VDSL (main) | 7.19 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7590 (main) | 6.83 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7590 AX (main) | 7.19 - 8.00 | /usr/bin, <bb> | Link |
FRITZ!Box 7690 | 7.61 - 7.90 | /usr/bin, <bb> | Link |
FRITZ!Smart Gateway | 7.52 - 7.63 | /usr/bin, <bb> | Link |
FRITZ!Repeater 600 | 7.21 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Repeater 600 v2 | 7.27 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Repeater 1200 | 7.19 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Repeater 1200 AX | 7.30 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!WLAN Repeater 1750E | 7.30 - 7.32 | /usr/bin, <bb> | Link |
FRITZ!Repeater 2400 | 7.19 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Repeater 3000 | 7.19 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Repeater 3000 AX | 7.41 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Repeater 6000 | 7.19 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Powerline 1240 AX | 7.57 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Powerline 1260E | 7.21 - 7.58 | /usr/bin, <bb> | Link |
FRITZ!Powerline 1260 | 7.27 - 7.58 | /usr/bin, <bb> | Link |
59 models use this command |
Symbols
Daily updated index of all symbols of this command. Last update: 2025-01-23 07:41 GMT.
Firmware | Symbol |
---|---|
0 symbols for this command |