From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amin Fallahi Subject: How to find out how much cpu time each domain used? Date: Mon, 04 Jul 2016 20:09:10 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4583490369790484613==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============4583490369790484613== Content-Type: multipart/alternative; boundary=94eb2c063b7a6641790536d4e922 --94eb2c063b7a6641790536d4e922 Content-Type: text/plain; charset=UTF-8 Dear all I am modifying credit scheduler and I want to give credit to each vcpu based on cpu time which its domain has consumed. Suppose: credit_fair =((credit_total*sdom->weight)+(weight_total-1))/weight_total I want to multiply something to this formula according to the domain cpu usage. Thus I need to somehow find out cpu time for each domain. --94eb2c063b7a6641790536d4e922 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear all

I am modifying credit= scheduler and I want to give credit to each vcpu based on cpu time which i= ts domain has consumed.
Suppose:
credit_fair =3D((credit_total*= sdom->weight)+(weight_total-1))/weight_total

I want to mult= iply something to this formula according to the domain cpu usage. Thus I ne= ed to somehow find out cpu time for each domain.
--94eb2c063b7a6641790536d4e922-- --===============4583490369790484613== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============4583490369790484613==--