lkml.org 
[lkml]   [2019]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRE: [PATCH v3 5/7] drivers: devfreq: add longer polling interval in idle
    From
    Date
    > This patch adds new mechanism for devfreq devices which changes polling
    > interval. The system should sleep longer when the devfreq device is almost
    > not used. The devfreq framework will not schedule the work too often.
    > This low-load state is recognised when the device is operating at the lowest
    > frequency and has low busy_time/total_time factor (< 30%).
    > When the frequency is different then min, the device is under normal polling
    > which is the value defined in driver's 'polling_ms'.
    > When the device is getting more pressure, the framework is able to catch it
    > based on 'load' in lowest frequency and will start polling more frequently.
    > The second scenario is when the governor recognised heavy load at minimum
    > frequency and increases the frequency. The devfreq framework will start
    > polling in shorter intervals.
    > The polling interval, when the device is not heavily, can also be changed
    > from userspace of defined by the driver's author.
    >
    > Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
    > ---
    > drivers/devfreq/devfreq.c | 151 +++++++++++++++++++++++++++---
    > drivers/devfreq/governor.h | 3 +-
    > drivers/devfreq/governor_simpleondemand.c | 6 +-
    > 3 files changed, 145 insertions(+), 15 deletions(-)
    >

    There are some requirements that you need to consider:

    Is 30% really applicable to ALL devfreq devices?
    - What if some devices do not want such behaviors?
    - What if some devices want different values (change behavors)?
    - What if some manufactures want different default values?
    - What if some devices want to let the framework know that it's in idle?
    - What if some other kernel context, device (drivers),
    or userspace process want to notify that it's no more idling?

    As mentioned in the internal thread (tizen.org),
    I'm not convinced by the idea of assuming that a device can be considered "idling"
    if it has simply "low" utilization.

    You are going to deteriorate the UI response time of mobile devices significantly.

    Cheers,
    MyungJoo.

    \
     
     \ /
      Last update: 2019-02-18 05:33    [W:3.485 / U:0.120 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site