| Server IP : 91.240.85.141 / Your IP : 216.73.216.223 Web Server : nginx/1.28.0 System : Linux nuevo.ru 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : ( 1029) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/tuned/plugins/__pycache__/ |
Upload File : |
�
Y��d � �� � d dl Z ddlmZ ddl� d dlZd dl� d dlmZ d dl m
Z
d dlZd dlZej j � ZddgZdd gZ G d
� dej$ � Zd� Zd
� Zd� Zd� Zd� Zdd�Zy)� N� )�base)�*)�commands�base_reachable_time�retrans_timez
/run/sysctl.dz
/etc/sysctl.dc �X � � e Zd ZdZ� fd�Zd� Zd� Zd� Zd� Ze j fd�Z� xZS )�SysctlPluginaI
`sysctl`::
Sets various kernel parameters at runtime.
+
This plug-in is used for applying custom `sysctl` settings and should
only be used to change system settings that are not covered by other
*TuneD* plug-ins. If the settings are covered by other *TuneD* plug-ins,
use those plug-ins instead.
+
The syntax for this plug-in is
`_key_=_value_`, where
`_key_` is the same as the key name provided by the
`sysctl` utility.
+
.Adjusting the kernel runtime kernel.sched_min_granularity_ns value
====
----
[sysctl]
kernel.sched_min_granularity_ns=3000000
----
====
c �X �� t t | �
|i |�� d| _ t � | _ y )NT)�superr
�__init__�_has_dynamic_optionsr �_cmd)�self�args�kwargs� __class__s ��=/usr/lib/python3/dist-packages/tuned/plugins/plugin_sysctl.pyr
zSysctlPlugin.__init__* s( �� ���d�$�d�5�f�5�"�$���j�$�)� c �z � d|_ d|_ | j |j � }| j j |i � |_ t |j � dkD rHt j d� | j |� i |_ | j j |� |j |_
y )NFTr z0recovering old sysctl settings from previous run)�_has_dynamic_tuning�_has_static_tuning�_storage_key�name�_storage�get�_sysctl_original�len�log�info�_instance_unapply_static�unset�options�_sysctl�r �instance�storage_keys r �_instance_initzSysctlPlugin._instance_init/ s� � �!&�(�� $�(�� �!�!�(�-�-�0�+�"�m�m�/�/��R�@�(���� "� "�#�a�'��8�8�>�?�� � ��*�!�8���=�=���{�#��%�%�(�r c �p � | j |j � }| j j |� y �N)r r r r"