Re: /proc/kcore size incorrect ? (OT)

From: Tony Luck
Date: Tue Oct 25 2005 - 13:04:22 EST


> My concerns were about if the size of /proc/kcore should be what it is
> now, and why...

/proc/kcore is an ELF format file (try using objdump(1) to read
headers from it).

The data within the file may be sparse (especially on discontig
and NUMA systems). So the size just represents the end of
the highest addressed memory section. E.g. on my desktop:

$ ls -l /proc/kcore
-r-------- 1 root root 4611686019496083456 Oct 25 09:52 /proc/kcore

-Tony
-
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/