memory usage values don't add up in compute_nodes table

Bug #924965 reported by Major Hayden
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned

Bug Description

I found this within the compute_nodes table today:

mysql> SELECT memory_mb,memory_mb_used,free_ram_mb FROM compute_nodes WHERE service_id=153\G
     memory_mb: 32763
memory_mb_used: 1689
   free_ram_mb: 32251

If I'm trying to gather reports with this data, I'd assume this to be true:

  memory_mb - memory_mb_used = free_ram_mb

However, that math doesn't hold true with the values from the database. In this situation, the scheduler was started with '--reserved_host_memory_mb=2047' so the hypervisor wasn't oversubscribed.

Would it be possible to get the reserved host memory adjustment into the database itself so that reports on total memory usage could be gathered from the database?

Revision history for this message
Chris Behrens (cbehrens) wrote :

I don't think it should go in the DB. One may want to do something special with the reserve in filter rules, etc.

Also: The compute_node data is a work in progress. It's currently purposely not accurate.... until we finish the code that uses it.

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Chris: with your comment in mind, what should we do with this bug report? Wishlist?

Tom Fifield (fifieldt)
Changed in nova:
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

I think cbehrens answer is more a WontFix. Please reopen (set back to New) if you disagree :)

Changed in nova:
status: Confirmed → Won't Fix
Revision history for this message
Major Hayden (rackerhacker) wrote :

I'll concede. ;)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.