|
|
| version 1.3, 2015/06/24 23:37:16 | version 1.3.2.1, 2015/06/25 16:49:33 |
|---|---|
| Line 23 main(int argc, char **argv) | Line 23 main(int argc, char **argv) |
| mpool_t *mp; | mpool_t *mp; |
| void *addr; | void *addr; |
| int i; | int i; |
| u_long curr; | u_long curr, real; |
| printf("whether default memory mapper is elwix? %d\n", elwix_mm_inuse()); | printf("whether default memory mapper is elwix? %d\n", elwix_mm_inuse()); |
| Line 39 main(int argc, char **argv) | Line 39 main(int argc, char **argv) |
| return 1; | return 1; |
| } | } |
| /* | /* |
| mpool_getquota(mp, &curr, NULL); | mpool_getquota(mp, &curr, NULL, NULL); |
| printf("___current=%lu\n", curr); | printf("___current=%lu\n", curr); |
| */ | */ |
| Line 57 main(int argc, char **argv) | Line 57 main(int argc, char **argv) |
| // mpool_free(mp, addr, 0); | // mpool_free(mp, addr, 0); |
| } | } |
| mpool_getquota(mp, &curr, NULL); | mpool_getquota(mp, &curr, &real, NULL); |
| printf("___current=%lu\n", curr); | printf("___current=%lu ___real=%lu\n", curr, real); |
| printf("0) calls.act=%lu calls.inact=%lu calls.free=%lu; bytes.act=%lu bytes.inact=%lu bytes.free=%lu;\n", | printf("0) 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, |
| Line 68 main(int argc, char **argv) | Line 68 main(int argc, char **argv) |
| addr = mpool_realloc(mp, addr, 5010, "|||||||||||||"); | addr = mpool_realloc(mp, addr, 5010, "|||||||||||||"); |
| if (!addr) | if (!addr) |
| printf("Error:: #%d - %s\n", elwix_GetErrno(), elwix_GetError()); | printf("Error:: #%d - %s\n", elwix_GetErrno(), elwix_GetError()); |
| mpool_getquota(mp, &curr, NULL); | mpool_getquota(mp, &curr, &real, NULL); |
| printf("addr=%p_current=%lu\n", addr, curr); | printf("addr=%p_current=%lu_real=%lu\n", addr, curr, real); |
| 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, |
| Line 87 main(int argc, char **argv) | Line 87 main(int argc, char **argv) |
| mpool_purge(mp, 0); | mpool_purge(mp, 0); |
| mpool_getquota(mp, &curr, NULL); | mpool_getquota(mp, &curr, &real, NULL); |
| printf("___current=%lu\n", curr); | printf("___current=%lu ___real=%lu\n", curr, real); |
| 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, |