Re: /proc/kcore size

From: Luck, Tony
Date: Mon Jan 12 2004 - 13:02:30 EST


> Problem: it detects the memory amount in the box by stat'ing /proc/kcore.
> Thats not the problem, but that the box has 1Gb of memory, and kcore is just
> 896Mb big.

It may not be the specific problem that you have now, but it is a
problem in general. The size of /proc/kcore may be a good
approximation for the amount of memory on machines that have
contiguous physical memory starting at a base physical address
of 0x0, but on an increasing number of machines it may give
a grossly inflated value (perhaps an SGI Altix user will post
the output from "ls -l /proc/kcore").

-Tony Luck

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/