mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05:00
Review manpage about memory size
This commit is contained in:
parent
529226087a
commit
eb5ac437b2
5 changed files with 51 additions and 21 deletions
|
|
@ -77,7 +77,15 @@ void usage(void)
|
|||
void memory(void)
|
||||
{
|
||||
msg_tag("memory:used:%" PRIu64 "\n", (uint64_t)malloc_counter());
|
||||
|
||||
/* size of the block + the size of the blockarr pointer to it */
|
||||
msg_tag("memory:block:%" PRIu64 "\n", (uint64_t)(sizeof(struct snapraid_block) + sizeof(void*)));
|
||||
|
||||
/* size of the file + the size of the 3 hashtables pointers to it, * 2 for the hashtable grow factor */
|
||||
msg_tag("memory:file:%" PRIu64 "\n", (uint64_t)(sizeof(struct snapraid_file) + 3*2*sizeof(void*)));
|
||||
|
||||
msg_progress("Using %u MiB of memory.\n", (unsigned)(malloc_counter() / 1024 / 1024));
|
||||
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue