Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-08 Thread Alex Shi
On 11/07/2012 10:41 PM, Greg KH wrote: > On Wed, Nov 07, 2012 at 08:27:17PM +0800, Alex Shi wrote: diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 6345294..5f6a573 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -330,4 +330,6 @@ void __init

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-08 Thread Alex Shi
On 11/07/2012 10:41 PM, Greg KH wrote: On Wed, Nov 07, 2012 at 08:27:17PM +0800, Alex Shi wrote: diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 6345294..5f6a573 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -330,4 +330,6 @@ void __init cpu_dev_init(void)

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-07 Thread Greg KH
On Wed, Nov 07, 2012 at 08:27:17PM +0800, Alex Shi wrote: > >> diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c > >> index 6345294..5f6a573 100644 > >> --- a/drivers/base/cpu.c > >> +++ b/drivers/base/cpu.c > >> @@ -330,4 +330,6 @@ void __init cpu_dev_init(void) > >>panic("Failed

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-07 Thread Alex Shi
On 11/06/2012 11:20 PM, Luming Yu wrote: > On Tue, Nov 6, 2012 at 8:09 AM, Alex Shi wrote: >> This patch add the power aware scheduler knob into sysfs: > > The problem is user doesn't know how to use this knob. > > Based on what data, people could select one policy which could be surely >

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-07 Thread Alex Shi
>> diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c >> index 6345294..5f6a573 100644 >> --- a/drivers/base/cpu.c >> +++ b/drivers/base/cpu.c >> @@ -330,4 +330,6 @@ void __init cpu_dev_init(void) >> panic("Failed to register CPU subsystem"); >> >> cpu_dev_register_generic();

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-07 Thread Alex Shi
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 6345294..5f6a573 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -330,4 +330,6 @@ void __init cpu_dev_init(void) panic(Failed to register CPU subsystem); cpu_dev_register_generic(); + +

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-07 Thread Alex Shi
On 11/06/2012 11:20 PM, Luming Yu wrote: On Tue, Nov 6, 2012 at 8:09 AM, Alex Shi alex@intel.com wrote: This patch add the power aware scheduler knob into sysfs: The problem is user doesn't know how to use this knob. Based on what data, people could select one policy which could be

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-07 Thread Greg KH
On Wed, Nov 07, 2012 at 08:27:17PM +0800, Alex Shi wrote: diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 6345294..5f6a573 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -330,4 +330,6 @@ void __init cpu_dev_init(void) panic(Failed to register CPU

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-06 Thread Luming Yu
On Tue, Nov 6, 2012 at 8:09 AM, Alex Shi wrote: > This patch add the power aware scheduler knob into sysfs: The problem is user doesn't know how to use this knob. Based on what data, people could select one policy which could be surely better than another? "Packing small tasks" approach could

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-06 Thread Greg KH
On Tue, Nov 06, 2012 at 09:09:57PM +0800, Alex Shi wrote: > This patch add the power aware scheduler knob into sysfs: > > $cat /sys/devices/system/cpu/sched_policy/available_sched_policy > performance powersaving > > $cat /sys/devices/system/cpu/sched_policy/current_sched_policy > powersaving >

[RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-06 Thread Alex Shi
This patch add the power aware scheduler knob into sysfs: $cat /sys/devices/system/cpu/sched_policy/available_sched_policy performance powersaving $cat /sys/devices/system/cpu/sched_policy/current_sched_policy powersaving The using sched policy is 'powersaving'. User can change the policy by

[RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-06 Thread Alex Shi
This patch add the power aware scheduler knob into sysfs: $cat /sys/devices/system/cpu/sched_policy/available_sched_policy performance powersaving $cat /sys/devices/system/cpu/sched_policy/current_sched_policy powersaving The using sched policy is 'powersaving'. User can change the policy by

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-06 Thread Greg KH
On Tue, Nov 06, 2012 at 09:09:57PM +0800, Alex Shi wrote: This patch add the power aware scheduler knob into sysfs: $cat /sys/devices/system/cpu/sched_policy/available_sched_policy performance powersaving $cat /sys/devices/system/cpu/sched_policy/current_sched_policy powersaving The

Re: [RFC PATCH 1/3] sched: add sched_policy and it's sysfs interface

2012-11-06 Thread Luming Yu
On Tue, Nov 6, 2012 at 8:09 AM, Alex Shi alex@intel.com wrote: This patch add the power aware scheduler knob into sysfs: The problem is user doesn't know how to use this knob. Based on what data, people could select one policy which could be surely better than another? Packing small tasks