xen: document balloon driver sysfs files
PATCH 1/1 xen: document balloon driver sysfs files
From: David Vrabel <[email protected]>
Add ABI documentation for the balloon driver's sysfs files.
--- .../ABI/stable/sysfs-devices-system-xen_memory | 72 ++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-devices-system-xen_memory
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +72 -0
@@ -0,0 +1,72 @@ +What: /sys/devices/system/xen_memory/xen_memory0/max_retry_count +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The maximum number of times the balloon driver will + attempt to increase the balloon before giving up. See + also 'retry_count' below. + +What: /sys/devices/system/xen_memory/xen_memory0/max_schedule_delay +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The limit that 'schedule_delay' (see below) will be + increased to. + +What: /sys/devices/system/xen_memory/xen_memory0/retry_count +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The current number of times that the balloon driver + has attempted to increase the size of the balloon. + +What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The time (in jiffies) to wait between attempts to + increase the balloon. Each time the balloon cannot be + increased, 'schedule_delay' is increased (until + 'max_schedule_delay' is reached). + +What: /sys/devices/system/xen_memory/xen_memory0/target +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The target number of pages to adjust this domain's + memory reservation to. + +What: /sys/devices/system/xen_memory/xen_memory0/target_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + As target above, except the value is in KiB. + +What: /sys/devices/system/xen_memory/xen_memory0/info/current_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + Current size (in KiB) of this domain's memory + reservation. + +What: /sys/devices/system/xen_memory/xen_memory0/info/high_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + Amount (in KiB) of high memory in the balloon. + +What: /sys/devices/system/xen_memory/xen_memory0/info/low_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + Amount (in KiB) of low (or normal) memory in the + balloon.
Signature · 1 line
1.7.2.5
Quoted 16 lines · David Vrabel
From: David Vrabel <[email protected]>
Add ABI documentation for the balloon driver's sysfs files.
Signed-off-by David Vrabel <[email protected]>--- .../ABI/stable/sysfs-devices-system-xen_memory | 72 ++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-devices-system-xen_memoryDocumentation/ABI/stable/sysfs-devices-system-xen_memory new file +0
-0
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 2
Quoted 2 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +2
-0@@ -0,0 +1,72 @@ +What: /sys/devices/system/xen_memory/xen_memory0/max_retry_count +Date: April 2008
May 2011
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 3
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26
2.6.39, git commit 95d2ac4a0c904942a4fecf815781ebd4171e7a30 and 40095de1f9082f058970b985a96d2fbef43f94f4.
Additionally, I think it is worth to add default value and special cases description (e.g. max_retry_count == 0 => RETRY_UNLIMITED). Please look into drivers/xen/{balloon.c,xen-balloon.c} and include/xen/balloon.h for details.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 11
Quoted 8 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +8
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The maximum number of times the balloon driver will + attempt to increase the balloon before giving up. See + also 'retry_count' below. + +What: /sys/devices/system/xen_memory/xen_memory0/max_schedule_delay +Date: April 2008
Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 12
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26
Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 19
Quoted 7 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +7
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The limit that 'schedule_delay' (see below) will be + increased to. + +What: /sys/devices/system/xen_memory/xen_memory0/retry_count +Date: April 2008
Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 20
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26
Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 27
Quoted 7 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +7
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The current number of times that the balloon driver + has attempted to increase the size of the balloon. + +What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: April 2008
Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 28
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26
Ditto.
Daniel
Konrad Rzeszutek Wilk
Reviewed-by Daniel KiperQuoted 71 lines · Daniel Kiper
Quoted 16 lines · David Vrabel
From: David Vrabel <[email protected]>
Add ABI documentation for the balloon driver's sysfs files.
Signed-off-by David Vrabel <[email protected]>--- .../ABI/stable/sysfs-devices-system-xen_memory | 72 ++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-devices-system-xen_memoryDocumentation/ABI/stable/sysfs-devices-system-xen_memory new file +0
-0Documentation/ABI/stable/sysfs-devices-system-xen_memory line 2
Quoted 2 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +2
-0@@ -0,0 +1,72 @@ +What: /sys/devices/system/xen_memory/xen_memory0/max_retry_count +Date: April 2008May 2011
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 3
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.262.6.39, git commit
95d2ac4a0c904942a4fecf815781ebd4171e7a30and40095de1f9082f058970b985a96d2fbef43f94f4.Additionally, I think it is worth to add default value and special cases description (e.g.
max_retry_count== 0 =>RETRY_UNLIMITED). Please look intodrivers/xen/{balloon.c,xen-balloon.c}andinclude/xen/balloon.hfor details.Documentation/ABI/stable/sysfs-devices-system-xen_memory line 11
Quoted 8 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +8
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The maximum number of times the balloon driver will + attempt to increase the balloon before giving up. See + also 'retry_count' below. + +What: /sys/devices/system/xen_memory/xen_memory0/max_schedule_delay +Date: April 2008Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 12
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 19
Quoted 7 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +7
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The limit that 'schedule_delay' (see below) will be + increased to. + +What: /sys/devices/system/xen_memory/xen_memory0/retry_count +Date: April 2008Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 20
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 27
Quoted 7 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +7
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The current number of times that the balloon driver + has attempted to increase the size of the balloon. + +What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: April 2008Ditto.
Quoted 5 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 28
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26Ditto.
Daniel
Daniel, how does this look ? I added your Reviewed-by, but if you want to make some more modifications I can certainly do so.
Quoted 1 line
From
d759668b660f111b6f35b632031eaf1a136a22f3Mon Sep 17 00:00:00 2001
From: David Vrabel <[email protected]>
Date: Wed, 26 Oct 2011 11:57:43 +0100
Subject: [PATCH] xen: document balloon driver sysfs files
Add ABI documentation for the balloon driver's sysfs files.
--- .../ABI/stable/sysfs-devices-system-xen_memory | 77 ++++++++++++++++++++ 1 files changed, 77 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-devices-system-xen_memory
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +77 -0
@@ -0,0 +1,77 @@ +What: /sys/devices/system/xen_memory/xen_memory0/max_retry_count +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The maximum number of times the balloon driver will + attempt to increase the balloon before giving up. See + also 'retry_count' below. + A value of zero means retry forever and is the default one. + +What: /sys/devices/system/xen_memory/xen_memory0/max_schedule_delay +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The limit that 'schedule_delay' (see below) will be + increased to. The default value is 32. + +What: /sys/devices/system/xen_memory/xen_memory0/retry_count +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The current number of times that the balloon driver + has attempted to increase the size of the balloon. + The default value is one. With max_retry_count being + zero (unlimited), this means that the driver will attempt + to retry with a 'schedule_delay' delay. + +What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The time (in jiffies) to wait between attempts to + increase the balloon. Each time the balloon cannot be + increased, 'schedule_delay' is increased (until + 'max_schedule_delay' is reached at which point it + will use that value). + +What: /sys/devices/system/xen_memory/xen_memory0/target +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The target number of pages to adjust this domain's + memory reservation to. + +What: /sys/devices/system/xen_memory/xen_memory0/target_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + As target above, except the value is in KiB. + +What: /sys/devices/system/xen_memory/xen_memory0/info/current_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + Current size (in KiB) of this domain's memory + reservation. + +What: /sys/devices/system/xen_memory/xen_memory0/info/high_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + Amount (in KiB) of high memory in the balloon. + +What: /sys/devices/system/xen_memory/xen_memory0/info/low_kb +Date: April 2008 +KernelVersion: 2.6.26 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + Amount (in KiB) of low (or normal) memory in the + balloon.
Signature · 1 line
1.7.7.1
Quoted 72 lines · Konrad Rzeszutek Wilk
Quoted 71 lines · Daniel Kiper
Quoted 16 lines · David Vrabel
From: David Vrabel <[email protected]>
Add ABI documentation for the balloon driver's sysfs files.
Signed-off-by David Vrabel <[email protected]>--- .../ABI/stable/sysfs-devices-system-xen_memory | 72 ++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-devices-system-xen_memoryDocumentation/ABI/stable/sysfs-devices-system-xen_memory new file +0
-0Documentation/ABI/stable/sysfs-devices-system-xen_memory line 2
Quoted 2 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +2
-0@@ -0,0 +1,72 @@ +What: /sys/devices/system/xen_memory/xen_memory0/max_retry_count +Date: April 2008May 2011
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 3
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.262.6.39, git commit
95d2ac4a0c904942a4fecf815781ebd4171e7a30and40095de1f9082f058970b985a96d2fbef43f94f4.Additionally, I think it is worth to add default value and special cases description (e.g.
max_retry_count== 0 =>RETRY_UNLIMITED). Please look intodrivers/xen/{balloon.c,xen-balloon.c}andinclude/xen/balloon.hfor details.Documentation/ABI/stable/sysfs-devices-system-xen_memory line 42
Quoted 8 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +8
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The maximum number of times the balloon driver will + attempt to increase the balloon before giving up. See + also 'retry_count' below. + +What: /sys/devices/system/xen_memory/xen_memory0/max_schedule_delay +Date: April 2008Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 12
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 42
Quoted 7 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +7
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The limit that 'schedule_delay' (see below) will be + increased to. + +What: /sys/devices/system/xen_memory/xen_memory0/retry_count +Date: April 2008Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 20
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26Ditto.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 42
Quoted 7 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +7
-0+Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The current number of times that the balloon driver + has attempted to increase the size of the balloon. + +What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: April 2008Ditto.
Quoted 8 lines
Quoted 5 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 28
Quoted 1 line
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +1
-0+KernelVersion: 2.6.26Ditto.
Daniel
Daniel, how does this look ? I added your Reviewed-by, but if you want to make some more modifications I can certainly do so.
Thanks for correcting that. I think that I have found only one small issue. Please look below.
Quoted 47 lines
Quoted 1 line
From
d759668b660f111b6f35b632031eaf1a136a22f3Mon Sep 17 00:00:00 2001From: David Vrabel <[email protected]>
Date: Wed, 26 Oct 2011 11:57:43 +0100
Subject: [PATCH] xen: document balloon driver sysfs filesAdd ABI documentation for the balloon driver's sysfs files.
Signed-off-by David Vrabel <[email protected]>Reviewed-by Daniel Kiper <[email protected]>[v2: Added comments from Daniel]Signed-off-by Konrad Rzeszutek Wilk <[email protected]>--- .../ABI/stable/sysfs-devices-system-xen_memory | 77 ++++++++++++++++++++ 1 files changed, 77 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/stable/sysfs-devices-system-xen_memoryDocumentation/ABI/stable/sysfs-devices-system-xen_memory new file +25
-0@@ -0,0 +1,77 @@ +What: /sys/devices/system/xen_memory/xen_memory0/max_retry_count +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The maximum number of times the balloon driver will + attempt to increase the balloon before giving up. See + also 'retry_count' below. + A value of zero means retry forever and is the default one. + +What: /sys/devices/system/xen_memory/xen_memory0/max_schedule_delay +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The limit that 'schedule_delay' (see below) will be + increased to. The default value is 32. + +What: /sys/devices/system/xen_memory/xen_memory0/retry_count +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The current number of times that the balloon driver + has attempted to increase the size of the balloon.
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 35
Quoted 10 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +10
-0+ The default value is one. With max_retry_count being + zero (unlimited), this means that the driver will attempt + to retry with a 'schedule_delay' delay. + +What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The time (in jiffies) to wait between attempts to
It is in seconds. Please look at the end of balloon_process() funtion. This value is multiplicated by HZ constant (which indeed is scaled in jiffies, however, I think in this case second is better unit).
Daniel
Quoted 3 lines · Daniel Kiper
Quoted 2 lines · Konrad Rzeszutek Wilk
Daniel, how does this look ? I added your Reviewed-by, but if you want to make some more modifications I can certainly do so.
Thanks for this Konrad, I've been swamped by customer issues lately.
Quoted 10 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 35
Quoted 6 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +6
-0+What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The time (in jiffies) to wait between attempts toIt is in seconds. Please look at the end of
balloon_process()funtion. This value is multiplicated by HZ constant (which indeed is scaled in jiffies, however, I think in this case second is better unit).
I've posted a new version with this correction.
David
Quoted 18 lines · David Vrabel
Quoted 3 lines · Daniel Kiper
Quoted 2 lines · Konrad Rzeszutek Wilk
Daniel, how does this look ? I added your Reviewed-by, but if you want to make some more modifications I can certainly do so.
Thanks for this Konrad, I've been swamped by customer issues lately.
Quoted 10 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory line 35
Quoted 6 lines
Documentation/ABI/stable/sysfs-devices-system-xen_memory new file +6
-0+What: /sys/devices/system/xen_memory/xen_memory0/schedule_delay +Date: May 2011 +KernelVersion: 2.6.39 +Contact: Konrad Rzeszutek Wilk <[email protected]> +Description: + The time (in jiffies) to wait between attempts toIt is in seconds. Please look at the end of
balloon_process()funtion. This value is multiplicated by HZ constant (which indeed is scaled in jiffies, however, I think in this case second is better unit).
Quoted 1 line
I've posted a new version with this correction.
Thanks. Now it is OK.
Daniel