History

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.

Jakub Kicinski committed 2 years ago

Commit 7aee8421 parent d2ef6aa5 files · +36 −4Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/netdev.h+2−0
@@ -68,6 +68,8 @@ enum { · 67 unmodified lines
68 NETDEV_A_PAGE_POOL_ID = 1,68 NETDEV_A_PAGE_POOL_ID = 1,
69 NETDEV_A_PAGE_POOL_IFINDEX,69 NETDEV_A_PAGE_POOL_IFINDEX,
70 NETDEV_A_PAGE_POOL_NAPI_ID,70 NETDEV_A_PAGE_POOL_NAPI_ID,
71 NETDEV_A_PAGE_POOL_INFLIGHT,
72 NETDEV_A_PAGE_POOL_INFLIGHT_MEM,
71 73
72 __NETDEV_A_PAGE_POOL_MAX,74 __NETDEV_A_PAGE_POOL_MAX,
73 NETDEV_A_PAGE_POOL_MAX = (__NETDEV_A_PAGE_POOL_MAX - 1)75 NETDEV_A_PAGE_POOL_MAX = (__NETDEV_A_PAGE_POOL_MAX - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t