https://bugzilla.opensuse.org/show_bug.cgi?id=1193549

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody;

I'd like to publicize the following bug that I reported for opensuse:
[kernel 5.15][btrfs compression property] zypper taking too long to install one package
https://bugzilla.opensuse.org/show_bug.cgi?id=1193549

I got support from the btrfs developer Filipe Manana and the issue is well understood regarding this file system but, since the root cause wasn't found, maybe it is of interest for the VFS kernel subsystems.


TL;DR:
comment #46
Filipe Manana 2022-01-05 10:54:16 UTC
(In reply to Bruno Damasceno Freire from comment #45)
> k5.14.14-3 : @inode_evictions: 1715
> k5.15.12-1 : @inode_evictions: 166106
> k5.16~rc8  : @inode_evictions: 1715
That confirms the hypothesis. Somehow a 5.15 is triggering ~100x inode evictions, which will result in renames doing unnecessary inode logging.
As to why that is happening, I have no idea if anything in mm or vfs changed in some 5.15 release that results in triggering a lot more evictions.


To reproduce:
I am an opensuse user, so I'm not sure on how to reproduce the issue on other distros.
Here are some updated instructions to reproduce it on tumbleweed:

SETUP--------------------------------------------
1 get the installation image
  wget http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-x86_64-Current.iso
2 create a basic VM
  11GB storage shold be enought for the tumbleweed installer
3 install a server or a desktop version with btrfs
  no btrfs snapshots needed
4 downgrade the kernel if its > 5.15 (should be available for the next 3 weeks)
  wget http://download.opensuse.org/history/20220106/tumbleweed/repo/oss/x86_64/kernel-default-5.15.12-1.2.x86_64.rpm
  zypper in --force kernel-default-5.15.12-1.2.x86_64.rpm
  boot the 5.15 kernel
5 get the affected package: libKF5Emoticons5 (4 minutes), gutenprint (32 minutes)...
  env LANGUAGE=eng zypper info libKF5Emoticons5 | grep Version
  wget http://download.opensuse.org/tumbleweed/repo/oss/x86_64/libKF5Emoticons5-(version).x86_64.rpm
TEST---------------------------------------------
6 install the package: it should take a few seconds
  rpm --force -U -nodeps ./libKF5Emoticons5-(version).x86_64.rpm
7 enable any compression (zlib, lzo, zstd) on the package's destination folder with most files
  optional: rpm -ql libKF5Emoticons5 | less
  btrfs property set /usr/share/emoticons/EmojiOne compression zstd:1
8 retry to install: it should take much longer now !!! <<<<<
  rpm --force -U -nodeps ./libKF5Emoticons5-(version).x86_64.rpm
9 disable compression
  btrfs property set /usr/share/emoticons/EmojiOne compression ""
10 retry to install: it should take a few secons again
   rpm --force -U -nodeps ./libKF5Emoticons5-(version).x86_64.rpm


Alternatively:
1 get an installation image with a 5.15 kernel
  http://opensuse.zq1.de/history/20220106/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220106-Media.iso
3 install a server or a desktop version with btrfs
  no btrfs snapshots needed
  To get the files (and the 5.15 kernel) from the image you:
  a) should not activate repositories or
  b) should not enable network


TIA, Bruno



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux