Re: mem_node memory usage in 2.x

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 22 Apr 2008 19:35:45 +0800

On Tue, Apr 22, 2008, Guido Serassio wrote:

> >(Linux, Solaris, Windows? :) give the above a whirl and let me know what
> >the
> >output is?
>
> This code is not so clean for Windows: no rusage(), no bzero() and
> some include files are missing ...

Oh, I know it won't compile for Windows. I really should get a Windows
development environment together..

> But I'm getting strange results related to the machine memory usage/size:
>
> Windows XP Professional x64 SP2 with 2 GB RAM
> C:\work\mem-size\Release>memsize.exe test1 131072
> allocating 12, then 4096 byte structures 131072 times..
> RSS: 31321
> C:\work\mem-size\Release>memsize.exe test2 131072
> allocating 4108 byte structure 131072 times..
> RSS: 30183

yeah, thats pretty invalid. :) I wonder if your method for returning
RSS is valid.

Put a getchar() call in before the exit(0); then monitor memory
usage in taskman?

Adrian

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
Received on Tue Apr 22 2008 - 12:46:58 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 30 2008 - 12:00:07 MDT