LINUX.ORG.RU

История изменений

Исправление grem, (текущая версия) :

По результатам работы:

# time eclean-dist -p
 * Building file list for distfiles cleaning...
 * Here are the distfiles that would be deleted:
 [    8.4 M ] ImageMagick-6.9.6-6.tar.xz
 [   54.4 M ] VBoxGuestAdditions_4.3.38.iso
 [   31.7 M ] breeze-5.8.3.tar.xz
 [   49.3 M ] firefox-45.4.0esr.tar.bz2
 [   21.3 M ] icu4c-57_1-src.tgz
 [   72.7 M ] jre-8u112-linux-i586.tar.gz
 [   70.2 M ] jre-8u112-linux-x64.tar.gz
 [   80.8 K ] kactivitymanagerd-5.8.3.tar.xz
 [  474.7 K ] kde-cli-tools-5.8.3.tar.xz
 [  146.5 K ] kde-gtk-config-5.8.3.tar.xz
 [   34.0 K ] kdecoration-5.8.3.tar.xz
 [   11.1 M ] kdelibs-4.14.24.tar.xz
 [    1.2 M ] kinfocenter-5.8.3.tar.xz
 [  105.6 K ] kscreenlocker-5.8.3.tar.xz
 [  476.3 K ] ksysguard-5.8.3.tar.xz
 [    3.8 M ] kwin-5.8.3.tar.xz
 [   41.7 K ] libkdcraw-16.04.3.tar.xz
 [   90.7 K ] libkscreen-5.8.3.tar.xz
 [  558.1 K ] libksysguard-5.8.3.tar.xz
 [   43.6 K ] libmpack-1.0.2.tar.gz
 [  639.3 K ] libpng-1.2.56.tar.xz
 [    1.8 M ] libtasn1-4.8.tar.gz
 [   53.1 K ] milou-5.8.3.tar.xz
 [    5.4 M ] openldap-2.4.43.tgz
 [    4.3 M ] oxygen-5.8.3.tar.xz
 [    6.1 M ] plasma-desktop-5.8.3.tar.xz
 [   49.5 K ] plasma-integration-5.8.3.tar.xz
 [    6.6 M ] plasma-workspace-5.8.3.tar.xz
 [   39.9 K ] polkit-kde-agent-1-5.8.3.tar.xz
 [  348.0 K ] powerdevil-5.8.3.tar.xz
 [    1.4 M ] qd-2.3.14.tar.gz
 [  383.5 K ] ru.xpi
 [   47.8 K ] sddm-kcm-5.8.3.tar.xz
 [  154.3 K ] systemsettings-5.8.3.tar.xz
 ===========
 [  353.4 M ] Total space from 34 files would be freed in the distfiles directory
...
real    4m36.615s
user    0m23.971s
sys     0m20.088s

# time dfclean

[   21.3 MiB ] /usr/portage/distfiles/icu4c-57_1-src.tgz
[   72.8 MiB ] /usr/portage/distfiles/portage-20170119.tar.bz2
[  154.3 KiB ] /usr/portage/distfiles/systemsettings-5.8.3.tar.xz
[   54.4 MiB ] /usr/portage/distfiles/VBoxGuestAdditions_4.3.38.iso
[   73.3 MiB ] /usr/portage/distfiles/portage-20170307.tar.bz2
[  833 Bytes ] /usr/portage/distfiles/portage-20170307.tar.bz2.gpgsig
[    1.8 MiB ] /usr/portage/distfiles/libtasn1-4.8.tar.gz
[   90.7 KiB ] /usr/portage/distfiles/libkscreen-5.8.3.tar.xz
[   41.7 KiB ] /usr/portage/distfiles/libkdcraw-16.04.3.tar.xz
[    1.4 MiB ] /usr/portage/distfiles/qd-2.3.14.tar.gz
[   59 Bytes ] /usr/portage/distfiles/portage-20170307.tar.bz2.md5sum
[   55 Bytes ] /usr/portage/distfiles/portage-20170307.tar.bz2.umd5sum
[   59 Bytes ] /usr/portage/distfiles/portage-20170119.tar.bz2.md5sum
[  476.3 KiB ] /usr/portage/distfiles/ksysguard-5.8.3.tar.xz
[   47.8 KiB ] /usr/portage/distfiles/sddm-kcm-5.8.3.tar.xz
[   55 Bytes ] /usr/portage/distfiles/portage-20170119.tar.bz2.umd5sum
[    6.6 MiB ] /usr/portage/distfiles/plasma-workspace-5.8.3.tar.xz
[    8.4 MiB ] /usr/portage/distfiles/ImageMagick-6.9.6-6.tar.xz
[   80.8 KiB ] /usr/portage/distfiles/kactivitymanagerd-5.8.3.tar.xz
[    6.1 MiB ] /usr/portage/distfiles/plasma-desktop-5.8.3.tar.xz
[    0 Bytes ] /usr/portage/distfiles/.qtwebkit-opensource-src-5.6.2.tar.xz.portage_lockfile
[   39.9 KiB ] /usr/portage/distfiles/polkit-kde-agent-1-5.8.3.tar.xz
[  474.7 KiB ] /usr/portage/distfiles/kde-cli-tools-5.8.3.tar.xz
[    3.8 MiB ] /usr/portage/distfiles/kwin-5.8.3.tar.xz
[   49.5 KiB ] /usr/portage/distfiles/plasma-integration-5.8.3.tar.xz
[  639.3 KiB ] /usr/portage/distfiles/libpng-1.2.56.tar.xz
[  105.6 KiB ] /usr/portage/distfiles/kscreenlocker-5.8.3.tar.xz
[  383.5 KiB ] /usr/portage/distfiles/ru.xpi
[   53.1 KiB ] /usr/portage/distfiles/milou-5.8.3.tar.xz
[  558.1 KiB ] /usr/portage/distfiles/libksysguard-5.8.3.tar.xz
[    4.3 MiB ] /usr/portage/distfiles/oxygen-5.8.3.tar.xz
[   72.7 MiB ] /usr/portage/distfiles/jre-8u112-linux-i586.tar.gz
[    5.4 MiB ] /usr/portage/distfiles/openldap-2.4.43.tgz
[   43.6 KiB ] /usr/portage/distfiles/libmpack-1.0.2.tar.gz
[  348.0 KiB ] /usr/portage/distfiles/powerdevil-5.8.3.tar.xz
[   49.3 MiB ] /usr/portage/distfiles/firefox-45.4.0esr.tar.bz2
[   34.0 KiB ] /usr/portage/distfiles/kdecoration-5.8.3.tar.xz
[    1.2 MiB ] /usr/portage/distfiles/kinfocenter-5.8.3.tar.xz
[    0 Bytes ] /usr/portage/distfiles/.listing
[   11.1 MiB ] /usr/portage/distfiles/kdelibs-4.14.24.tar.xz
[   31.7 MiB ] /usr/portage/distfiles/breeze-5.8.3.tar.xz
[   70.2 MiB ] /usr/portage/distfiles/jre-8u112-linux-x64.tar.gz
[  146.5 KiB ] /usr/portage/distfiles/kde-gtk-config-5.8.3.tar.xz
========================================================================================================================
[  499.6 MiB ] Total size
[    0 Bytes ] Removed size

real    2m14.227s
user    0m3.523s
sys     0m7.420s

В целом списки совпадают, наверное eclean-dist втихоря хочет удалить portage-*, а .lock файлы и .listing не трогает

[ 0 Bytes ] /usr/portage/distfiles/.qtwebkit-opensource-src-5.6.2.tar.xz.portage_lockfile
[ 0 Bytes ] /usr/portage/distfiles/.listing

Можно вывод отключить того, что он парсит? На это время, наверняка, дополнительное тратится. Второй запуск за пару секунд отрабатывает, как и eclean. Он результат где-то хранит? Где eclean хранит, я не нашёл. А вот почему подсчёт свободного места так сильно отличается не знаю.

Исходная версия grem, :

По результатам работы:

# time eclean-dist -p
 * Building file list for distfiles cleaning...
 * Here are the distfiles that would be deleted:
 [    8.4 M ] ImageMagick-6.9.6-6.tar.xz
 [   54.4 M ] VBoxGuestAdditions_4.3.38.iso
 [   31.7 M ] breeze-5.8.3.tar.xz
 [   49.3 M ] firefox-45.4.0esr.tar.bz2
 [   21.3 M ] icu4c-57_1-src.tgz
 [   72.7 M ] jre-8u112-linux-i586.tar.gz
 [   70.2 M ] jre-8u112-linux-x64.tar.gz
 [   80.8 K ] kactivitymanagerd-5.8.3.tar.xz
 [  474.7 K ] kde-cli-tools-5.8.3.tar.xz
 [  146.5 K ] kde-gtk-config-5.8.3.tar.xz
 [   34.0 K ] kdecoration-5.8.3.tar.xz
 [   11.1 M ] kdelibs-4.14.24.tar.xz
 [    1.2 M ] kinfocenter-5.8.3.tar.xz
 [  105.6 K ] kscreenlocker-5.8.3.tar.xz
 [  476.3 K ] ksysguard-5.8.3.tar.xz
 [    3.8 M ] kwin-5.8.3.tar.xz
 [   41.7 K ] libkdcraw-16.04.3.tar.xz
 [   90.7 K ] libkscreen-5.8.3.tar.xz
 [  558.1 K ] libksysguard-5.8.3.tar.xz
 [   43.6 K ] libmpack-1.0.2.tar.gz
 [  639.3 K ] libpng-1.2.56.tar.xz
 [    1.8 M ] libtasn1-4.8.tar.gz
 [   53.1 K ] milou-5.8.3.tar.xz
 [    5.4 M ] openldap-2.4.43.tgz
 [    4.3 M ] oxygen-5.8.3.tar.xz
 [    6.1 M ] plasma-desktop-5.8.3.tar.xz
 [   49.5 K ] plasma-integration-5.8.3.tar.xz
 [    6.6 M ] plasma-workspace-5.8.3.tar.xz
 [   39.9 K ] polkit-kde-agent-1-5.8.3.tar.xz
 [  348.0 K ] powerdevil-5.8.3.tar.xz
 [    1.4 M ] qd-2.3.14.tar.gz
 [  383.5 K ] ru.xpi
 [   47.8 K ] sddm-kcm-5.8.3.tar.xz
 [  154.3 K ] systemsettings-5.8.3.tar.xz
 ===========
 [  353.4 M ] Total space from 34 files would be freed in the distfiles directory
...
real    4m36.615s
user    0m23.971s
sys     0m20.088s

# time dfclean

[   21.3 MiB ] /usr/portage/distfiles/icu4c-57_1-src.tgz
[   72.8 MiB ] /usr/portage/distfiles/portage-20170119.tar.bz2
[  154.3 KiB ] /usr/portage/distfiles/systemsettings-5.8.3.tar.xz
[   54.4 MiB ] /usr/portage/distfiles/VBoxGuestAdditions_4.3.38.iso
[   73.3 MiB ] /usr/portage/distfiles/portage-20170307.tar.bz2
[  833 Bytes ] /usr/portage/distfiles/portage-20170307.tar.bz2.gpgsig
[    1.8 MiB ] /usr/portage/distfiles/libtasn1-4.8.tar.gz
[   90.7 KiB ] /usr/portage/distfiles/libkscreen-5.8.3.tar.xz
[   41.7 KiB ] /usr/portage/distfiles/libkdcraw-16.04.3.tar.xz
[    1.4 MiB ] /usr/portage/distfiles/qd-2.3.14.tar.gz
[   59 Bytes ] /usr/portage/distfiles/portage-20170307.tar.bz2.md5sum
[   55 Bytes ] /usr/portage/distfiles/portage-20170307.tar.bz2.umd5sum
[   59 Bytes ] /usr/portage/distfiles/portage-20170119.tar.bz2.md5sum
[  476.3 KiB ] /usr/portage/distfiles/ksysguard-5.8.3.tar.xz
[   47.8 KiB ] /usr/portage/distfiles/sddm-kcm-5.8.3.tar.xz
[   55 Bytes ] /usr/portage/distfiles/portage-20170119.tar.bz2.umd5sum
[    6.6 MiB ] /usr/portage/distfiles/plasma-workspace-5.8.3.tar.xz
[    8.4 MiB ] /usr/portage/distfiles/ImageMagick-6.9.6-6.tar.xz
[   80.8 KiB ] /usr/portage/distfiles/kactivitymanagerd-5.8.3.tar.xz
[    6.1 MiB ] /usr/portage/distfiles/plasma-desktop-5.8.3.tar.xz
[    0 Bytes ] /usr/portage/distfiles/.qtwebkit-opensource-src-5.6.2.tar.xz.portage_lockfile
[   39.9 KiB ] /usr/portage/distfiles/polkit-kde-agent-1-5.8.3.tar.xz
[  474.7 KiB ] /usr/portage/distfiles/kde-cli-tools-5.8.3.tar.xz
[    3.8 MiB ] /usr/portage/distfiles/kwin-5.8.3.tar.xz
[   49.5 KiB ] /usr/portage/distfiles/plasma-integration-5.8.3.tar.xz
[  639.3 KiB ] /usr/portage/distfiles/libpng-1.2.56.tar.xz
[  105.6 KiB ] /usr/portage/distfiles/kscreenlocker-5.8.3.tar.xz
[  383.5 KiB ] /usr/portage/distfiles/ru.xpi
[   53.1 KiB ] /usr/portage/distfiles/milou-5.8.3.tar.xz
[  558.1 KiB ] /usr/portage/distfiles/libksysguard-5.8.3.tar.xz
[    4.3 MiB ] /usr/portage/distfiles/oxygen-5.8.3.tar.xz
[   72.7 MiB ] /usr/portage/distfiles/jre-8u112-linux-i586.tar.gz
[    5.4 MiB ] /usr/portage/distfiles/openldap-2.4.43.tgz
[   43.6 KiB ] /usr/portage/distfiles/libmpack-1.0.2.tar.gz
[  348.0 KiB ] /usr/portage/distfiles/powerdevil-5.8.3.tar.xz
[   49.3 MiB ] /usr/portage/distfiles/firefox-45.4.0esr.tar.bz2
[   34.0 KiB ] /usr/portage/distfiles/kdecoration-5.8.3.tar.xz
[    1.2 MiB ] /usr/portage/distfiles/kinfocenter-5.8.3.tar.xz
[    0 Bytes ] /usr/portage/distfiles/.listing
[   11.1 MiB ] /usr/portage/distfiles/kdelibs-4.14.24.tar.xz
[   31.7 MiB ] /usr/portage/distfiles/breeze-5.8.3.tar.xz
[   70.2 MiB ] /usr/portage/distfiles/jre-8u112-linux-x64.tar.gz
[  146.5 KiB ] /usr/portage/distfiles/kde-gtk-config-5.8.3.tar.xz
========================================================================================================================
[  499.6 MiB ] Total size
[    0 Bytes ] Removed size

real    2m14.227s
user    0m3.523s
sys     0m7.420s

В целом списки совпадают, наверное eclean-dist втихоря хочет удалить portage-*, а .lock файлы и .listing не трогает

[ 0 Bytes ] /usr/portage/distfiles/.qtwebkit-opensource-src-5.6.2.tar.xz.portage_lockfile
[ 0 Bytes ] /usr/portage/distfiles/.listing

Можно вывод отключить того, что он парсит? На это время, наверняка, дополнительное тратится. Второй запуск за пару секунд отрабатывает, как и eclean. Он результат где-то хранит? Где eclean хранит, я не нашёл.