[torqueusers] Inaccurate memory report in pbsnodes

Cristina Ururahy ururahy at tecgraf.puc-rio.br
Fri Mar 4 10:52:02 MST 2005


Hi,

Thank you a lot for taking a look at that! :-)

=================================================
> > Which distribution and kernel are you using : uname -a
=================================================
bw5mpet:
Linux bw5mpet 2.4.9-31.EPenterprise #1 SMP Thu Jul 10 12:41:18 GMT+3 2003 i686
unknown

bw7mpet:
Linux bw7mpet 2.4.18-27.7.xsmp #1 SMP Fri Mar 14 05:52:30 EST 2003 i686 
unknown
=================================================
> > and how many physical memory did you have    : more /proc/meminfo
=================================================
bw5mpet:
        total:    used:    free:  shared: buffers:  cached:
Mem:  4215582720 1453342720 2762240000        0 136871936 898838528
Swap: 8389738496        0 8389738496
MemTotal:      4116780 kB
MemFree:       2697500 kB
MemShared:           0 kB
Buffers:        133664 kB
Cached:         877772 kB
SwapCached:          0 kB
Active:         330900 kB
Inact_dirty:    680536 kB
Inact_clean:         0 kB
Inact_target:  1114112 kB
HighTotal:     3276736 kB
HighFree:      2356528 kB
LowTotal:       840044 kB
LowFree:        340972 kB
SwapTotal:     8193104 kB
SwapFree:      8193104 kB

bw7mpet:
        total:    used:    free:  shared: buffers:  cached:
Mem:  3934429184 1972264960 1962164224        0 44158976 1754578944
Swap: 4294885376        0 4294885376
MemTotal:      3842216 kB
MemFree:       1916176 kB
MemShared:           0 kB
Buffers:         43124 kB
Cached:        1713456 kB
SwapCached:          0 kB
Active:         278268 kB
Inact_dirty:   1143464 kB
Inact_clean:    396168 kB
Inact_target:   363580 kB
HighTotal:     2981864 kB
HighFree:      1201920 kB
LowTotal:       860352 kB
LowFree:        714256 kB
SwapTotal:     4194224 kB
SwapFree:      4194224 kB
Committed_AS:    93148 kB
=================================================

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

>From my previous email:
> I took a look at ./resmom/linux/mom_mach.c
> and it seems that totmem is calculated as
> (ulong)(mm->mem_total + mm->swap_total) >> 10
>
> I believe a
> (ulong)((mm->mem_total >> 10) + (mm->swap_total >> 10))
> would do the trick, but I wouldn't like to ask my client to fix this on his 
> own... :-/
> Any chances of having a patch for that? 

Does it make any sense?

Thanks a lot,
Cristina

On Friday 04 March 2005 11:01, Philippe Weill wrote:
> Cristina Ururahy wrote:
> > Hi there,
> >
> > Any news on that? :-(
>
> Which distribution and kernel are you using : uname -a
> and how many physical memory did you have    : more /proc/meminfo
> There is something strange
> Is hyperthreading activated on your computer because if yes it's should
> report four processors
>
> > --Cristina
> >
> > On Wednesday 02 March 2005 10:10, Cristina Ururahy wrote:
> >>Hi,
> >>
> >>>>>My computer has 6Gb (RAM + SWAP), but when I use pbsnodes, it seems
> >>>>>
> >>>>>>to have 2G only.
> >>>>>
> >>>>>What's the CPU you're running on ?
> >>>>
> >>>>Dual Zion 3,06 GHz
> >>>>Dual Zion 2.8 GHz
> >>
> >>processor       : 0
> >>vendor_id       : GenuineIntel
> >>cpu family      : 15
> >>model           : 2
> >>model name      : Intel(R) Xeon(TM) CPU 2.80GHz
> >>stepping        : 7
> >>cpu MHz         : 2791.054
> >>cache size      : 512 KB
> >>
> >>processor       : 1
> >>vendor_id       : GenuineIntel
> >>cpu family      : 15
> >>model           : 2
> >>model name      : Intel(R) Xeon(TM) CPU 2.80GHz
> >>stepping        : 7
> >>cpu MHz         : 2791.054
> >>cache size      : 512 KB




More information about the torqueusers mailing list