Bug 1223985 - zypper-changelog-plugin exhausts all memory
Summary: zypper-changelog-plugin exhausts all memory
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Zoltan Balogh
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-06 19:37 UTC by C K
Modified: 2024-06-04 04:14 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description C K 2024-05-06 19:37:19 UTC
Even with only one available update pending, the changelog plugin uses all available memory and is then killed by the kernel:

-----------------------------------------------
$ zypper list-updates
v |  Update repository | ansible | 2.9.27-bp155.2.16 | 2.9.27-150000.1.17.2 | noarch

$ /usr/bin/time -v zypper changelog --update
'/usr/bin/zypper-changelog' was killed by signal 9 (Killed)
Command exited with non-zero status 137
        Command being timed: "zypper changelog --update"
        User time (seconds): 13.42
        System time (seconds): 1.82
        Percent of CPU this job got: 96%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:15.84
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 3516412
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 583
        Minor (reclaiming a frame) page faults: 643267
        Voluntary context switches: 19144
        Involuntary context switches: 2383
        Swaps: 0
        File system inputs: 508840
        File system outputs: 256
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 137
-----------------------------------------------

That's 3.3 GB of memory here, a bit too much :)


$ rpm -q zypper-changelog-plugin zypper
zypper-changelog-plugin-0.3-150500.1.1.noarch
zypper-1.14.71-150400.3.45.2.x86_64
Comment 1 Benjamin Zeller 2024-05-07 06:37:04 UTC
Forwarding the bug to the changelog plugin maintainer
Comment 2 Zoltan Balogh 2024-05-22 06:07:56 UTC
I have an improved version of the tool under testing. It would be helpful to test in different environments with different update state.
Comment 3 Zoltan Balogh 2024-06-04 04:14:57 UTC
The 0.4-1.1 version is released in Factory/openSUSE Tumblweed.