Re: [RFC] QoS params patch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Valdis.Kletnieks
Date: Wednesday, September 26, 2007 - 7:53 pm

On Wed, 26 Sep 2007 17:40:20 PDT, Mark Gross said:
(others here are probably better at spotting leaks and races than I am,
so I'm skipping those and picking other nits. ;)

0700

So I don't get a choice in the matter if I will be dragging this thing
around in my kernel, even if I have no intention of using the functionality?


It's unclear whether these are registering a differing QoS request for each
process/container/whatever that asks for one, or if they're global across the
system.  Also, even though it's "best effort", it would be good to document
what the failure mode is if we get conflicting requests, or an overcommit
situation - do new requests get refused, or allowed and ignored, or allowed
and only sometimes fulfilled.  For instance, assume a gigabit ethernet,
and 3 processes ask for 400 mbits/sec each - who wins, who gets part of what
they asked for, and who loses and gets starved?


/dev?  What /dev entry do you use for a network interface?  Should this
be a configfs creature instead, or maybe something else?


Blech.  Is it time for the yearly stamp-out-reinvention-of-max() already?
The use of pointer functions is interesting, but I have to wonder if there's
not a better way...


And then you just pass a pointer to this and kstrdup() it.  Why not kmalloc()
the space initially and just 'dep->name = name;' and be done with it?

General nit - why qos_power_*, when none of the supported QoS parameters
seem to be power-related?
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] QoS power Management enabling patch set, Mark Gross, (Wed Sep 26, 3:37 pm)
Re: [RFC] QoS params patch, Mark Gross, (Wed Sep 26, 3:40 pm)
Re: [RFC] QoS power Management enabling patch set, Mark Gross, (Wed Sep 26, 3:42 pm)
Re: [RFC] QoS power example / hack, Mark Gross, (Wed Sep 26, 3:45 pm)
Re: [RFC] QoS params patch, Randy Dunlap, (Wed Sep 26, 4:41 pm)
Re: [RFC] QoS params patch, Mark Gross, (Wed Sep 26, 5:40 pm)
Re: [RFC] QoS params patch, Paul Mundt, (Wed Sep 26, 7:24 pm)
Re: [RFC] QoS params patch, Valdis.Kletnieks, (Wed Sep 26, 7:53 pm)
Re: [RFC] QoS params patch, Paul Mundt, (Wed Sep 26, 8:18 pm)
Re: [RFC] QoS params patch, Randy Dunlap, (Wed Sep 26, 9:05 pm)
Re: [RFC] QoS params patch, roel, (Thu Sep 27, 6:00 am)
Re: [RFC] QoS params patch, Mark Gross, (Thu Sep 27, 8:17 am)
Re: [RFC] QoS params patch, Mark Gross, (Thu Sep 27, 8:36 am)
Re: [RFC] QoS params patch, Mark Gross, (Thu Sep 27, 8:37 am)
Re: [RFC] QoS params patch, Mark Gross, (Thu Sep 27, 9:21 am)
Re: [RFC] QoS params patch update., Mark Gross, (Thu Sep 27, 1:17 pm)
Re: [RFC] QoS params patch update., Paul Mundt, (Thu Sep 27, 5:08 pm)
Re: [RFC] QoS params patch, Andrew Morton, (Thu Sep 27, 11:25 pm)
Re: [RFC] QoS params patch, Paul Mundt, (Thu Sep 27, 11:41 pm)
Re: [RFC] QoS params patch, Mark Gross, (Fri Sep 28, 10:19 am)
Re: [RFC] QoS params patch, Mark Gross, (Fri Sep 28, 10:22 am)
Re: [RFC] QoS params patch, Andrew Morton, (Fri Sep 28, 11:51 am)
Re: [RFC] QoS params patch, Mark Gross, (Mon Oct 1, 9:11 am)