summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2002-07-28 18:12:46 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-28 18:12:46 -0700
commitdb469c8d78796517fbcc92110ff4d12dd3706dec (patch)
tree15685302e3dce84179b319e5637487e7369d72f4
parentaa1190a2a17cb060c0caf208634cc317a9873d48 (diff)
parenta074f68006d301fb0dbab9a460eba7cd0eb22c15 (diff)
Automerge
-rw-r--r--Documentation/sysctl/vm.txt34
-rw-r--r--arch/arm/mm/init.c1
-rw-r--r--arch/mips/mm/init.c1
-rw-r--r--arch/mips64/mm/init.c1
-rw-r--r--arch/sparc/mm/init.c1
-rw-r--r--arch/sparc64/mm/init.c1
-rw-r--r--fs/coda/sysctl.c1
-rw-r--r--fs/intermezzo/sysctl.c1
-rw-r--r--include/linux/swapctl.h13
-rw-r--r--include/linux/sysctl.h10
-rw-r--r--kernel/suspend.c1
-rw-r--r--kernel/sysctl.c3
-rw-r--r--mm/bootmem.c1
-rw-r--r--mm/memory.c1
-rw-r--r--mm/mmap.c1
-rw-r--r--mm/oom_kill.c1
-rw-r--r--mm/swap.c7
-rw-r--r--mm/swap_state.c1
-rw-r--r--mm/swapfile.c1
-rw-r--r--mm/vmscan.c1
20 files changed, 5 insertions, 77 deletions
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index abd6f5cd95ad..6ff0af89ae77 100644
--- a/Documentation/sysctl/vm.txt
+++ b/Documentation/sysctl/vm.txt
@@ -16,7 +16,6 @@ Default values and initialization routines for most of these
files can be found in mm/swap.c.
Currently, these files are in /proc/sys/vm:
-- kswapd
- overcommit_memory
- page-cluster
- dirty_async_ratio
@@ -34,39 +33,6 @@ 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.
-
-==============================================================
-
overcommit_memory:
This value contains a flag that enables memory overcommitment.
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 32c3c92fd148..019a0d4185a2 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -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>
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index 1b7cd192cc68..f1c32c721106 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -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
diff --git a/arch/mips64/mm/init.c b/arch/mips64/mm/init.c
index 3dda4d7b9287..47e53eceb1de 100644
--- a/arch/mips64/mm/init.c
+++ b/arch/mips64/mm/init.c
@@ -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
diff --git a/arch/sparc/mm/init.c b/arch/sparc/mm/init.c
index 21cc557e4bd4..a5b2e251b8b0 100644
--- a/arch/sparc/mm/init.c
+++ b/arch/sparc/mm/init.c
@@ -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
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index b0e4077ea60f..7d299a1a7da0 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -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>
diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c
index 55c685f6ad00..84e9f18da297 100644
--- a/fs/coda/sysctl.c
+++ b/fs/coda/sysctl.c
@@ -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>
diff --git a/fs/intermezzo/sysctl.c b/fs/intermezzo/sysctl.c
index ec438c487730..a96cfde6aa8e 100644
--- a/fs/intermezzo/sysctl.c
+++ b/fs/intermezzo/sysctl.c
@@ -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>
diff --git a/include/linux/swapctl.h b/include/linux/swapctl.h
deleted file mode 100644
index de22bff4b788..000000000000
--- a/include/linux/swapctl.h
+++ /dev/null
@@ -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 */
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 06aee50b7008..07eed48ea3f8 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -136,12 +136,12 @@ enum
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 */
diff --git a/kernel/suspend.c b/kernel/suspend.c
index 926717ef0256..771d44b5ea39 100644
--- a/kernel/suspend.c
+++ b/kernel/suspend.c
@@ -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>
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index fa268aa33e3a..7317c78306c3 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -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 @@ static ctl_table vm_table[] = {
{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",
diff --git a/mm/bootmem.c b/mm/bootmem.c
index cfeb5f57e862..12069ad2f152 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -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>
diff --git a/mm/memory.c b/mm/memory.c
index ea9ec1c8d6ce..0f073ce32404 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -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>
diff --git a/mm/mmap.c b/mm/mmap.c
index 1546d0298de6..669a7181299b 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -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>
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 074ea5bee8e9..edbe91353067 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -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 */
diff --git a/mm/swap.c b/mm/swap.c
index cc97e3c8c6b8..6dcaf7567559 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -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>
@@ -27,12 +26,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.
*/
diff --git a/mm/swap_state.c b/mm/swap_state.c
index 5fa036b0503c..2069d022595c 100644
--- a/mm/swap_state.c
+++ b/mm/swap_state.c
@@ -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>
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 2479dfcc59f2..330c94cef787 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -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>
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 4ef0f37d18b5..f6815bae9fab 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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>