http://bugzilla.opensuse.org/show_bug.cgi?id=1130161 Bug ID: 1130161 Summary: Unusual high memory usage while zypper is executing inside of lxc Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: bugs+opensuse@lhpmail.us QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 800904 --> http://bugzilla.opensuse.org/attachment.cgi?id=800904&action=edit strace output Host: Proxmox 5.3-11 I'm experiencing high memory usage with zypper that can exhaust resource limitations. This is before a zypper run: # free -m total used free shared buff/cache available Mem: 1024 26 943 8 53 997 Swap: 1536 0 1536 This is after a zypper run: # time zypper search openssh real 2m37.467s user 0m24.734s sys 2m10.524s Majority of the time is spent 'Reading installed packages...'. See attached strace output. # free -m total used free shared buff/cache available Mem: 1024 691 302 6 30 332 Swap: 1536 2 1533 # top top - 07:59:02 up 6 min, 1 user, load average: 0.77, 0.90, 0.51 Tasks: 20 total, 1 running, 19 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 1048576 total, 308732 free, 708432 used, 31412 buff/cache KiB Swap: 1572864 total, 1570780 free, 2084 used. 340144 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 784 root 20 0 39248 3568 3060 R 0.333 0.340 0:00.02 top 1 root 20 0 74584 2196 388 S 0.000 0.209 0:00.52 systemd 42 root 20 0 67464 2264 1712 S 0.000 0.216 0:00.07 systemd-journal 49 root 20 0 101400 196 0 S 0.000 0.019 0:00.00 lvmetad 83 message+ 20 0 43548 1064 396 S 0.000 0.101 0:00.13 dbus-daemon 99 root 20 0 45652 1440 248 S 0.000 0.137 0:00.02 wickedd-dhcp6 100 root 20 0 45656 1524 332 S 0.000 0.145 0:00.02 wickedd-dhcp4 102 root 20 0 59364 856 292 S 0.000 0.082 0:00.04 systemd-logind 103 root 20 0 45652 1576 392 S 0.000 0.150 0:00.02 wickedd-auto4 136 root 20 0 45772 1732 388 S 0.000 0.165 0:00.03 wickedd 155 root 20 0 45680 1600 392 S 0.000 0.153 0:00.02 wickedd-nanny 619 root 20 0 6420 292 184 S 0.000 0.028 0:00.00 agetty 620 root 20 0 111152 1276 396 S 0.000 0.122 0:00.02 login 621 root 20 0 6420 292 184 S 0.000 0.028 0:00.00 agetty 622 root 20 0 6420 296 184 S 0.000 0.028 0:00.00 agetty 703 root 20 0 61272 928 340 S 0.000 0.089 0:00.02 master 704 postfix 20 0 63336 1440 828 S 0.000 0.137 0:00.00 pickup 705 postfix 20 0 63588 1680 844 S 0.000 0.160 0:00.00 qmgr 718 root 20 0 18536 968 392 S 0.000 0.092 0:00.00 cron 720 root 20 0 16016 4372 2032 S 0.000 0.417 0:00.07 bash Note, from the strace output, there are over 10 million calls to lstat: # grep lstat zypper.trace| wc -l 10988563 -- You are receiving this mail because: You are on the CC list for the bug.