05-10-04 10:44 PM
"seand" schrieb
> Hi all,
>
> On a gnu/linux system, sysinfo()(3) and free(1) return diff
> result ...
>
hard to say, without the source code, but
(1) did you take the trouble to have a look at the man-page
(2) did you take into account that sysinfo
.. Since Linux 2.3.23(i386), 2.3.48 (all architectures)
the structure is
struct sysinfo {
..
unsigned long totalram;
..
unsigned int mem_unit;
..
and the sizes are given as multiples of
mem_unit bytes. ...
(according to man sysinfo)
Perhaps this can be a start towards the explanation.
HTH
Martin
[ Post a follow-up to this message ]
|