getting memsize