summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2014-03-29 06:59:39 -0700
committerAnand Avati <avati@redhat.com>2014-05-05 17:28:29 -0700
commit7fba3a88f1ced610eca0c23516a1e720d75160cd (patch)
tree245bc7bda320b7894a0f7806087175faaf1bbce7 /api/src
parent71ad38b3f86bdb0c4e9120b58ff451a6711ead9d (diff)
mem-accounting: enable memory accounting by default
memory accounting are constant time operations which involve a few pointer dereferences and integer increments (no loops or searches etc.) benefits of having memory usage info outweigh the minor accounting overheads Change-Id: If9bc6db5ffd0e00f0fd64b2f6eed094bf3543996 BUG: 1089216 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/7543 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index b69d785a8ab..cefbc645eb3 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -522,10 +522,6 @@ glfs_new (const char *volname)
return NULL;
}
-#ifdef DEBUG
- gf_mem_acct_enable_set (ctx);
-#endif
-
/* first globals init, for gf_mem_acct_enable_set () */
ret = glusterfs_globals_init (ctx);
if (ret)
d='n150' href='#n150'>150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228