Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-10 Thread Viktor Kojouharov
On Fri, 2009-02-06 at 11:29 -0800, Michael Jennings wrote:
 On Friday, 06 February 2009, at 16:40:28 (-0200),
 Gustavo Sverzut Barbieri wrote:
 
  Sorry! I was trying to give the sense that all applications would
  get this priority. Maybe have a textblock explaining why it is
  useful?
 
 Perhaps a different verbiage altogether would be more clear?  Child
 Process Priority or Subprocess Priority might be more explanatory.
 
 I agree that it's not well-put. :)
 
 Michael
 
English is not my native language, and since you guys have commit rights
as well, you can know yourselves out to change it :)


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-07 Thread The Rasterman
On Fri, 6 Feb 2009 11:29:28 -0800 Michael Jennings e-de...@kainx.org said:

 On Friday, 06 February 2009, at 16:40:28 (-0200),
 Gustavo Sverzut Barbieri wrote:
 
  Sorry! I was trying to give the sense that all applications would
  get this priority. Maybe have a textblock explaining why it is
  useful?
 
 Perhaps a different verbiage altogether would be more clear?  Child
 Process Priority or Subprocess Priority might be more explanatory.
 
 I agree that it's not well-put. :)

verbage... can be addressed in due time - it's strings and a lot of e's strings
are very much getting an overhaul.


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-06 Thread The Rasterman
On Mon, 02 Feb 2009 20:37:35 +0100 Viktor Kojouharov vkojouha...@gmail.com
said:

 Continuing from the previous discussion on this topic, someone suggested
 that the nice level for app execution should be configurable.
 
 I've attached a patch that does this, so if there are no complaints,
 I'll commit it soon.

seems reasonable. commit when you are ready :)


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-06 Thread Gustavo Sverzut Barbieri
On Fri, Feb 6, 2009 at 8:50 AM, The Rasterman Carsten Haitzler
ras...@rasterman.com wrote:
 On Mon, 02 Feb 2009 20:37:35 +0100 Viktor Kojouharov vkojouha...@gmail.com
 said:

 Continuing from the previous discussion on this topic, someone suggested
 that the nice level for app execution should be configurable.

 I've attached a patch that does this, so if there are no complaints,
 I'll commit it soon.

 seems reasonable. commit when you are ready :)

I'd make Application Priority plural, like Applications Priority.

Last but not least, I've being investigating OOM behavior these days
and since E17 is popular in embedded systems, why not have an option
to set /proc/$PID/oom_adj so E17 is less likely to be killed (or even
deny E17 being oom-killed). I don't think we need a GUI for that, but
having it in config file is a good thing, some profiles could set
that. (If one want to implement that, talk to me... you need to set
oom_adj of e17 and set to 0 on children, because this is inherited...)

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-06 Thread Michael Jennings
On Friday, 06 February 2009, at 14:35:21 (-0200),
Gustavo Sverzut Barbieri wrote:

 I'd make Application Priority plural, like Applications Priority.

That would be grammatically incorrect.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  m...@kainx.org
Linux Server/Cluster Admin, LBL.gov   Author, Eterm (www.eterm.org)
---
 I disapprove of what you say, but I will defend to the death your
  right to say it.-- Voltaire

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-06 Thread Gustavo Sverzut Barbieri
On Fri, Feb 6, 2009 at 3:44 PM, Michael Jennings e-de...@kainx.org wrote:
 On Friday, 06 February 2009, at 14:35:21 (-0200),
 Gustavo Sverzut Barbieri wrote:

 I'd make Application Priority plural, like Applications Priority.

 That would be grammatically incorrect.

Sorry! I was trying to give the sense that all applications would get
this priority. Maybe have a textblock explaining why it is useful?

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-06 Thread Michael Jennings
On Friday, 06 February 2009, at 16:40:28 (-0200),
Gustavo Sverzut Barbieri wrote:

 Sorry! I was trying to give the sense that all applications would
 get this priority. Maybe have a textblock explaining why it is
 useful?

Perhaps a different verbiage altogether would be more clear?  Child
Process Priority or Subprocess Priority might be more explanatory.

I agree that it's not well-put. :)

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  m...@kainx.org
Linux Server/Cluster Admin, LBL.gov   Author, Eterm (www.eterm.org)
---
 Perhaps someday we will discover that space and time are simpler
  than the human equation. -- Jean-Luc Picard, ST:TNG

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-02-02 Thread Viktor Kojouharov
Continuing from the previous discussion on this topic, someone suggested
that the nice level for app execution should be configurable.

I've attached a patch that does this, so if there are no complaints,
I'll commit it soon.
Index: src/bin/e_config.c
===
--- src/bin/e_config.c	(revision 38905)
+++ src/bin/e_config.c	(working copy)
@@ -414,6 +414,7 @@
E_CONFIG_VAL(D, T, border_shade_transition, INT); /**/
E_CONFIG_VAL(D, T, border_shade_speed, DOUBLE); /**/
E_CONFIG_VAL(D, T, framerate, DOUBLE); /**/
+   E_CONFIG_VAL(D, T, priority, INT); /**/
E_CONFIG_VAL(D, T, image_cache, INT); /**/
E_CONFIG_VAL(D, T, font_cache, INT); /**/
E_CONFIG_VAL(D, T, edje_cache, INT); /**/
@@ -856,6 +857,10 @@
 COPYPTR(syscon.actions);
 IFCFGEND;
 
+IFCFG(0x012d);
+COPYVAL(priority);
+IFCFGEND;
+
 e_config-config_version = E_CONFIG_FILE_VERSION;   
 _e_config_free(tcfg);
  }
@@ -869,6 +874,7 @@
E_CONFIG_LIMIT(e_config-border_shade_transition, 0, 3);
E_CONFIG_LIMIT(e_config-border_shade_speed, 1.0, 2.0);
E_CONFIG_LIMIT(e_config-framerate, 1.0, 200.0);
+   E_CONFIG_LIMIT(e_config-priority, 0, 19);
E_CONFIG_LIMIT(e_config-image_cache, 0, 256 * 1024);
E_CONFIG_LIMIT(e_config-font_cache, 0, 32 * 1024);
E_CONFIG_LIMIT(e_config-edje_cache, 0, 256);
Index: src/bin/e_config.h
===
--- src/bin/e_config.h	(revision 38905)
+++ src/bin/e_config.h	(working copy)
@@ -34,7 +34,7 @@
 /* increment this whenever a new set of config values are added but the users
  * config doesn't need to be wiped - simply new values need to be put in
  */
-#define E_CONFIG_FILE_GENERATION 0x012c
+#define E_CONFIG_FILE_GENERATION 0x012d
 #define E_CONFIG_FILE_VERSION((E_CONFIG_FILE_EPOCH  16) | E_CONFIG_FILE_GENERATION)
 
 #define E_EVAS_ENGINE_DEFAULT 0
@@ -72,6 +72,7 @@
int border_shade_transition; // GUI
double  border_shade_speed; // GUI
double  framerate; // GUI
+   int priority; // GUI
int image_cache; // GUI
int font_cache; // GUI
int edje_cache; // GUI
Index: src/bin/e_main.c
===
--- src/bin/e_main.c	(revision 38905)
+++ src/bin/e_main.c	(working copy)
@@ -576,8 +576,8 @@
 
locked |= e_config-desklock_start_locked;
 
-   /* set all execced stuff to pri 1 - nice. make this config later? */
-   ecore_exe_run_priority_set(1);
+   /* set all execced stuff to configured priority */
+   ecore_exe_run_priority_set(e_config-priority);

TS(scale);
/* init config system */
Index: src/modules/conf_performance/e_int_config_performance.c
===
--- src/modules/conf_performance/e_int_config_performance.c	(revision 38905)
+++ src/modules/conf_performance/e_int_config_performance.c	(working copy)
@@ -10,6 +10,7 @@
 struct _E_Config_Dialog_Data 
 {
double framerate;
+   int priority;
 
/* Advanced */   
int cache_flush_poll_interval;
@@ -46,6 +47,7 @@
 _fill_data(E_Config_Dialog_Data *cfdata) 
 {
cfdata-framerate = e_config-framerate;
+   cfdata-priority = e_config-priority;
cfdata-font_cache = ((double)e_config-font_cache / 1024);
cfdata-image_cache = ((double)e_config-image_cache / 1024);
cfdata-edje_cache = e_config-edje_cache;
@@ -75,6 +77,8 @@
if (cfdata-framerate = 0.0) cfdata-framerate = 1.0;
e_config-framerate = cfdata-framerate;
edje_frametime_set(1.0 / e_config-framerate);
+   e_config-priority = cfdata-priority;
+   ecore_exe_run_priority_set(e_config-priority);
e_canvas_recache();
e_config_save_queue();
return 1;
@@ -93,6 +97,11 @@
ob = e_widget_slider_add(evas, 1, 0, _(%1.0f fps), 5.0, 200.0, 5.0, 0, (cfdata-framerate), NULL, 150);
e_widget_framelist_object_append(of, ob);
 
+   ob = e_widget_label_add(evas, _(Application Priority));
+   e_widget_framelist_object_append(of, ob);   
+   ob = e_widget_slider_add(evas, 1, 0, %1.0f, 0, 19, 1, 0, NULL, (cfdata-priority), 150);
+   e_widget_framelist_object_append(of, ob);
+
e_widget_list_object_append(o, of, 1, 1, 0.5);   
return o;
 }
@@ -108,6 +117,8 @@
e_config-edje_cache = cfdata-edje_cache;
e_config-edje_collection_cache = cfdata-edje_collection_cache;
edje_frametime_set(1.0 / e_config-framerate);
+   e_config-priority = cfdata-priority;
+   ecore_exe_run_priority_set(e_config-priority);
e_canvas_recache();
e_config_save_queue();
return 1;
@@ -125,6 +136,11 @@
e_widget_framelist_object_append(of, ob);   
ob = e_widget_slider_add(evas, 1, 0, _(%1.0f fps), 5.0, 240.0, 1.0, 0, (cfdata-framerate), NULL, 150);
e_widget_framelist_object_append(of, ob);
+
+   ob = e_widget_label_add(evas, _(Application Priority));
+   

Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-18 Thread Steve Jones
Gustavo Sverzut Barbieri wrote:
 On Mon, Jan 12, 2009 at 4:55 PM, Frederick Reeve cy...@solace.info wrote:
 On Wed, 7 Jan 2009 21:54:52 -0200
 Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote:

 On Wed, Jan 7, 2009 at 9:29 PM, The Rasterman Carsten Haitzler
 ras...@rasterman.com wrote:
 On Thu, 8 Jan 2009 09:15:25 +1030 Graham Gower graham.go...@gmail.com
 babbled:
 n.b. - i didn't notice this as i use low power automatic (conservative)
 governor - it doesnt clock up as much as automatic does - but it will for
 sustained cpu needs.
 conservative is considered bad. it's just recommended for machines
 that have problems with fast frequency changes, usually weird/old
 platforms.

 Just have to drop in my comment here.  I use conservative because my fan is 
 regulated by my bios and if the cpu is at full the fan runs on hi on my 
 notebook(its loud).  I find it very obnoxious going from off to hi all the 
 time.  My notebook is a new as of 2 months ago HP with some of the best 
 hardware you can currently get.  Yet on demand/automatic does not give a 
 good user experience here.  Anyway.  I would really hate to see low power 
 automatic go away as it has worked the best for keeping noise down on all 4 
 notebooks I have owned now.  I do wonder why it is considered bad though?
 
 It's bad because it would take more time to do the task and it's
 cheaper to finish the task at full speed sooner than run it half speed
 and delay job end. But of course you might end with annoying fans and
 latencies for some hardware (either cpu or fan)... I know it can be
 irritating if your laptop will turn on the fans everytime you move a
 window with e17 ;-)
 

Just to add my two cents to this discussion.

I have a machine that's on 24/7 for various tasks, and I run BOINC
projects in the background just so it's doing something useful all the
time. However, I don't want the processor running flat out constantly,
so I have ignore_nice_load switched on. That way, BOINC can do its thing
at low priority, and the CPU runs at a lower speed. Then, if 'normal'
apps need the CPU, it scales up the frequency to get the job done
quicker. e17's policy of running all child processes as +1 priority
completely backfires in this scenario.

I'm not sure which is the best way to go in terms of defaults for this,
but I'd definitely like there to be an option to adjust the priority of
e's child processes.

Steve.



signature.asc
Description: OpenPGP digital signature
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-18 Thread Gustavo Sverzut Barbieri
On Sun, Jan 18, 2009 at 3:45 PM, Steve Jones st...@squaregoldfish.co.uk wrote:
 Gustavo Sverzut Barbieri wrote:
 On Mon, Jan 12, 2009 at 4:55 PM, Frederick Reeve cy...@solace.info wrote:
 On Wed, 7 Jan 2009 21:54:52 -0200
 Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote:

 On Wed, Jan 7, 2009 at 9:29 PM, The Rasterman Carsten Haitzler
 ras...@rasterman.com wrote:
 On Thu, 8 Jan 2009 09:15:25 +1030 Graham Gower graham.go...@gmail.com
 babbled:
 n.b. - i didn't notice this as i use low power automatic (conservative)
 governor - it doesnt clock up as much as automatic does - but it will for
 sustained cpu needs.
 conservative is considered bad. it's just recommended for machines
 that have problems with fast frequency changes, usually weird/old
 platforms.

 Just have to drop in my comment here.  I use conservative because my fan is 
 regulated by my bios and if the cpu is at full the fan runs on hi on my 
 notebook(its loud).  I find it very obnoxious going from off to hi all the 
 time.  My notebook is a new as of 2 months ago HP with some of the best 
 hardware you can currently get.  Yet on demand/automatic does not give a 
 good user experience here.  Anyway.  I would really hate to see low power 
 automatic go away as it has worked the best for keeping noise down on all 
 4 notebooks I have owned now.  I do wonder why it is considered bad though?

 It's bad because it would take more time to do the task and it's
 cheaper to finish the task at full speed sooner than run it half speed
 and delay job end. But of course you might end with annoying fans and
 latencies for some hardware (either cpu or fan)... I know it can be
 irritating if your laptop will turn on the fans everytime you move a
 window with e17 ;-)


 Just to add my two cents to this discussion.

 I have a machine that's on 24/7 for various tasks, and I run BOINC
 projects in the background just so it's doing something useful all the
 time. However, I don't want the processor running flat out constantly,
 so I have ignore_nice_load switched on. That way, BOINC can do its thing
 at low priority, and the CPU runs at a lower speed. Then, if 'normal'
 apps need the CPU, it scales up the frequency to get the job done
 quicker. e17's policy of running all child processes as +1 priority
 completely backfires in this scenario.

 I'm not sure which is the best way to go in terms of defaults for this,
 but I'd definitely like there to be an option to adjust the priority of
 e's child processes.

IMHO your case is not the usual for regular users, and BOINC should
throttle itself or use some kind of cpulimits to do so, doable with
cgroups since .24.

Basically ignore_nice_load defeats use of priority by non-admin users,
you cannot use them anymore. They should have done this for
configurable priority or use +19 only, otherwise you loose 1-19.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-18 Thread Steve Jones
Carsten Haitzler (The Rasterman) wrote:
 On Sun, 18 Jan 2009 16:05:00 -0200 Gustavo Sverzut Barbieri
 barbi...@profusion.mobi babbled:
 
 On Sun, Jan 18, 2009 at 3:45 PM, Steve Jones st...@squaregoldfish.co.uk
 wrote:
 Gustavo Sverzut Barbieri wrote:
 On Mon, Jan 12, 2009 at 4:55 PM, Frederick Reeve cy...@solace.info wrote:
 On Wed, 7 Jan 2009 21:54:52 -0200
 Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote:

 On Wed, Jan 7, 2009 at 9:29 PM, The Rasterman Carsten Haitzler
 ras...@rasterman.com wrote:
 On Thu, 8 Jan 2009 09:15:25 +1030 Graham Gower
 graham.go...@gmail.com babbled:
 n.b. - i didn't notice this as i use low power
 automatic (conservative) governor - it doesnt clock up as much as
 automatic does - but it will for sustained cpu needs.
 conservative is considered bad. it's just recommended for machines
 that have problems with fast frequency changes, usually weird/old
 platforms.

 Just have to drop in my comment here.  I use conservative because my fan
 is regulated by my bios and if the cpu is at full the fan runs on hi on
 my notebook(its loud).  I find it very obnoxious going from off to hi all
 the time.  My notebook is a new as of 2 months ago HP with some of the
 best hardware you can currently get.  Yet on demand/automatic does not
 give a good user experience here.  Anyway.  I would really hate to see
 low power automatic go away as it has worked the best for keeping noise
 down on all 4 notebooks I have owned now.  I do wonder why it is
 considered bad though?
 It's bad because it would take more time to do the task and it's
 cheaper to finish the task at full speed sooner than run it half speed
 and delay job end. But of course you might end with annoying fans and
 latencies for some hardware (either cpu or fan)... I know it can be
 irritating if your laptop will turn on the fans everytime you move a
 window with e17 ;-)

 Just to add my two cents to this discussion.

 I have a machine that's on 24/7 for various tasks, and I run BOINC
 projects in the background just so it's doing something useful all the
 time. However, I don't want the processor running flat out constantly,
 so I have ignore_nice_load switched on. That way, BOINC can do its thing
 at low priority, and the CPU runs at a lower speed. Then, if 'normal'
 apps need the CPU, it scales up the frequency to get the job done
 quicker. e17's policy of running all child processes as +1 priority
 completely backfires in this scenario.

 I'm not sure which is the best way to go in terms of defaults for this,
 but I'd definitely like there to be an option to adjust the priority of
 e's child processes.
 IMHO your case is not the usual for regular users, and BOINC should
 throttle itself or use some kind of cpulimits to do so, doable with
 cgroups since .24.

 Basically ignore_nice_load defeats use of priority by non-admin users,
 you cannot use them anymore. They should have done this for
 configurable priority or use +19 only, otherwise you loose 1-19.
 
 absolutely. that option nukes the usefulness of nice priorities for non-root
 entirely as you lose all 1-19 levels into one blob (when it comes to freq
 scaling). allowing you to SET the nice level at which the ignore it for freq
 switching comes in... instead of 1/0 (on and off) would be useful - or at
 least have a default nice level at which the ignore kicks in of +19 (giving 
 1-18
 back as useful and if you are going to nice stuff... like you did before to 
 get
 this to work... then you just adjust it to nice +19).
 

I agree with all of these comments, and fixing the ignore_nice_load
option to take a threshold could be a desirable solution. However, until
that happens, a config option in e may have to be the way forward.
Otherwise, I'll content myself with editing the source every time I
update :)

Steve.



signature.asc
Description: OpenPGP digital signature
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-12 Thread Frederick Reeve
On Wed, 7 Jan 2009 21:54:52 -0200
Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote:

 On Wed, Jan 7, 2009 at 9:29 PM, The Rasterman Carsten Haitzler
 ras...@rasterman.com wrote:
  On Thu, 8 Jan 2009 09:15:25 +1030 Graham Gower graham.go...@gmail.com
  babbled:
  n.b. - i didn't notice this as i use low power automatic (conservative)
  governor - it doesnt clock up as much as automatic does - but it will for
  sustained cpu needs.
 
 conservative is considered bad. it's just recommended for machines
 that have problems with fast frequency changes, usually weird/old
 platforms.
 

Just have to drop in my comment here.  I use conservative because my fan is 
regulated by my bios and if the cpu is at full the fan runs on hi on my 
notebook(its loud).  I find it very obnoxious going from off to hi all the 
time.  My notebook is a new as of 2 months ago HP with some of the best 
hardware you can currently get.  Yet on demand/automatic does not give a good 
user experience here.  Anyway.  I would really hate to see low power 
automatic go away as it has worked the best for keeping noise down on all 4 
notebooks I have owned now.  I do wonder why it is considered bad though?

 -- 
 Gustavo Sverzut Barbieri
 http://profusion.mobi embedded systems
 --
 MSN: barbi...@gmail.com
 Skype: gsbarbieri
 Mobile: +55 (19) 9225-2202
 
 --
 Check out the new SourceForge.net Marketplace.
 It is the best place to buy or sell services for
 just about anything Open Source.
 http://p.sf.net/sfu/Xq1LFB
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-12 Thread Gustavo Sverzut Barbieri
On Mon, Jan 12, 2009 at 4:55 PM, Frederick Reeve cy...@solace.info wrote:
 On Wed, 7 Jan 2009 21:54:52 -0200
 Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote:

 On Wed, Jan 7, 2009 at 9:29 PM, The Rasterman Carsten Haitzler
 ras...@rasterman.com wrote:
  On Thu, 8 Jan 2009 09:15:25 +1030 Graham Gower graham.go...@gmail.com
  babbled:
  n.b. - i didn't notice this as i use low power automatic (conservative)
  governor - it doesnt clock up as much as automatic does - but it will for
  sustained cpu needs.

 conservative is considered bad. it's just recommended for machines
 that have problems with fast frequency changes, usually weird/old
 platforms.


 Just have to drop in my comment here.  I use conservative because my fan is 
 regulated by my bios and if the cpu is at full the fan runs on hi on my 
 notebook(its loud).  I find it very obnoxious going from off to hi all the 
 time.  My notebook is a new as of 2 months ago HP with some of the best 
 hardware you can currently get.  Yet on demand/automatic does not give a 
 good user experience here.  Anyway.  I would really hate to see low power 
 automatic go away as it has worked the best for keeping noise down on all 4 
 notebooks I have owned now.  I do wonder why it is considered bad though?

It's bad because it would take more time to do the task and it's
cheaper to finish the task at full speed sooner than run it half speed
and delay job end. But of course you might end with annoying fans and
latencies for some hardware (either cpu or fan)... I know it can be
irritating if your laptop will turn on the fans everytime you move a
window with e17 ;-)

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-07 Thread Viktor Kojouharov
On Wed, 2009-01-07 at 19:10 -0200, Rafael Antognolli wrote:
 Hi,
 
 I was using E17 with the new Ubuntu 8.10 and realized that the cpu
 frequency wasn't scaling. Then I checked that with gnome and even
 without a window manager and it worked fine.
 
 Well, it seems that E always starts its children applications with
 nice +1, and Ubuntu has the file
 /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load set to
 1, so even with 100% cpu load the clock doesn't scale up (if the
 application consuming the cpu was started from E, thus with nice +1).
 
 In the file e/src/bin/e_main.c these lines do the nice:
/* set all execced stuff to pri 1 - nice. make this config later? */
ecore_exe_run_priority_set(1);
 
 In order to do the frequency scaling work in Ubuntu these lines need
 to be removed, or an echo 0 should be done to that file.


Well, at least now I know why the ondemand governor didn't seem to do
it's job. I'll see about making this a proper config.


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-07 Thread Gustavo Sverzut Barbieri
On Wed, Jan 7, 2009 at 7:28 PM, Viktor Kojouharov vkojouha...@gmail.com wrote:
 On Wed, 2009-01-07 at 19:10 -0200, Rafael Antognolli wrote:
 Hi,

 I was using E17 with the new Ubuntu 8.10 and realized that the cpu
 frequency wasn't scaling. Then I checked that with gnome and even
 without a window manager and it worked fine.

 Well, it seems that E always starts its children applications with
 nice +1, and Ubuntu has the file
 /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load set to
 1, so even with 100% cpu load the clock doesn't scale up (if the
 application consuming the cpu was started from E, thus with nice +1).

 In the file e/src/bin/e_main.c these lines do the nice:
/* set all execced stuff to pri 1 - nice. make this config later? */
ecore_exe_run_priority_set(1);

 In order to do the frequency scaling work in Ubuntu these lines need
 to be removed, or an echo 0 should be done to that file.


 Well, at least now I know why the ondemand governor didn't seem to do
 it's job. I'll see about making this a proper config.

now it's either ubuntu packagers to patch E to remove that line or
them not setting such governor parameter. The fits-all solution would
be to make this a settings (easy) and expose it in some dialog (not so
simple, but easy as well).

I really dislike such governor option for the same reason Matthew
Garrett: the faster you finish the task, the less power you use, less
time with hot cpu... even less time hd spinning (for io+cpu bound
tasks, like compile).

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-07 Thread Graham Gower
2009/1/8 Gustavo Sverzut Barbieri barbi...@profusion.mobi:

 I really dislike such governor option for the same reason Matthew
 Garrett: the faster you finish the task, the less power you use, less
 time with hot cpu... even less time hd spinning (for io+cpu bound
 tasks, like compile).

That's entirely the point though.
Scale up cpu freq when the system is under higher cpu load, scale it
down when its not.

-Graham

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-07 Thread The Rasterman
On Thu, 8 Jan 2009 09:15:25 +1030 Graham Gower graham.go...@gmail.com
babbled:

 2009/1/8 Gustavo Sverzut Barbieri barbi...@profusion.mobi:
 
  I really dislike such governor option for the same reason Matthew
  Garrett: the faster you finish the task, the less power you use, less
  time with hot cpu... even less time hd spinning (for io+cpu bound
  tasks, like compile).
 
 That's entirely the point though.
 Scale up cpu freq when the system is under higher cpu load, scale it
 down when its not.

i would agree here - ubuntu's policy is wrong - it's a bad idea. e's policy of
drop applications down priority from e is very effective when cpu is limited.
e (the overall desktop control mechanism) remains much mroe responsive and
usable even if apps it launches run off and eat cpu. this is especially
noticeable on embedded systems where processing power is at a premium. while
the process starts e becomes very sluggish until the process is up (and idle
again). thus nicing sub-processes makes this problem disappear. in the end you
want your primary desktop controls to be as responsive as possible no matter
what apps do. so this falls in line with that. as such we cant make e higher
priority as you need to be root to do that - but we can lower things e runs.

ubuntu's policy basically works against this. so as such i think i'll just have
it turn this off in e. it probably should be anyway.

n.b. - i didn't notice this as i use low power automatic (conservative)
governor - it doesnt clock up as much as automatic does - but it will for
sustained cpu needs.


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] cpu frequency not scaling with E17 + Ubuntu

2009-01-07 Thread Gustavo Sverzut Barbieri
On Wed, Jan 7, 2009 at 9:29 PM, The Rasterman Carsten Haitzler
ras...@rasterman.com wrote:
 On Thu, 8 Jan 2009 09:15:25 +1030 Graham Gower graham.go...@gmail.com
 babbled:
 n.b. - i didn't notice this as i use low power automatic (conservative)
 governor - it doesnt clock up as much as automatic does - but it will for
 sustained cpu needs.

conservative is considered bad. it's just recommended for machines
that have problems with fast frequency changes, usually weird/old
platforms.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel