Performance degradation with libseccomp and xz-compressed pages
Hello! I've found out that man-db with enabled libseccomp works very slowly on ROSA Linux rosa2021.1:
[root@rosa2019 ~]# rm -fr /var/cache/man/*
[root@rosa2019 ~]# time MAN_DISABLE_SECCOMP=1 mandb -q
real 4m10,334s
user 1m41,099s
sys 3m33,962s
[root@rosa2019 ~]# rm -fr /var/cache/man/*
[root@rosa2019 ~]# time mandb -q
real 9m30,939s
user 6m10,798s
sys 6m23,082s
[root@rosa2019 ~]#
man-db-2.10.2
All mans are compressed with xz. Build options are the following:
%configure \
--with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \
--disable-setuid \
--with-pager="less -X" \
--disable-cache-owner \
--with-lzip=lzip \
--with-bzip2=%{_bindir}/bzip2 \
--with-gzip=%{_bindir}/gzip \
--with-xz=%{_bindir}/xz \
--with-zstd=%{_bindir}/zstd \
--with-override-dir=overrides \
--with-libseccomp
Edited by Colin Watson