Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
db469c8d
Commit
db469c8d
authored
Jul 28, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Automerge
parents
aa1190a2
a074f680
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
5 additions
and
77 deletions
+5
-77
Documentation/sysctl/vm.txt
Documentation/sysctl/vm.txt
+0
-34
arch/arm/mm/init.c
arch/arm/mm/init.c
+0
-1
arch/mips/mm/init.c
arch/mips/mm/init.c
+0
-1
arch/mips64/mm/init.c
arch/mips64/mm/init.c
+0
-1
arch/sparc/mm/init.c
arch/sparc/mm/init.c
+0
-1
arch/sparc64/mm/init.c
arch/sparc64/mm/init.c
+0
-1
fs/coda/sysctl.c
fs/coda/sysctl.c
+0
-1
fs/intermezzo/sysctl.c
fs/intermezzo/sysctl.c
+0
-1
include/linux/swapctl.h
include/linux/swapctl.h
+0
-13
include/linux/sysctl.h
include/linux/sysctl.h
+5
-5
kernel/suspend.c
kernel/suspend.c
+0
-1
kernel/sysctl.c
kernel/sysctl.c
+0
-3
mm/bootmem.c
mm/bootmem.c
+0
-1
mm/memory.c
mm/memory.c
+0
-1
mm/mmap.c
mm/mmap.c
+0
-1
mm/oom_kill.c
mm/oom_kill.c
+0
-1
mm/swap.c
mm/swap.c
+0
-7
mm/swap_state.c
mm/swap_state.c
+0
-1
mm/swapfile.c
mm/swapfile.c
+0
-1
mm/vmscan.c
mm/vmscan.c
+0
-1
No files found.
Documentation/sysctl/vm.txt
View file @
db469c8d
...
@@ -16,7 +16,6 @@ Default values and initialization routines for most of these
...
@@ -16,7 +16,6 @@ Default values and initialization routines for most of these
files can be found in mm/swap.c.
files can be found in mm/swap.c.
Currently, these files are in /proc/sys/vm:
Currently, these files are in /proc/sys/vm:
- kswapd
- overcommit_memory
- overcommit_memory
- page-cluster
- page-cluster
- dirty_async_ratio
- dirty_async_ratio
...
@@ -34,39 +33,6 @@ See Documentation/filesystems/proc.txt
...
@@ -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:
overcommit_memory:
This value contains a flag that enables memory overcommitment.
This value contains a flag that enables memory overcommitment.
...
...
arch/arm/mm/init.c
View file @
db469c8d
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#include <linux/mman.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/smp.h>
#include <linux/smp.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/bootmem.h>
...
...
arch/mips/mm/init.c
View file @
db469c8d
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include <linux/bootmem.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/highmem.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD
#include <linux/blk.h>
#include <linux/blk.h>
#endif
#endif
...
...
arch/mips64/mm/init.c
View file @
db469c8d
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include <linux/bootmem.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/highmem.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD
#include <linux/blk.h>
#include <linux/blk.h>
#endif
#endif
...
...
arch/sparc/mm/init.c
View file @
db469c8d
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#include <linux/mman.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD
#include <linux/blk.h>
#include <linux/blk.h>
#endif
#endif
...
...
arch/sparc64/mm/init.c
View file @
db469c8d
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/blk.h>
#include <linux/blk.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/fs.h>
#include <linux/fs.h>
#include <linux/seq_file.h>
#include <linux/seq_file.h>
...
...
fs/coda/sysctl.c
View file @
db469c8d
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
#include <linux/time.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/sysctl.h>
#include <linux/sysctl.h>
#include <linux/swapctl.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/stat.h>
...
...
fs/intermezzo/sysctl.c
View file @
db469c8d
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
#include <linux/time.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/sysctl.h>
#include <linux/sysctl.h>
#include <linux/swapctl.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/vmalloc.h>
...
...
include/linux/swapctl.h
deleted
100644 → 0
View file @
aa1190a2
#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
View file @
db469c8d
...
@@ -136,12 +136,12 @@ enum
...
@@ -136,12 +136,12 @@ enum
VM_UNUSED1
=
1
,
/* was: struct: Set vm swapping control */
VM_UNUSED1
=
1
,
/* was: struct: Set vm swapping control */
VM_UNUSED2
=
2
,
/* was; int: Linear or sqrt() swapout for hogs */
VM_UNUSED2
=
2
,
/* was; int: Linear or sqrt() swapout for hogs */
VM_UNUSED3
=
3
,
/* was: struct: Set free page thresholds */
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_OVERCOMMIT_MEMORY
=
5
,
/* Turn off the virtual memory safety limit */
VM_UNUSED
4
=
6
,
/* was: struct: Set buffer memory thresholds */
VM_UNUSED
5
=
6
,
/* was: struct: Set buffer memory thresholds */
VM_UNUSED
5
=
7
,
/* was: struct: Set cache memory thresholds */
VM_UNUSED
7
=
7
,
/* was: struct: Set cache memory thresholds */
VM_
PAGERDAEMON
=
8
,
/*
struct: Control kswapd behaviour */
VM_
UNUSED8
=
8
,
/* was:
struct: Control kswapd behaviour */
VM_UNUSED
6
=
9
,
/* was: struct: Set page table cache parameters */
VM_UNUSED
9
=
9
,
/* was: struct: Set page table cache parameters */
VM_PAGE_CLUSTER
=
10
,
/* int: set number of pages to swap together */
VM_PAGE_CLUSTER
=
10
,
/* int: set number of pages to swap together */
VM_DIRTY_BACKGROUND
=
11
,
/* dirty_background_ratio */
VM_DIRTY_BACKGROUND
=
11
,
/* dirty_background_ratio */
VM_DIRTY_ASYNC
=
12
,
/* dirty_async_ratio */
VM_DIRTY_ASYNC
=
12
,
/* dirty_async_ratio */
...
...
kernel/suspend.c
View file @
db469c8d
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/swapctl.h>
#include <linux/suspend.h>
#include <linux/suspend.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/file.h>
#include <linux/file.h>
...
...
kernel/sysctl.c
View file @
db469c8d
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/sysctl.h>
#include <linux/sysctl.h>
#include <linux/swapctl.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
#include <linux/ctype.h>
#include <linux/ctype.h>
#include <linux/utsname.h>
#include <linux/utsname.h>
...
@@ -272,8 +271,6 @@ static ctl_table vm_table[] = {
...
@@ -272,8 +271,6 @@ static ctl_table vm_table[] = {
{
VM_OVERCOMMIT_RATIO
,
"overcommit_ratio"
,
{
VM_OVERCOMMIT_RATIO
,
"overcommit_ratio"
,
&
sysctl_overcommit_ratio
,
sizeof
(
sysctl_overcommit_ratio
),
0644
,
&
sysctl_overcommit_ratio
,
sizeof
(
sysctl_overcommit_ratio
),
0644
,
NULL
,
&
proc_dointvec
},
NULL
,
&
proc_dointvec
},
{
VM_PAGERDAEMON
,
"kswapd"
,
&
pager_daemon
,
sizeof
(
pager_daemon_t
),
0644
,
NULL
,
&
proc_dointvec
},
{
VM_PAGE_CLUSTER
,
"page-cluster"
,
{
VM_PAGE_CLUSTER
,
"page-cluster"
,
&
page_cluster
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
&
page_cluster
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
{
VM_DIRTY_BACKGROUND
,
"dirty_background_ratio"
,
{
VM_DIRTY_BACKGROUND
,
"dirty_background_ratio"
,
...
...
mm/bootmem.c
View file @
db469c8d
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/kernel_stat.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/bootmem.h>
...
...
mm/memory.c
View file @
db469c8d
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#include <linux/mman.h>
#include <linux/mman.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/swapctl.h>
#include <linux/iobuf.h>
#include <linux/iobuf.h>
#include <linux/highmem.h>
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
...
...
mm/mmap.c
View file @
db469c8d
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
#include <linux/mman.h>
#include <linux/mman.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/file.h>
#include <linux/file.h>
...
...
mm/oom_kill.c
View file @
db469c8d
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/sched.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/timex.h>
#include <linux/timex.h>
/* #define DEBUG */
/* #define DEBUG */
...
...
mm/swap.c
View file @
db469c8d
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/kernel_stat.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/init.h>
#include <linux/init.h>
...
@@ -27,12 +26,6 @@
...
@@ -27,12 +26,6 @@
/* How many pages do we try to swap or page in/out together? */
/* How many pages do we try to swap or page in/out together? */
int
page_cluster
;
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.
* Move an inactive page to the active list.
*/
*/
...
...
mm/swap_state.c
View file @
db469c8d
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/kernel_stat.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
...
...
mm/swapfile.c
View file @
db469c8d
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/kernel_stat.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/vmalloc.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/namei.h>
#include <linux/namei.h>
...
...
mm/vmscan.c
View file @
db469c8d
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/kernel_stat.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <linux/pagemap.h>
#include <linux/pagemap.h>
#include <linux/init.h>
#include <linux/init.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment