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: A.Amani@eng.ui.ac.ir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On Mon, Sep 30, 2013 at 9:10 PM, Adel Amani <adel.amani66@yahoo.com> wrote:> 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> > Thank you > > Adel Amani > M.Sc. Candidate@Computer Engineering Department, University of Isfahan > Email: A.Amani@eng.ui.ac.ir
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: A.Amani@eng.ui.ac.ir ________________________________> 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 Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On mar, 2013-10-01 at 10:25 -0700, Adel Amani wrote:> 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.> 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 -- <<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 Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
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: A.Amani@eng.ui.ac.ir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
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: A.Amani@eng.ui.ac.ir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On Fri, Oct 4, 2013 at 2:38 PM, Adel Amani <adel.amani66@yahoo.com> wrote:> 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
I want understand of logical how works formula credits? don''t Experimental... !!! Adel Amani M.Sc. Candidate@Computer Engineering Department, University of Isfahan Email: A.Amani@eng.ui.ac.ir ________________________________> 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 Xen-devel@lists.xen.org http://lists.xen.org/xen-devel