* [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files
@ 2007-12-12 2:38 Dhaval Giani
2007-12-12 5:35 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Dhaval Giani @ 2007-12-12 2:38 UTC (permalink / raw)
To: gregkh, lkml, Ingo Molnar; +Cc: Andrew Morton, Srivatsa Vaddagiri, Balbir Singh
This patch adds documentation about /sys/kernel/uids/<uid>/cpu_share
to Documentation/ABI.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
---
Documentation/ABI/testing/sysfs-kernel-uids | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: current/Documentation/ABI/testing/sysfs-kernel-uids
===================================================================
--- /dev/null
+++ current/Documentation/ABI/testing/sysfs-kernel-uids
@@ -0,0 +1,10 @@
+What: /sys/kernel/uids/<uid>/cpu_shares
+Date: December 2007
+Contact: Dhaval Giani <dhaval@linux.vnet.ibm.com>
+ Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
+Description:
+ The /sys/kernel/uids/<uid>/cpu_shares tunable is used
+ to set the cpu bandwidth a user is allowed. This is a
+ propotional value. What that means is that if there
+ are two users logged in, each with shares 1024, they
+ will get equal CPU bandwidth.
--
regards,
Dhaval
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files
2007-12-12 2:38 [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files Dhaval Giani
@ 2007-12-12 5:35 ` Greg KH
2007-12-12 5:48 ` Dhaval Giani
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2007-12-12 5:35 UTC (permalink / raw)
To: Dhaval Giani
Cc: lkml, Ingo Molnar, Andrew Morton, Srivatsa Vaddagiri, Balbir Singh
On Wed, Dec 12, 2007 at 08:08:36AM +0530, Dhaval Giani wrote:
>
> This patch adds documentation about /sys/kernel/uids/<uid>/cpu_share
> to Documentation/ABI.
>
> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
>
> ---
> Documentation/ABI/testing/sysfs-kernel-uids | 10 ++++++++++
> 1 files changed, 10 insertions(+)
>
> Index: current/Documentation/ABI/testing/sysfs-kernel-uids
> ===================================================================
> --- /dev/null
> +++ current/Documentation/ABI/testing/sysfs-kernel-uids
> @@ -0,0 +1,10 @@
> +What: /sys/kernel/uids/<uid>/cpu_shares
> +Date: December 2007
> +Contact: Dhaval Giani <dhaval@linux.vnet.ibm.com>
> + Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
> +Description:
> + The /sys/kernel/uids/<uid>/cpu_shares tunable is used
> + to set the cpu bandwidth a user is allowed. This is a
> + propotional value. What that means is that if there
> + are two users logged in, each with shares 1024, they
> + will get equal CPU bandwidth.
Hm, how about describing the units here? Can you put "10" in each file
and everyone will get the same share? 100? 1? 1024 seems like an odd
"share" number. Unless there is some other document you wish to refer
people to do help describe these values?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files
2007-12-12 5:35 ` Greg KH
@ 2007-12-12 5:48 ` Dhaval Giani
2007-12-12 9:58 ` Ingo Molnar
2007-12-15 0:11 ` patch add-documentation-for-fair_user_sched-sysfs-files.patch added to gregkh-2.6 tree gregkh
0 siblings, 2 replies; 7+ messages in thread
From: Dhaval Giani @ 2007-12-12 5:48 UTC (permalink / raw)
To: Greg KH
Cc: lkml, Ingo Molnar, Andrew Morton, Srivatsa Vaddagiri, Balbir Singh
On Tue, Dec 11, 2007 at 09:35:56PM -0800, Greg KH wrote:
> On Wed, Dec 12, 2007 at 08:08:36AM +0530, Dhaval Giani wrote:
> >
> > This patch adds documentation about /sys/kernel/uids/<uid>/cpu_share
> > to Documentation/ABI.
> >
> > Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
> >
> > ---
> > Documentation/ABI/testing/sysfs-kernel-uids | 10 ++++++++++
> > 1 files changed, 10 insertions(+)
> >
> > Index: current/Documentation/ABI/testing/sysfs-kernel-uids
> > ===================================================================
> > --- /dev/null
> > +++ current/Documentation/ABI/testing/sysfs-kernel-uids
> > @@ -0,0 +1,10 @@
> > +What: /sys/kernel/uids/<uid>/cpu_shares
> > +Date: December 2007
> > +Contact: Dhaval Giani <dhaval@linux.vnet.ibm.com>
> > + Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
> > +Description:
> > + The /sys/kernel/uids/<uid>/cpu_shares tunable is used
> > + to set the cpu bandwidth a user is allowed. This is a
> > + propotional value. What that means is that if there
> > + are two users logged in, each with shares 1024, they
> > + will get equal CPU bandwidth.
>
> Hm, how about describing the units here? Can you put "10" in each file
> and everyone will get the same share? 100? 1? 1024 seems like an odd
> "share" number. Unless there is some other document you wish to refer
> people to do help describe these values?
>
It is proportional. That is, if two users have same value for shares,
they will get equal bandwidth on the CPU. If they are in the ratio 1:2,
then they will share it in that ratio. I've updated the patch for this.
Hope it is clearer.
Thanks,
--
This patch adds documentation about /sys/kernel/uids/<uid>/cpu_share
to Documentation/ABI.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
---
Documentation/ABI/testing/sysfs-kernel-uids | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: current/Documentation/ABI/testing/sysfs-kernel-uids
===================================================================
--- /dev/null
+++ current/Documentation/ABI/testing/sysfs-kernel-uids
@@ -0,0 +1,14 @@
+What: /sys/kernel/uids/<uid>/cpu_shares
+Date: December 2007
+Contact: Dhaval Giani <dhaval@linux.vnet.ibm.com>
+ Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
+Description:
+ The /sys/kernel/uids/<uid>/cpu_shares tunable is used
+ to set the cpu bandwidth a user is allowed. This is a
+ propotional value. What that means is that if there
+ are two users logged in, each with an equal number of
+ shares, then they will get equal CPU bandwidth. Another
+ example would be, if User A has shares = 1024 and user
+ B has shares = 2048, User B will get twice the CPU
+ bandwidth user A will. For more details refer
+ Documentation/sched-design-CFS.txt
--
regards,
Dhaval
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files
2007-12-12 5:48 ` Dhaval Giani
@ 2007-12-12 9:58 ` Ingo Molnar
2007-12-12 10:16 ` Ingo Molnar
2007-12-15 0:11 ` patch add-documentation-for-fair_user_sched-sysfs-files.patch added to gregkh-2.6 tree gregkh
1 sibling, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2007-12-12 9:58 UTC (permalink / raw)
To: Dhaval Giani
Cc: Greg KH, lkml, Andrew Morton, Srivatsa Vaddagiri, Balbir Singh
* Dhaval Giani <dhaval@linux.vnet.ibm.com> wrote:
> > Hm, how about describing the units here? Can you put "10" in each
> > file and everyone will get the same share? 100? 1? 1024 seems
> > like an odd "share" number. Unless there is some other document you
> > wish to refer people to do help describe these values?
>
> It is proportional. That is, if two users have same value for shares,
> they will get equal bandwidth on the CPU. If they are in the ratio
> 1:2, then they will share it in that ratio. I've updated the patch for
> this. Hope it is clearer.
thanks, applied.
Ingo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files
2007-12-12 9:58 ` Ingo Molnar
@ 2007-12-12 10:16 ` Ingo Molnar
2007-12-14 22:24 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2007-12-12 10:16 UTC (permalink / raw)
To: Dhaval Giani
Cc: Greg KH, lkml, Andrew Morton, Srivatsa Vaddagiri, Balbir Singh
* Ingo Molnar <mingo@elte.hu> wrote:
>
> * Dhaval Giani <dhaval@linux.vnet.ibm.com> wrote:
>
> > > Hm, how about describing the units here? Can you put "10" in each
> > > file and everyone will get the same share? 100? 1? 1024 seems
> > > like an odd "share" number. Unless there is some other document you
> > > wish to refer people to do help describe these values?
> >
> > It is proportional. That is, if two users have same value for shares,
> > they will get equal bandwidth on the CPU. If they are in the ratio
> > 1:2, then they will share it in that ratio. I've updated the patch for
> > this. Hope it is clearer.
>
> thanks, applied.
unless Greg wants to push this via the sysfs git tree?
Ingo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files
2007-12-12 10:16 ` Ingo Molnar
@ 2007-12-14 22:24 ` Greg KH
0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2007-12-14 22:24 UTC (permalink / raw)
To: Ingo Molnar
Cc: Dhaval Giani, lkml, Andrew Morton, Srivatsa Vaddagiri, Balbir Singh
On Wed, Dec 12, 2007 at 11:16:45AM +0100, Ingo Molnar wrote:
>
> * Ingo Molnar <mingo@elte.hu> wrote:
>
> >
> > * Dhaval Giani <dhaval@linux.vnet.ibm.com> wrote:
> >
> > > > Hm, how about describing the units here? Can you put "10" in each
> > > > file and everyone will get the same share? 100? 1? 1024 seems
> > > > like an odd "share" number. Unless there is some other document you
> > > > wish to refer people to do help describe these values?
> > >
> > > It is proportional. That is, if two users have same value for shares,
> > > they will get equal bandwidth on the CPU. If they are in the ratio
> > > 1:2, then they will share it in that ratio. I've updated the patch for
> > > this. Hope it is clearer.
> >
> > thanks, applied.
>
> unless Greg wants to push this via the sysfs git tree?
Sure, I can do that, what's one more patch in my tree? :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* patch add-documentation-for-fair_user_sched-sysfs-files.patch added to gregkh-2.6 tree
2007-12-12 5:48 ` Dhaval Giani
2007-12-12 9:58 ` Ingo Molnar
@ 2007-12-15 0:11 ` gregkh
1 sibling, 0 replies; 7+ messages in thread
From: gregkh @ 2007-12-15 0:11 UTC (permalink / raw)
To: dhaval, akpm, balbir, gregkh, linux-kernel, mingo, vatsa
This is a note to let you know that I've just added the patch titled
Subject: Add Documentation for FAIR_USER_SCHED sysfs files
to my gregkh-2.6 tree. Its filename is
add-documentation-for-fair_user_sched-sysfs-files.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
>From dhaval@linux.vnet.ibm.com Tue Dec 11 21:51:17 2007
From: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Date: Wed, 12 Dec 2007 11:18:59 +0530
Subject: Add Documentation for FAIR_USER_SCHED sysfs files
To: Greg KH <gregkh@suse.de>
Cc: lkml <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>, Andrew Morton <akpm@linux-foundation.org>, Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>, Balbir Singh <balbir@in.ibm.com>
Message-ID: <20071212054859.GC1486@linux.vnet.ibm.com>
Content-Disposition: inline
This patch adds documentation about /sys/kernel/uids/<uid>/cpu_share
to Documentation/ABI.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
Documentation/ABI/testing/sysfs-kernel-uids | 14 ++++++++++++++
1 file changed, 14 insertions(+)
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-kernel-uids
@@ -0,0 +1,14 @@
+What: /sys/kernel/uids/<uid>/cpu_shares
+Date: December 2007
+Contact: Dhaval Giani <dhaval@linux.vnet.ibm.com>
+ Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
+Description:
+ The /sys/kernel/uids/<uid>/cpu_shares tunable is used
+ to set the cpu bandwidth a user is allowed. This is a
+ propotional value. What that means is that if there
+ are two users logged in, each with an equal number of
+ shares, then they will get equal CPU bandwidth. Another
+ example would be, if User A has shares = 1024 and user
+ B has shares = 2048, User B will get twice the CPU
+ bandwidth user A will. For more details refer
+ Documentation/sched-design-CFS.txt
Patches currently in gregkh-2.6 which might be from dhaval@linux.vnet.ibm.com are
driver/struct-user_info-sysfs.patch
driver/add-documentation-for-fair_user_sched-sysfs-files.patch
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-12-15 0:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-12 2:38 [PATCH] Add Documentation for FAIR_USER_SCHED sysfs files Dhaval Giani
2007-12-12 5:35 ` Greg KH
2007-12-12 5:48 ` Dhaval Giani
2007-12-12 9:58 ` Ingo Molnar
2007-12-12 10:16 ` Ingo Molnar
2007-12-14 22:24 ` Greg KH
2007-12-15 0:11 ` patch add-documentation-for-fair_user_sched-sysfs-files.patch added to gregkh-2.6 tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).