CSCHED_CREDITS_PER_MSEC" and "MILLISECS(1)"
Hello
What mean's "CSCHED_CREDITS_PER_MSEC" and "MILLISECS(1)"?
and in function "burn_credits" how computing "credits" and "svc->start_time"?
Thank you
Adel Amani
M.Sc. Candidate@Computer Engineering Department, University of Isfahan
Email: [email protected]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 5 lines · Adel Amani
Hello
What mean's "
CSCHED_CREDITS_PER_MSEC" and "MILLISECS(1)"? and in function "burn_credits" how computing "credits" and "svc->start_time"?
As I am not entirely sure, I did not reply to your earlier email, as someone else who does know will reply. To that end, there's no need to post the same questions over again.
If I had to guess, CSCHED_CREDITS_PER_MSEC is the amount of credits used up per millisecond, MILLISECS(1) converts 1 millisecond into nanoseconds, and burn_credits is calculating the amount of credits to remove using these constants and the delta time between the start of the vcpu's scheduling and the current time.
You can find this out easily using something like ctags to look up definitions (they're mainly in the credit scheduler implentation file anyway), so there's no need to post each one out here.
- Matthew
Quoted 6 lines
Thank you
Adel Amani
M.Sc. Candidate@Computer Engineering Department, University of Isfahan
Email: [email protected]
Hello
Thank you for your attention and your answer.
I don't know where I can find something like 'ctag'?
Is there any other site (except "http://wiki.xen.org" and "www.xenproject.org/") and document in this field that is better than others for getting more information?
Adel Amani
M.Sc. Candidate@Computer Engineering Department, University of Isfahan
Email: [email protected]
________________________________
Quoted 5 lines
Hello
What mean's "
CSCHED_CREDITS_PER_MSEC" and "MILLISECS(1)"? and in function "burn_credits" how computing "credits" and "svc->start_time"?
=============================================================================================================
You can find this out easily using something like ctags to look up definitions (they're mainly in the credit scheduler implentation file anyway), so there's no need to post each one out here.
- Matthew
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 4 lines · Adel Amani
Hello
Thank you for your attention and your answer. I don't know where I can find something like 'ctag'?
Try put it here: http://www.google.com.
You can also look for cscope, I find that one also very useful.
Quoted 4 lines
Is there any other site (except "http://wiki.xen.org" and "www.xenproject.org/") and document in this field that is better than others for getting more information?
I think that the kind of information you're looking for are only available in the code.
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
difference of Credit and Weight
Hello
Thank you for your answer.
I have two questions: (I have read wiki.xen.org page but I want more explain)
1. What is this file attach and how it can be opened?
2. What is weight's work in this "algorithm Credit" and what is the difference between "Credit" and "Weight" ?
Adel Amani
M.Sc. Candidate@Computer Engineering Department, University of Isfahan
Email: [email protected]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
burn_credits
Hello
Are someone know this formula in function "burn_credits"? "credits = (delta*CSCHED_CREDITS_PER_MSEC + MILLISECS(1)/2) / MILLISECS(1)" Why should "+ MILLISECS(1)/2) / MILLISECS(1)" ??
Adel Amani
M.Sc. Candidate@Computer Engineering Department, University of Isfahan
Email: [email protected]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: burn_credits
Quoted 4 lines · Adel Amani
Hello
Are someone know this formula in function "burn_credits"? "credits = (delta*CSCHED_CREDITS_PER_MSEC + MILLISECS(1)/2) / MILLISECS(1)" Why should "+ MILLISECS(1)/2) / MILLISECS(1)" ??
Did you try some example numbers with and without the "+MILLESECS(1)/2" to see what effect it would have?
-George
Re: burn_credits
I want understand of logical how works formula credits? don't Experimental... !!!
Adel Amani
M.Sc. Candidate@Computer Engineering Department, University of Isfahan
Email: [email protected]
________________________________
Quoted 4 lines
Hello
Are someone know this formula in function "burn_credits"? "credits = (delta*CSCHED_CREDITS_PER_MSEC + MILLISECS(1)/2) / MILLISECS(1)" Why should "+ MILLISECS(1)/2) / MILLISECS(1)" ??
Did you try some example numbers with and without the "+MILLESECS(1)/2" to see what effect it would have?
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel