remove unused /proc/sys/vm/kswapd and swapctl.h
Subsystems (13)
PATCH 1/1 remove unused /proc/sys/vm/kswapd and swapctl.h
You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
===================================================================
[email protected], 2002-07-29 15:17:43+02:00, [email protected]
VM: remove unused /proc/sys/vm/kswapd and swapctl.h
These were totally unused for a long time. It's interesting how many files include swapctl.h, though..
b/Documentation/sysctl/vm.txt | 33 --------------------------------- b/arch/arm/mm/init.c | 1 - b/arch/mips/mm/init.c | 1 - b/arch/mips64/mm/init.c | 1 - b/arch/sparc/mm/init.c | 1 - b/arch/sparc64/mm/init.c | 1 - b/fs/coda/sysctl.c | 1 - b/fs/intermezzo/sysctl.c | 1 - b/include/linux/sysctl.h | 10 +++++----- b/kernel/suspend.c | 1 - b/kernel/sysctl.c | 3 --- b/mm/bootmem.c | 1 - b/mm/memory.c | 1 - b/mm/mmap.c | 1 - b/mm/oom_kill.c | 1 - b/mm/swap.c | 7 ------- b/mm/swap_state.c | 1 - b/mm/swapfile.c | 1 - b/mm/vmscan.c | 1 - include/linux/swapctl.h | 13 ------------- 20 files changed, 5 insertions, 76 deletions
Documentation/sysctl/vm.txt +0 -34
@@ -16,7 +16,6 @@ files can be found in mm/swap.c. Currently, these files are in /proc/sys/vm: -- kswapd - overcommit_memory - page-cluster - dirty_async_ratio
@@ -31,39 +30,6 @@ dirty_sync_ratio dirty_writeback_centisecs: See Documentation/filesystems/proc.txt - -============================================================== - -kswapd: - -Kswapd is the kernel swapout daemon. That is, kswapd is that -piece of the kernel that frees memory when it gets fragmented -or full. Since every system is different, you'll probably want -some control over this piece of the system. - -The numbers in this page correspond to the numbers in the -struct pager_daemon {tries_base, tries_min, swap_cluster -}; The tries_base and swap_cluster probably have the -largest influence on system performance. - -tries_base The maximum number of pages kswapd tries to - free in one round is calculated from this - number. Usually this number will be divided - by 4 or 8 (see mm/vmscan.c), so it isn't as - big as it looks. - When you need to increase the bandwidth to/from - swap, you'll want to increase this number. -tries_min This is the minimum number of times kswapd - tries to free a page each time it is called. - Basically it's just there to make sure that - kswapd frees some pages even when it's being - called with minimum priority. -swap_cluster This is the number of pages kswapd writes in - one turn. You want this large so that kswapd - does it's I/O in large chunks and the disk - doesn't have to seek often, but you don't want - it to be too large since that would flood the - request queue. ==============================================================
arch/arm/mm/init.c +0 -1
@@ -18,7 +18,6 @@#include <linux/mman.h> #include <linux/mm.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/smp.h> #include <linux/init.h> #include <linux/bootmem.h>
arch/mips/mm/init.c +0 -1
@@ -24,7 +24,6 @@#include <linux/bootmem.h> #include <linux/highmem.h> #include <linux/swap.h> -#include <linux/swapctl.h> #ifdef CONFIG_BLK_DEV_INITRD #include <linux/blk.h> #endif
arch/mips64/mm/init.c +0 -1
@@ -21,7 +21,6 @@#include <linux/bootmem.h> #include <linux/highmem.h> #include <linux/swap.h> -#include <linux/swapctl.h> #ifdef CONFIG_BLK_DEV_INITRD #include <linux/blk.h> #endif
arch/sparc/mm/init.c +0 -1
@@ -18,7 +18,6 @@#include <linux/mman.h> #include <linux/mm.h> #include <linux/swap.h> -#include <linux/swapctl.h> #ifdef CONFIG_BLK_DEV_INITRD #include <linux/blk.h> #endif
arch/sparc64/mm/init.c +0 -1
@@ -15,7 +15,6 @@#include <linux/slab.h> #include <linux/blk.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/pagemap.h> #include <linux/fs.h> #include <linux/seq_file.h>
fs/coda/sysctl.c +0 -1
@@ -15,7 +15,6 @@#include <linux/time.h> #include <linux/mm.h> #include <linux/sysctl.h> -#include <linux/swapctl.h> #include <linux/proc_fs.h> #include <linux/slab.h> #include <linux/stat.h>
fs/intermezzo/sysctl.c +0 -1
@@ -8,7 +8,6 @@#include <linux/time.h> #include <linux/mm.h> #include <linux/sysctl.h> -#include <linux/swapctl.h> #include <linux/proc_fs.h> #include <linux/slab.h> #include <linux/vmalloc.h>
include/linux/swapctl.h deleted +0 -13
@@ -1,13 +0,0 @@ -#ifndef _LINUX_SWAPCTL_H -#define _LINUX_SWAPCTL_H - -typedef struct pager_daemon_v1 -{ -unsigned int tries_base; -unsigned int tries_min; -unsigned int swap_cluster; -}pager_daemon_v1 ; -typedef pager_daemon_v1 pager_daemon_t ; -extern pager_daemon_t pager_daemon; - -#endif /* _LINUX_SWAPCTL_H */
include/linux/sysctl.h +5 -5
@@ -136,12 +136,12 @@VM_UNUSED1 =1 ,/* was: struct: Set vm swapping control */ VM_UNUSED2 =2 ,/* was; int: Linear or sqrt() swapout for hogs */ VM_UNUSED3 =3 ,/* was: struct: Set free page thresholds */ -VM_BDFLUSH_UNUSED =4 ,/* Spare */ +VM_UNUSED4 =4 ,/* Spare */ VM_OVERCOMMIT_MEMORY =5 ,/* Turn off the virtual memory safety limit */ -VM_UNUSED4 =6 ,/* was: struct: Set buffer memory thresholds */ -VM_UNUSED5 =7 ,/* was: struct: Set cache memory thresholds */ -VM_PAGERDAEMON =8 ,/* struct: Control kswapd behaviour */ -VM_UNUSED6 =9 ,/* was: struct: Set page table cache parameters */ +VM_UNUSED5 =6 ,/* was: struct: Set buffer memory thresholds */ +VM_UNUSED7 =7 ,/* was: struct: Set cache memory thresholds */ +VM_UNUSED8 =8 ,/* was: struct: Control kswapd behaviour */ +VM_UNUSED9 =9 ,/* was: struct: Set page table cache parameters */ VM_PAGE_CLUSTER =10 ,/* int: set number of pages to swap together */ VM_DIRTY_BACKGROUND =11 ,/* dirty_background_ratio */ VM_DIRTY_ASYNC=12, /* dirty_async_ratio */
kernel/suspend.c +0 -1
@@ -36,7 +36,6 @@#include <linux/module.h> #include <linux/mm.h> -#include <linux/swapctl.h> #include <linux/suspend.h> #include <linux/smp_lock.h> #include <linux/file.h>
kernel/sysctl.c +0 -3
@@ -22,7 +22,6 @@#include <linux/mm.h> #include <linux/slab.h> #include <linux/sysctl.h> -#include <linux/swapctl.h> #include <linux/proc_fs.h> #include <linux/ctype.h> #include <linux/utsname.h>
@@ -272,8 +271,6 @@ {VM_OVERCOMMIT_RATIO ,"overcommit_ratio" , &sysctl_overcommit_ratio,sizeof (sysctl_overcommit_ratio),0644 , NULL, &proc_dointvec}, - {VM_PAGERDAEMON, "kswapd", - &pager_daemon, sizeof(pager_daemon_t), 0644, NULL, &proc_dointvec}, {VM_PAGE_CLUSTER, "page-cluster", &page_cluster, sizeof(int), 0644, NULL, &proc_dointvec}, {VM_DIRTY_BACKGROUND, "dirty_background_ratio",
mm/bootmem.c +0 -1
@@ -12,7 +12,6 @@#include <linux/mm.h> #include <linux/kernel_stat.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/interrupt.h> #include <linux/init.h> #include <linux/bootmem.h>
mm/memory.c +0 -1
@@ -41,7 +41,6 @@#include <linux/mman.h> #include <linux/swap.h> #include <linux/smp_lock.h> -#include <linux/swapctl.h> #include <linux/iobuf.h> #include <linux/highmem.h> #include <linux/pagemap.h>
mm/mmap.c +0 -1
@@ -11,7 +11,6 @@#include <linux/mman.h> #include <linux/pagemap.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/smp_lock.h> #include <linux/init.h> #include <linux/file.h>
mm/oom_kill.c +0 -1
@@ -18,7 +18,6 @@#include <linux/mm.h> #include <linux/sched.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/timex.h> /* #define DEBUG */
mm/swap.c +0 -7
@@ -16,7 +16,6 @@#include <linux/mm.h> #include <linux/kernel_stat.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/pagemap.h> #include <linux/init.h>
@@ -26,12 +25,6 @@/* How many pages do we try to swap or page in/out together? */ int page_cluster; - -pager_daemon_t pager_daemon = { -512 ,/* base number for calculating the number of tries */ -SWAP_CLUSTER_MAX ,/* minimum number of tries */ -8 ,/* do swap I/O in clusters of this size */ -};/* * Move an inactive page to the active list.
mm/swap_state.c +0 -1
@@ -10,7 +10,6 @@#include <linux/mm.h> #include <linux/kernel_stat.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/init.h> #include <linux/pagemap.h> #include <linux/smp_lock.h>
mm/swapfile.c +0 -1
@@ -10,7 +10,6 @@#include <linux/smp_lock.h> #include <linux/kernel_stat.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/vmalloc.h> #include <linux/pagemap.h> #include <linux/namei.h>
mm/vmscan.c +0 -1
@@ -15,7 +15,6 @@#include <linux/slab.h> #include <linux/kernel_stat.h> #include <linux/swap.h> -#include <linux/swapctl.h> #include <linux/smp_lock.h> #include <linux/pagemap.h> #include <linux/init.h>
===================================================================
This BitKeeper patch contains the following changesets:
1.512
## Wrapped with gzip_uu ##
begin 664 bkpatch9069 M'XL(/=13T``]6;;6_;1A*/UN_8H%^*)#6TKZ_"/#!:1STBE[:(+GT:[!< M+BW5HBB0E%T'Q/WV&Y*2]4)2E.1++TX,VQ')X>P\.[,SLYOOT*?,I^.+B9L, MOD/_3+)\?)$%PR+D_EL.O?#)+V%"Q^2!"Z,4K](1O#Q\J]+.A0#N/#>YFZ" M[GV:C2_(D#U]DC\N_/CBP]N?/_WK]8?!X.H*O9G8^:W_Z'-T=37(D_3>SL+L MVN:363(?YJF=9['/[=E<?%T:T$QIO!7$,6PD61F*O"D90RXD/,>5:\H&] M6\377Z:+\N&A7>X_KZC!$FLL"L&P%H,;1(:"4(3I"*L1-8B(,5%CSG[=(PQ MEM<[]L_4QNL2#G]#_5O4WX?^>#=&J8^3>X^6\V7F0S1:I(D;98_9Z#X> MW64/=A$B.P]1^9O+9\,)/5?_Y[XS*,'GWK0*K>SV>-:0)2DR")0[Q;ET]@/ M$?HE_SY#TWD.-V?Y%#Z?)\@(K;S1Q1-9[Z\Z&;+T&]>\B/*)\GR=C(<#GY% MPAC.!^\W&>7)_X9#+#%@W_T&#".1TD2?[Z;SF9#MVU$PTQ!").B8%1KS#5U M1$5$T79@;8)@(A&HD2!I3$:=%F4D[5=D2@;5>:*_9<O2<FBM,E&(XH9([S M2BM5>&JBP(GFD!R*GB[1H<D;E23G!C5:R:;NLG(I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G[6.L8Q MN<K8V8L4FV_M?"H!G>6DVS12)X.FAU%)#GQ@-O!G*SMG!LF95W%)$0S+O$+ M:OY6Q_*:E#8#?%8+XVF#^"A*IVQ(M_G-SEXT@;P"&RP*PHVLQDYPV_4_R$W M6"?.D""GODK*TL^AA3@VKU*$<FN]2:P>_/D[+63N<UL?;[M:'*GG:WKXM<X M5E=F";C<J#&K316F7H)?U<<VS&MQWA>X;+K6O49D*,AG7+VIO1SK&3RLTT MY87G*U.#?&(/GM:J/R;0#JD?X7#SK0W%'P3GI'%X;F<81O%5Z#8ZC5HV^ J9OC[!KG41P:;7-;C.[_)M_Z?$E#8NKML&5\%08`#3M7@OUC_AWZ4,0`` `
end
--
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/