[Tmem-devel] tmem how to get current usage in megabytes?

Vasiliy G Tolstov v.tolstov at selfip.ru
Wed Aug 18 08:57:54 PDT 2010


В Срд, 18/08/2010 в 08:52 -0700, Dan Magenheimer пишет:
> > If i run domU with memory 5000 and maxmemory 60000 domU can shrink it
> > memory to lower then minimum (for example to 1500), how can i get
> > current memory usage of domU from hypervisor (in dom0) ?
> 
> "xm list" has a bug that shows only the original amount of memory
> for the machine.  I use "xentop" to show current memory usage.
> If you have a recent upstream Xen "xl list" will work also.
> 

Can i get current memory usage on tmem enabled domain with xen api?


> > And can You explain me format of output xm tmem-list xomain_id  xm
> > tmem-list xomain_id  -l ?
> 
> The data returned by tmem-list is in a machine-parseable ascii format
> that I believe will be forward/backward compatible (i.e. no fixed size data
> structures).  To translate tmem-list output to human-readable I use:
> 
> # xm tmem-list --long --all | /usr/sbin/xen-tmem-list-parse
> 
> And to watch it change dynamically, try:
> 
> # watch -d 'xm tmem-list --long --all | /usr/sbin/xen-tmem-list-parse'
> 
> Dan
> 
> 

Where i can find current memory usage of domain id 34 in this list?
In domU i get free -m : 
Mem:          4000        651       3348          0       14        234

total tmem ops=27791361 (errors=1253062) -- tmem pages avail=111025
datastructs: objs=137117 (max=143488) pgps=631165 (max=994715)
nodes=78122 (max=83546)
misc: failed_copies=0 alloc_failed=188944 alloc_page_failed=260224
low_mem=0 evicted=12901/1464828 relinq=708633/708695,
max_evicts_per_relinq=1, flush_pools=0, eph_count=627907, eph_max=739150
domid0:
weight=0,cap=0,compress=0,frozen=0,total_cycles=257573668,succ_eph_gets=0,succ_pers_puts=0,succ_pers_gets=0,eph_count=0,max_eph=1,compression ratio=0% (samples=0,poor=0,nomem=0)
domid0,id0[EP]:pgp=0(max=0) obj=0(0) objnode=0(0) puts=0/0/0(dup=0/0)
gets=0/0(0%) flush=0/0 flobj=0/0
domid34:
weight=0,cap=0,compress=0,frozen=0,total_cycles=50802803540,succ_eph_gets=2650548,succ_pers_puts=3384,succ_pers_gets=168,eph_count=627907,max_eph=739150,compression ratio=0% (samples=0,poor=0,nomem=0)
domid34,id0[EP]:pgp=627907(max=739150) obj=137101(143488)
objnode=78075(83591) puts=6715673/6715608/0(dup=0/772)
gets=2650548/2684011(98%) flush=804041/804041 flobj=685390/995796
domid34,id1[PP]:pgp=3258(max=3384) obj=16(16) objnode=96(96)
puts=3384/3384/0(dup=0/0) gets=168/168(100%) flush=126/126 flobj=0/0
succ get cycles: avg=4825, max=305206, min=1412, samples=3185216
succ put cycles: avg=4558, max=2882624, min=1488, samples=11931847
failed get cycles: avg=267, max=14159, min=112, samples=989191
failed put cycles: avg=2221, max=41854, min=652, samples=449168
flush cycles: avg=443, max=471888, min=144, samples=9829637
flush_obj cycles: avg=3668, max=63946418, min=128, samples=1402000
page copy cycles: avg=2277, max=764626, min=568, samples=15107774



-- 
Vasiliy G Tolstov <v.tolstov at selfip.ru>
Selfip.Ru




More information about the Tmem-devel mailing list