viperltoolkitpl
Contributor
Contributor

Problems parsing "memory usage" of resource pools

Hi there!

I am developing a few programs with the viperl toolkit.

At this time i try to get memory usage splitted by resource pools but im idealess how should i go on.

There are a few things which i dont understand:

-> Why can be overallUsage be negative? What does this mean?

-> How to calculate memory used/allocated for this resource pool

\-- Here are some dumper of data --

(Im using ResourcePool->runtime->memory)

Total Byte available in cluster: 34007343104

$VAR1 = bless( {

'maxUsage' => '0',

'reservationUsed' => '1215270912',

'unreservedForPool' => '26334109696',

'reservationUsedForVm' => '1215270912',

'overallUsage' => '0',

'unreservedForVm' => '26334109696'

}, 'ResourcePoolResourceUsage' );

$VAR1 = bless( {

'maxUsage' => '0',

'reservationUsed' => '2362195968',

'unreservedForPool' => '26334109696',

'reservationUsedForVm' => '2362195968',

'overallUsage' => '0',

'unreservedForVm' => '26334109696'

}, 'ResourcePoolResourceUsage' );

$VAR1 = bless( {

'maxUsage' => '0',

'reservationUsed' => '566333440',

'unreservedForPool' => '26334109696',

'reservationUsedForVm' => '566333440',

'overallUsage' => '-1612709888',

'unreservedForVm' => '26334109696'

}, 'ResourcePoolResourceUsage' );

Btw. why are the counters arent working sometimes? ( Have this problem with cpu usage too - counters are zero sometimes)

Thanks in advice for your help!

Lukas

Message was edited by:

viperltoolkitplayer

0 Kudos
1 Reply
SaranshG
Enthusiast
Enthusiast

Please send me the script used by you so that I can recreate the problem.

Moreover to calculate memory used/allocated for a resource pool, first you need to make a data object "ResourceConfigSpec" of the resource pool and then retrieve property "memoryAllocation".

0 Kudos