version 1.1.2.7, 2012/02/28 09:42:57
|
version 1.1.2.8, 2012/02/28 10:34:43
|
Line 21 main(int argc, char **argv)
|
Line 21 main(int argc, char **argv)
|
mpool_t *mp; |
mpool_t *mp; |
void *addr; |
void *addr; |
int i; |
int i; |
|
u_long curr; |
|
|
for (i = 0; i < 3; i++) { |
for (i = 0; i < 3; i++) { |
addr = malloc(4000); |
addr = malloc(4000); |
Line 48 main(int argc, char **argv)
|
Line 49 main(int argc, char **argv)
|
// mpool_free(mp, addr, 0); |
// mpool_free(mp, addr, 0); |
} |
} |
|
|
|
mpool_getquota(mp, &curr, NULL); |
|
printf("___current=%lu\n", curr); |
|
|
printf("1) calls.act=%lu calls.inact=%lu calls.free=%lu; bytes.act=%lu bytes.inact=%lu bytes.free=%lu;\n", |
printf("1) calls.act=%lu calls.inact=%lu calls.free=%lu; bytes.act=%lu bytes.inact=%lu bytes.free=%lu;\n", |
mp->pool_calls.alloc, mp->pool_calls.cache, mp->pool_calls.free, |
mp->pool_calls.alloc, mp->pool_calls.cache, mp->pool_calls.free, |
mp->pool_bytes.alloc, mp->pool_bytes.cache, mp->pool_bytes.free); |
mp->pool_bytes.alloc, mp->pool_bytes.cache, mp->pool_bytes.free); |
Line 61 main(int argc, char **argv)
|
Line 65 main(int argc, char **argv)
|
mpool_statistics(mp, show); |
mpool_statistics(mp, show); |
|
|
mpool_purge(mp, 0); |
mpool_purge(mp, 0); |
|
|
|
mpool_getquota(mp, &curr, NULL); |
|
printf("___current=%lu\n", curr); |
|
|
printf("3) calls.act=%lu calls.inact=%lu calls.free=%lu; bytes.act=%lu bytes.inact=%lu bytes.free=%lu;\n", |
printf("3) calls.act=%lu calls.inact=%lu calls.free=%lu; bytes.act=%lu bytes.inact=%lu bytes.free=%lu;\n", |
mp->pool_calls.alloc, mp->pool_calls.cache, mp->pool_calls.free, |
mp->pool_calls.alloc, mp->pool_calls.cache, mp->pool_calls.free, |