]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: added stats to track and display receive side memory usage
authorVenkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Thu, 8 Aug 2013 05:15:05 +0000 (22:15 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 8 Jul 2015 20:59:41 +0000 (13:59 -0700)
commit47d7d46bbe9adb5fec9ec24c8c5b467e9ad5687b
tree246cae9c9f216a95db0e7ca04d786bed72cdc611
parentc2d4ae54ba30a7dd213d287d819409dc7c712f15
RDS: added stats to track and display receive side memory usage

Added these stats:
1. per-connection stat for number of receive buffers in cache
2. global stat for the same across all connections
3. number of bytes in socket receive buffer
Since stats are implemented using per-cpu variables and RDS currently
does unsigned arithmetic to add them up, separate counters (one for
addition and one for subtraction) are used for (2) and (3).
In the future we might change it to signed computation.

Orabug: 17045536

Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Signed-off-by: Bang Nguyen <bang.nguyen@oracle.com>
(cherry picked from commit 4631300fcf86d459d5dbb09791ff9198c51feab1)
net/rds/ib.h
net/rds/ib_recv.c
net/rds/ib_stats.c
net/rds/rds.h
net/rds/recv.c
net/rds/stats.c