Как составить список слабых зависимостей с помощью dnf?

echo 1 > /proc/sys/vm/oom_dump_tasks

кажется, что это максимум, что вы можете заставить ядро ​​отображать из -из -ошибок памяти.

https://www.kernel.org/doc/Documentation/sysctl/vm.txt

Enables a system-wide task dump (excluding kernel threads) to be produced when the kernel performs an OOM-killing and includes such information as pid, uid, tgid, vm size, rss, nr_ptes, swapents, oom_score_adj score, and name. This is helpful to determine why the OOM killer was invoked, to identify the rogue task that caused it, and to determine why the OOM killer chose the task it did to kill.

If this is set to zero, this information is suppressed. On very large systems with thousands of tasks it may not be feasible to dump the memory state information for each one. Such systems should not be forced to incur a performance penalty in OOM conditions when the information may not be desired.

If this is set to non-zero, this information is shown whenever the OOM killer actually kills a memory-hogging task.

Редактировать

В соответствии с Где я могу увидеть список процессов, уничтоженных ядром?

Здесь может помочь учет процессов.

Коротко:

apt-get install acct

Затем попробуйте команды типа:

lastcomm
sa

или в Ubuntu:

lastcomm -f /var/log/account/pacct
sa /var/log/account/pacct

См.:

4
25.09.2021, 14:15
1 ответ

dnf repoquery --dependsпечатает только прямые зависимости (зависимости, перечисленные в пакете langpacks-elкак Requires/Recommends/Suggests ), поэтому здесь все работает, как и ожидалось, потому что «лишние» пакеты загружаются через назад /обратные зависимости . Пакет hunspell-el, например, имеет обратную слабую зависимость (, эта зависимость указана в hunspell-elкак Дополнения(hunspell and langpacks-el), что означает, что она будет установлена, когда у вас есть и hunspell, и langpack-el. установлены. С языковыми пакетами это позволяет устанавливать только языковые пакеты для уже установленных пакетов --вы не получите локализацию KDE(kde-l10n-elтакже дополняет langpacks-el), если у вас еще нет KDE.

Вы можете распечатать обратные слабые зависимости с помощью--whatsupplements

# dnf repoquery --whatsupplements langpacks-core-el
glibc-langpack-el-0:2.33-20.fc34.x86_64
glibc-langpack-el-0:2.33-5.fc34.x86_64

# dnf repoquery --whatsupplements langpacks-el
gimp-help-el-0:2.10.0-6.fc34.noarch
guayadeque-langpack-el-0:0.4.7-0.27.20210315git37840c1.fc34.noarch
guayadeque-langpack-el-0:0.4.7-0.30.20210415git79ec09d.fc34.noarch
hunspell-el-1:0.9-7.fc34.noarch
hyphen-el-0:0.20051018-23.fc34.noarch
kde-l10n-el-0:17.08.3-10.fc34.noarch
libreoffice-langpack-el-1:7.1.2.2-1.fc34.x86_64
libreoffice-langpack-el-1:7.1.6.2-1.fc34.x86_64
mythes-el-0:0.20070412-25.fc34.noarch
shotcut-langpack-el-0:21.03.21-2.fc34.noarch
tesseract-langpack-ell-0:4.1.0-1.fc34.noarch

Я не думаю, что одной командой можно распечатать как прямые, так и обратные зависимости.

5
25.09.2021, 14:52

Теги

Похожие вопросы