Messages in this thread | | | Date | Mon, 24 Sep 2012 17:10:01 +0530 | From | Raghavendra K T <> | Subject | Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler |
| |
On 09/24/2012 05:03 PM, Peter Zijlstra wrote: > On Fri, 2012-09-21 at 17:30 +0530, Raghavendra K T wrote: >> +unsigned long rq_nr_running(void) >> +{ >> + return this_rq()->nr_running; >> +} >> +EXPORT_SYMBOL(rq_nr_running); > > Uhm,.. no, that's a horrible thing to export. >
True.. I had the same fear :). Other options I thought were something like nr_running()/num_online_cpus, this_cpu_load(), etc..
Could you please let me know, if we can rely some good metric to say, system is not overcommitted/overcommitted?
| |