Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-55268

Slow start when many routes are present

    • No
    • Moderate
    • rhel-sst-network-management
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Given a system with millions of routes in the routing table and NetworkManager configured to handle large-scale route management,

      When NetworkManager starts,

      Then NetworkManager should efficiently ignore irrelevant route dumps during start-up and only process the routes that are necessary for the system’s functionality.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Integration tests are written and pass
      • The code is part of a downstream build attached to an errata
      Show
      Given a system with millions of routes in the routing table and NetworkManager configured to handle large-scale route management, When NetworkManager starts, Then NetworkManager should efficiently ignore irrelevant route dumps during start-up and only process the routes that are necessary for the system’s functionality. Definition of Done: The implementation meets the acceptance criteria Integration tests are written and pass The code is part of a downstream build attached to an errata
    • None
    • None
    • None

      When there are lot of routes added to the system (like millions) NetworkManager takes a lot time to start. If TRACE logs are enabled, additionally to being even slower (for obvious reasons), these messages are seen:

      ```
      <trace> [1724148515.1636] platform-linux: rtnl: recvmsg: new message RTM_NEWROUTE, flags multi,dump_filtered, seq 4
      <trace> [1724148515.1636] platform-linux: event-notification: RTM_NEWROUTE, flags multi,dump_filtered, seq 4: ignore
      ```

      Recently Beniamino added a patch to avoid dumping all routes from the kernel, but only those that we are interested in: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1978. It works well for cache resyncs, but it seems that it's not being used for the start up.

              rh-ee-sfaye Stanislas Faye
              ihuguet@redhat.com Inigo Huguet
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: