Skip to contentSkip to conversation

mm: remove noswapaccount kernel parameter

PATCH In review Américo Wang 2 participants 7 messages May 23, 2011 – Jun 2, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: remove noswapaccount kernel parameter

noswapaccount is deprecated by swapaccount=0, and it is scheduled to be removed in 2.6.40.

Cc Andrew Morton <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Michal Hocko <[email protected]>

---

 Documentation/feature-removal-schedule.txt |   16 ----------------
 Documentation/kernel-parameters.txt        |    3 ---
 init/Kconfig                               |    4 ++--
 mm/memcontrol.c                            |    8 --------
 mm/page_cgroup.c                           |    2 +-
 5 files changed, 3 insertions(+), 30 deletions(-)
Documentation/feature-removal-schedule.txt +0 -16
index 4cba260..688328a 100644
@@ -519,22 +519,6 @@ Files:	net/netfilter/xt_connlimit.c
 
 ----------------------------
 
-What:	noswapaccount kernel command line parameter
-When:	2.6.40
-Why:	The original implementation of memsw feature enabled by
-	CONFIG_CGROUP_MEM_RES_CTLR_SWAP could be disabled by the noswapaccount
-	kernel parameter (introduced in 2.6.29-rc1). Later on, this decision
-	turned out to be not ideal because we cannot have the feature compiled
-	in and disabled by default and let only interested to enable it
-	(e.g. general distribution kernels might need it). Therefore we have
-	added swapaccount[=0|1] parameter (introduced in 2.6.37) which provides
-	the both possibilities. If we remove noswapaccount we will have
-	less command line parameters with the same functionality and we
-	can also cleanup the parameter handling a bit ().
-Who:	Michal Hocko <[email protected]>
-
-----------------------------
-
 What:	ipt_addrtype match include file
 When:	2012
 Why:	superseded by xt_addrtype
Documentation/kernel-parameters.txt +0 -3
index c603ef7..1931450 100644
@@ -1777,9 +1777,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
 
 	nosoftlockup	[KNL] Disable the soft-lockup detector.
 
-	noswapaccount	[KNL] Disable accounting of swap in memory resource
-			controller. (See Documentation/cgroups/memory.txt)
-
 	nosync		[HW,M68K] Disables sync negotiation for all devices.
 
 	notsc		[BUGS=X86-32] Disable Time Stamp Counter
init/Kconfig +2 -2
index c8b172e..ef46c0d 100644
@@ -673,7 +673,7 @@ config CGROUP_MEM_RES_CTLR_SWAP
 	  be careful about enabling this. When memory resource controller
 	  is disabled by boot option, this will be automatically disabled and
 	  there will be no overhead from this. Even when you set this config=y,
-	  if boot option "noswapaccount" is set, swap will not be accounted.
+	  if boot option "swapaccount=0" is set, swap will not be accounted.
 	  Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
 	  size is 4096bytes, 512k per 1Gbytes of swap.
 config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
@@ -688,7 +688,7 @@ config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
 	  parameter should have this option unselected.
 	  For those who want to have the feature enabled by default should
 	  select this option (if, for some reason, they need to disable it
-	  then noswapaccount does the trick).
+	  then swapaccount=0 does the trick).
 
 config CGROUP_PERF
 	bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
mm/memcontrol.c +0 -8
index 010f916..e992fdf 100644
@@ -5176,12 +5176,4 @@ static int __init enable_swap_account(char *s)
 	return 1;
 }
 __setup("swapaccount", enable_swap_account);
-
-static int __init disable_swap_account(char *s)
-{
-	printk_once("noswapaccount is deprecated and will be removed in 2.6.40. Use swapaccount=0 instead\n");
-	enable_swap_account("=0");
-	return 1;
-}
-__setup("noswapaccount", disable_swap_account);
 #endif
mm/page_cgroup.c +1 -1
index 2daadc3..b7bc8c0 100644
@@ -502,7 +502,7 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
 nomem:
 	printk(KERN_INFO "couldn't allocate enough memory for swap_cgroup.\n");
 	printk(KERN_INFO
-		"swap_cgroup can be disabled by noswapaccount boot option\n");
+		"swap_cgroup can be disabled by swapaccount=0 boot option\n");
 	return -ENOMEM;
 }
 
#1 lore raw
Quoted 2 lines · Am??rico Wang

noswapaccount is deprecated by swapaccount=0, and it is scheduled to be removed in 2.6.40.

Similar patch is already in the Andrew's tree (memsw-remove-noswapaccount-kernel-parameter.patch). Andrew, are you going to push it?
Btw. the patch is missing documentation part which is present here.

Quoted 108 lines
Cc Andrew Morton <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Michal Hocko <[email protected]>

---

 Documentation/feature-removal-schedule.txt |   16 ----------------
 Documentation/kernel-parameters.txt        |    3 ---
 init/Kconfig                               |    4 ++--
 mm/memcontrol.c                            |    8 --------
 mm/page_cgroup.c                           |    2 +-
 5 files changed, 3 insertions(+), 30 deletions(-)
Documentation/feature-removal-schedule.txt +0 -16
index 4cba260..688328a 100644
@@ -519,22 +519,6 @@ Files:	net/netfilter/xt_connlimit.c
 
 ----------------------------
 
-What:	noswapaccount kernel command line parameter
-When:	2.6.40
-Why:	The original implementation of memsw feature enabled by
-	CONFIG_CGROUP_MEM_RES_CTLR_SWAP could be disabled by the noswapaccount
-	kernel parameter (introduced in 2.6.29-rc1). Later on, this decision
-	turned out to be not ideal because we cannot have the feature compiled
-	in and disabled by default and let only interested to enable it
-	(e.g. general distribution kernels might need it). Therefore we have
-	added swapaccount[=0|1] parameter (introduced in 2.6.37) which provides
-	the both possibilities. If we remove noswapaccount we will have
-	less command line parameters with the same functionality and we
-	can also cleanup the parameter handling a bit ().
-Who:	Michal Hocko <[email protected]>
-
-----------------------------
-
 What:	ipt_addrtype match include file
 When:	2012
 Why:	superseded by xt_addrtype
Documentation/kernel-parameters.txt +0 -3
index c603ef7..1931450 100644
@@ -1777,9 +1777,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
 
 	nosoftlockup	[KNL] Disable the soft-lockup detector.
 
-	noswapaccount	[KNL] Disable accounting of swap in memory resource
-			controller. (See Documentation/cgroups/memory.txt)
-
 	nosync		[HW,M68K] Disables sync negotiation for all devices.
 
 	notsc		[BUGS=X86-32] Disable Time Stamp Counter
init/Kconfig +2 -2
index c8b172e..ef46c0d 100644
@@ -673,7 +673,7 @@ config CGROUP_MEM_RES_CTLR_SWAP
 	  be careful about enabling this. When memory resource controller
 	  is disabled by boot option, this will be automatically disabled and
 	  there will be no overhead from this. Even when you set this config=y,
-	  if boot option "noswapaccount" is set, swap will not be accounted.
+	  if boot option "swapaccount=0" is set, swap will not be accounted.
 	  Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
 	  size is 4096bytes, 512k per 1Gbytes of swap.
 config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
@@ -688,7 +688,7 @@ config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
 	  parameter should have this option unselected.
 	  For those who want to have the feature enabled by default should
 	  select this option (if, for some reason, they need to disable it
-	  then noswapaccount does the trick).
+	  then swapaccount=0 does the trick).
 
 config CGROUP_PERF
 	bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
mm/memcontrol.c +0 -8
index 010f916..e992fdf 100644
@@ -5176,12 +5176,4 @@ static int __init enable_swap_account(char *s)
 	return 1;
 }
 __setup("swapaccount", enable_swap_account);
-
-static int __init disable_swap_account(char *s)
-{
-	printk_once("noswapaccount is deprecated and will be removed in 2.6.40. Use swapaccount=0 instead\n");
-	enable_swap_account("=0");
-	return 1;
-}
-__setup("noswapaccount", disable_swap_account);
 #endif
mm/page_cgroup.c +1 -1
index 2daadc3..b7bc8c0 100644
@@ -502,7 +502,7 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
 nomem:
 	printk(KERN_INFO "couldn't allocate enough memory for swap_cgroup.\n");
 	printk(KERN_INFO
-		"swap_cgroup can be disabled by noswapaccount boot option\n");
+		"swap_cgroup can be disabled by swapaccount=0 boot option\n");
 	return -ENOMEM;
 }
 
Signature · 6 lines
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic
#2 lore raw
Quoted 5 lines · Michal Hocko
Quoted 2 lines · Am??rico Wang

noswapaccount is deprecated by swapaccount=0, and it is scheduled to be removed in 2.6.40.

Similar patch is already in the Andrew's tree

Ah, my google search failed to find it. :-/

Quoted 4 lines

(memsw-remove-noswapaccount-kernel-parameter.patch). Andrew, are you going to push it?
Btw. the patch is missing documentation part which is present here.

Hmm, maybe I should send a delta patch... Andrew?

Thanks!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#3 lore raw
Quoted 7 lines · Am??rico Wang
Quoted 5 lines · Michal Hocko
Quoted 2 lines · Am??rico Wang

noswapaccount is deprecated by swapaccount=0, and it is scheduled to be removed in 2.6.40.

Similar patch is already in the Andrew's tree

Quoted 8 lines

Ah, my google search failed to find it. :-/

Quoted 4 lines

(memsw-remove-noswapaccount-kernel-parameter.patch). Andrew, are you going to push it?
Btw. the patch is missing documentation part which is present here.

Hmm, maybe I should send a delta patch... Andrew?

Have you reposted that patch? The primary patch which removes the paramter already hit the Linus tree (a2c8990a).

Signature · 13 lines
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#4 lore raw
Quoted 15 lines · Michal Hocko
Quoted 14 lines · Am??rico Wang
Quoted 5 lines · Michal Hocko
Quoted 2 lines · Am??rico Wang

noswapaccount is deprecated by swapaccount=0, and it is scheduled to be removed in 2.6.40.

Similar patch is already in the Andrew's tree

Ah, my google search failed to find it. :-/

Quoted 4 lines

(memsw-remove-noswapaccount-kernel-parameter.patch). Andrew, are you going to push it?
Btw. the patch is missing documentation part which is present here.

Quoted 5 lines
Quoted 1 line

Hmm, maybe I should send a delta patch... Andrew?

Have you reposted that patch? The primary patch which removes the paramter already hit the Linus tree (a2c8990a).

Cool, will resend it!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#5 lore raw

PATCH 1/1 mm: remove the leftovers of noswapaccount

In reply to Michal Hocko

In commit a2c8990aed5ab (memsw: remove noswapaccount kernel parameter), Michal forgot to remove some left pieces of noswapaccount in the tree, this patch removes them all.

Cc Michal Hocko <[email protected]>

---

Documentation/feature-removal-schedule.txt +0 -16
index 1a9446b..d27e1c4 100644
@@ -545,22 +545,6 @@ Files:	net/netfilter/xt_connlimit.c
 
 ----------------------------
 
-What:	noswapaccount kernel command line parameter
-When:	2.6.40
-Why:	The original implementation of memsw feature enabled by
-	CONFIG_CGROUP_MEM_RES_CTLR_SWAP could be disabled by the noswapaccount
-	kernel parameter (introduced in 2.6.29-rc1). Later on, this decision
-	turned out to be not ideal because we cannot have the feature compiled
-	in and disabled by default and let only interested to enable it
-	(e.g. general distribution kernels might need it). Therefore we have
-	added swapaccount[=0|1] parameter (introduced in 2.6.37) which provides
-	the both possibilities. If we remove noswapaccount we will have
-	less command line parameters with the same functionality and we
-	can also cleanup the parameter handling a bit ().
-Who:	Michal Hocko <[email protected]>
-
-----------------------------
-
 What:	ipt_addrtype match include file
 When:	2012
 Why:	superseded by xt_addrtype
init/Kconfig +2 -2
index ebafac4..e657952 100644
@@ -665,7 +665,7 @@ config CGROUP_MEM_RES_CTLR_SWAP
 	  be careful about enabling this. When memory resource controller
 	  is disabled by boot option, this will be automatically disabled and
 	  there will be no overhead from this. Even when you set this config=y,
-	  if boot option "noswapaccount" is set, swap will not be accounted.
+	  if boot option "swapaccount=0" is set, swap will not be accounted.
 	  Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
 	  size is 4096bytes, 512k per 1Gbytes of swap.
 config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
@@ -680,7 +680,7 @@ config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
 	  parameter should have this option unselected.
 	  For those who want to have the feature enabled by default should
 	  select this option (if, for some reason, they need to disable it
-	  then noswapaccount does the trick).
+	  then swapaccount=0 does the trick).
 
 config CGROUP_PERF
 	bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
mm/page_cgroup.c +1 -1
index 74ccff6..2eba968 100644
@@ -502,7 +502,7 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
 nomem:
 	printk(KERN_INFO "couldn't allocate enough memory for swap_cgroup.\n");
 	printk(KERN_INFO
-		"swap_cgroup can be disabled by noswapaccount boot option\n");
+		"swap_cgroup can be disabled by swapaccount=0 boot option\n");
 	return -ENOMEM;
 }
 
Acked-by on v1 1/1
#6 lore raw

Re: [Patch] mm: remove the leftovers of noswapaccount

Quoted 7 lines · Americo Wang

In commit a2c8990aed5ab (memsw: remove noswapaccount kernel parameter), Michal forgot to remove some left pieces of noswapaccount in the tree, this patch removes them all.

Cc Michal Hocko <[email protected]>

Thanks

Signature · 13 lines
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>