Don't use Active/Inactive pages from /proc/meminfo. They don't represent the actual size of active/inactive memory.