Commit Graph

3 Commits

Author SHA1 Message Date
Petr Oros 3c3422e0e9 net: page_pool: report when page pool was destroyed
JIRA: https://issues.redhat.com/browse/RHEL-31941

Upstream commit(s):
commit 69cb4952b6f6a226c1c0a7ca400398aaa8f75cf2
Author: Jakub Kicinski <kuba@kernel.org>
Date:   Sun Nov 26 15:07:37 2023 -0800

    net: page_pool: report when page pool was destroyed

    Report when page pool was destroyed. Together with the inflight
    / memory use reporting this can serve as a replacement for the
    warning about leaked page pools we currently print to dmesg.

    Example output for a fake leaked page pool using some hacks
    in netdevsim (one "live" pool, and one "leaked" on the same dev):

    $ ./cli.py --no-schema --spec netlink/specs/netdev.yaml \
               --dump page-pool-get
    [{'id': 2, 'ifindex': 3},
     {'id': 1, 'ifindex': 3, 'destroyed': 133, 'inflight': 1}]

    Tested-by: Dragos Tatulea <dtatulea@nvidia.com>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Signed-off-by: Petr Oros <poros@redhat.com>
2024-05-16 19:27:55 +02:00
Petr Oros acb72c024e net: page_pool: report amount of memory held by page pools
JIRA: https://issues.redhat.com/browse/RHEL-31941

Upstream commit(s):
commit 7aee8429eedd0970d8add2fb5b856bfc5f5f1fc1
Author: Jakub Kicinski <kuba@kernel.org>
Date:   Sun Nov 26 15:07:36 2023 -0800

    net: page_pool: report amount of memory held by page pools

    Advanced deployments need the ability to check memory use
    of various system components. It makes it possible to make informed
    decisions about memory allocation and to find regressions and leaks.

    Report memory use of page pools. Report both number of references
    and bytes held.

    Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Signed-off-by: Petr Oros <poros@redhat.com>
2024-05-16 19:27:55 +02:00
Petr Oros a4e8ab078c net: page_pool: id the page pools
JIRA: https://issues.redhat.com/browse/RHEL-31941

Upstream commit(s):
commit f17c69649c698e4df3cfe0010b7bbf142dec3e40
Author: Jakub Kicinski <kuba@kernel.org>
Date:   Sun Nov 26 15:07:29 2023 -0800

    net: page_pool: id the page pools

    To give ourselves the flexibility of creating netlink commands
    and ability to refer to page pool instances in uAPIs create
    IDs for page pools.

    Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Reviewed-by: Shakeel Butt <shakeelb@google.com>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Signed-off-by: Petr Oros <poros@redhat.com>
2024-05-16 19:27:55 +02:00