Re: [PATCH] pm_qos: Add system bus performance parameter

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Saravana Kannan
Date: Friday, August 27, 2010 - 7:55 pm

mark gross wrote:

I don't know how the network throughput is enforced, but if the unit is 
KBps and it's just doing a Max, then I think it's broken. If two clients 
request 50 KBps and your network can go till 200 KBps, you would still 
be requesting 50 KBps when you could have requested 100 KBps.

Any specific reason PM QoS doesn't support a "summation" "comparitor"?


I think my point wasn't clear. Say the driver is doing mem read/write 
and it needs 10 MBps and the system bus maxes out at 20 MBps.

When the CPU is idling, and isn't using the system bus, it would be 
sufficient for the system bus to run at 10MBps speeds. But when CPU 
starts executing at full speed, it's going to eat up some bandwidth and 
the system bus will have to operate at 15 or 20 MBps speeds.


Yes, I could just do this and call it a day. Although, in my opinon, 
it's a misrepresentation of the parameter since we aren't doing a 
summation of the requests.


Most of the drivers/devices that really need PM QoS and don't degrade 
gracefully are internal to SoCs. I can't think of too many external or 
loosely coupled devices that don't degrade gracefully. Anyway, 
theoritically, your point is valid.


I don't think that PM QoS in it's current state can meet all the real 
requirements of bus bandwidth configuration or management. Which is fine 
-- we need to start somewhere. Something like what Kevin mentions or a 
different method would be needed to get this right for the complex 
cases. I too would be very eager to join this discussion in one of the 
conferences (Linux Plumbers?).

My thought was that till that's ready (this has been in discussion for 
_at least_ 8 months) we could go with a PM QoS parameter (preferably 
without units) and switch to the new design when it's available. I would 
be more than glad to switch to the new/future design when it's available.

Did I convince you to allow a unit less parameter? :-)

-Saravana
-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Thu Aug 26, 9:13 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Peter Zijlstra, (Fri Aug 27, 3:17 am)
Re: [PATCH] pm_qos: Add system bus performance parameter, Bryan Huntsman, (Fri Aug 27, 11:33 am)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Fri Aug 27, 7:55 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Kevin Hilman, (Mon Aug 30, 11:56 am)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Tue Aug 31, 3:38 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Wed Sep 1, 8:37 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Rafael J. Wysocki, (Thu Sep 2, 1:09 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Fri Sep 3, 7:04 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Rafael J. Wysocki, (Tue Sep 7, 2:43 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Fri Sep 17, 1:32 pm)