[torqueusers] Inaccurate memory report in pbsnodes
David Jackson
jacksond at clusterresources.com
Tue Mar 8 16:02:02 MST 2005
Cristina,
The requested changes have been made to totmem and also to availmem
which potentially could suffer from a similar fate. These changes are
in the latest TORQUE-1.2.0p2 snapshot.
Dave
On Tue, 2005-03-08 at 11:19 -0300, Cristina Ururahy wrote:
> Hi there,
>
> I don't mean to be a nag, but I would like to know your opinion about changing
> the line
> > (ulong)(mm->mem_total + mm->swap_total) >> 10
>
> to
>
> > (ulong)((mm->mem_total >> 10) + (mm->swap_total >> 10))
>
> in src/resmom/linux/mom_mach.c
> static char *totmem( struct rm_attribute *attrib) {
> ...
> }
>
> It doesn't seem to be a coincidence that 6G won't fit in 4 bytes and that
> 6419780K - 2^32 = 2225476K
> which is the answer I get...
>
> >From pbsnodes I get
> totmem=2225476kb,
> availmem=4070016kb,
> physmem=2323256kb
>
> Does it make any sense?
>
> Thanks,
> Cristina
>
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://supercluster.org/mailman/listinfo/torqueusers
More information about the torqueusers
mailing list