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
