landscape-client slows down login by 30s on machines with lots of interfaces

Bug #1950311 reported by James Troup
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Kevin Nasto

Bug Description

landscape-client on an Ubuntu Focal machine with a lot of interfaces (838) takes 30s to run.

$ /usr/bin/time --verbose sh /etc/update-motd.d/50-landscape-sysinfo

  System information as of Tue 09 Nov 2021 12:16:11 PM UTC

  System load: 10.29 Processes: 3287
  Usage of /: 60.2% of 91.54GB Users logged in: 1
  Memory usage: 19% IPv4 address for br-bondM:
  Swap usage: 0% IPv4 address for lxdbr0:
  Temperature: 53.0 C
        Command being timed: "sh /etc/update-motd.d/50-landscape-sysinfo"
        User time (seconds): 1.22
        System time (seconds): 28.69
        Percent of CPU this job got: 99%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:30.05
        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): 33720
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 276965
        Voluntary context switches: 41
        Involuntary context switches: 252
        Swaps: 0
        File system inputs: 16
        File system outputs: 0
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0

It doesn't get any better with a warm cache. A machine with less interfaces (60) takes ~1s.

Changed in landscape-client:
status: New → Confirmed
assignee: nobody → Kevin Nasto (silverdrake11)
status: Confirmed → In Progress
Revision history for this message
Kevin Nasto (silverdrake11) wrote :
Changed in landscape-client:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers