Commit 4998e7f
tracing/osnoise: Switch from PF_NO_SETAFFINITY to migrate_disable
Currently, osnoise/timerlat threads run with PF_NO_SETAFFINITY set.
It works well, however, cgroups do not allow PF_NO_SETAFFINITY threads
to be accepted, and this creates a limitation to osnoise/timerlat.
To avoid this limitation, disable migration of the threads as soon
as they start to run, and then clean the PF_NO_SETAFFINITY flag (still)
used during thread creation.
If for some reason a thread migration is requested, e.g., via
sched_settafinity, the tracer thread will notice and exit.
Link: https://lkml.kernel.org/r/8ba8bc9c15b3ea40cf73cf67a9bc061a264609f0.1686063934.git.bristot@kernel.org
Cc: Juri Lelli <[email protected]>
Cc: William White <[email protected]>
Cc: Daniel Bristot de Oliveira <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Signed-off-by: Daniel Bristot de Oliveira <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 83f7444 commit 4998e7f
1 file changed
+68
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1548 | 1581 | | |
1549 | 1582 | | |
1550 | 1583 | | |
| |||
1553 | 1586 | | |
1554 | 1587 | | |
1555 | 1588 | | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
1556 | 1602 | | |
1557 | 1603 | | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1558 | 1607 | | |
1559 | 1608 | | |
1560 | 1609 | | |
1561 | 1610 | | |
| 1611 | + | |
1562 | 1612 | | |
1563 | 1613 | | |
1564 | 1614 | | |
| |||
1706 | 1756 | | |
1707 | 1757 | | |
1708 | 1758 | | |
| 1759 | + | |
1709 | 1760 | | |
1710 | 1761 | | |
1711 | 1762 | | |
| |||
1714 | 1765 | | |
1715 | 1766 | | |
1716 | 1767 | | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1717 | 1780 | | |
1718 | 1781 | | |
1719 | 1782 | | |
| |||
1731 | 1794 | | |
1732 | 1795 | | |
1733 | 1796 | | |
| 1797 | + | |
1734 | 1798 | | |
1735 | 1799 | | |
1736 | 1800 | | |
| |||
1749 | 1813 | | |
1750 | 1814 | | |
1751 | 1815 | | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1752 | 1819 | | |
1753 | 1820 | | |
1754 | 1821 | | |
1755 | 1822 | | |
| 1823 | + | |
1756 | 1824 | | |
1757 | 1825 | | |
1758 | 1826 | | |
| |||
0 commit comments