Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* Is it ok to use debugfs to dump some ucontext-level driver-defined info?
@ 2020-12-29 13:31 liweihang
  2020-12-31  7:59 ` Leon Romanovsky
  0 siblings, 1 reply; 6+ messages in thread
From: liweihang @ 2020-12-29 13:31 UTC (permalink / raw)
  To: linux-rdma@vger.kernel.org, jgg@ziepe.ca, leon@kernel.org
  Cc: linuxarm@openeuler.org

Hi all,

We want to dump some hns driver-defined information that belongs to a
process to keep track of current memory usage. For example, there is
a ucontext-level(process-level) memory pool to store WQE which is
shared by a lot of QPs, we want to record and query which QPs are using
this pool and how much space each QP is using.

rdmatool don't have a ucontext-level resource tracking currently, is it
ok to achieve that through debugfs?

This may looks like:

$ echo 1 > <dbgfs_dir>/hns_roce/hns_0/<pid>/qp
QPN        Total(kB)  SQ(kB)     SGE(kB)    RQ(kB)
110        6400       256        2048       4096
118        6400       256        2048       0

Or should it be achieved in rdmatool?

Thanks
Weihang

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-05  6:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-29 13:31 Is it ok to use debugfs to dump some ucontext-level driver-defined info? liweihang
2020-12-31  7:59 ` Leon Romanovsky
2020-12-31  9:36   ` liweihang
2020-12-31 10:38     ` Leon Romanovsky
2021-01-05  3:15       ` liweihang
2021-01-05  6:46         ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox