Re: mem_node memory usage in 2.x

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 22 Apr 2008 21:26:48 +0200

ons 2008-04-23 klockan 00:58 +0800 skrev Adrian Chadd:
> In any case, Guido's response of "its the number of pages!" explained the
> base discrepancy. The unfortunate issue here is that "pagesize" can be variable
> and one would need to find the system/process' pagesize (and hope its constant!)
> to multiply that number by to get an accurate result.

There is a POSIX defined way of getting the page size... checking..
sysconf(_SC_PAGESIZE).

I doubt you will encounter any system with variable page size where a
single process may have pages of different sizes..

Regards
Henrik
Received on Tue Apr 22 2008 - 19:27:22 MDT

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