xdp-newbies.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: How to calculate the actual size of the memory occupied by the map in the bpf program?
       [not found] <CA+hDufANB4-u3Hb2ZLX-3P3KMQkLqGub6g7y9LHgkmLmHjKL5Q@mail.gmail.com>
@ 2023-07-28  3:51 ` 越峰裴
  0 siblings, 0 replies; only message in thread
From: 越峰裴 @ 2023-07-28  3:51 UTC (permalink / raw)
  To: xdp-newbies

 The value of memlock can be seen through bpftool map, but this number
is not the actual size of the map, but only the data size of key and
value.

 Is there any way to estimate the actual size of the map in memory
based on the size of max_entries and key|value?

 Is there any way to know the actual size of each map in the current
xdp program?

 Best Regards
 Dalu Pay

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-28  3:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CA+hDufANB4-u3Hb2ZLX-3P3KMQkLqGub6g7y9LHgkmLmHjKL5Q@mail.gmail.com>
2023-07-28  3:51 ` How to calculate the actual size of the memory occupied by the map in the bpf program? 越峰裴

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).