diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-03-10 19:59:07 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-03-12 05:32:06 -0700 |
commit | 58776c0800ab146b1dd9a8461a98ca719afff6ef (patch) | |
tree | 25a773f8a6fb0c73b638a79e1b481de227c08ad0 /libglusterfs/src/iobuf.h | |
parent | 08cc17a5528d0194bdb835e05e3950d5516274c3 (diff) | |
download | glusterfs-58776c0800ab146b1dd9a8461a98ca719afff6ef.tar.gz glusterfs-58776c0800ab146b1dd9a8461a98ca719afff6ef.tar.xz glusterfs-58776c0800ab146b1dd9a8461a98ca719afff6ef.zip |
iobuf: add a counter to keep track of request misses
requests can be denied if the size of the request is higher than the
available sizes.
Change-Id: Id1bf2a56de799ccb94f3791899f2e33f68cd1e2b
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 802047
Reviewed-on: http://review.gluster.com/2913
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'libglusterfs/src/iobuf.h')
-rw-r--r-- | libglusterfs/src/iobuf.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/libglusterfs/src/iobuf.h b/libglusterfs/src/iobuf.h index d0f8682861..46a54dbfc9 100644 --- a/libglusterfs/src/iobuf.h +++ b/libglusterfs/src/iobuf.h @@ -113,21 +113,17 @@ struct iobuf_pool { int arena_cnt; struct list_head arenas[GF_VARIABLE_IOBUF_COUNT]; - /* array of arenas. Each element of - the array is a list of arenas - holding iobufs of particular - page_size - */ + /* array of arenas. Each element of the array is a list of arenas + holding iobufs of particular page_size */ + struct list_head filled[GF_VARIABLE_IOBUF_COUNT]; - /* - array of arenas without free iobufs - */ + /* array of arenas without free iobufs */ struct list_head purge[GF_VARIABLE_IOBUF_COUNT]; - /* - array of of arenas which can be - purged - */ + /* array of of arenas which can be purged */ + + uint64_t request_misses; /* mostly the requests for higher + value of iobufs */ }; |