1 |
Redouane Boumghar wrote: |
2 |
> |
3 |
> The man is not very extensive. |
4 |
> Has Anyone more info on configuration of the file /etc/sysctl.conf ? |
5 |
> especially for : |
6 |
> vm.swappiness |
7 |
> vm.swap_token_timeout |
8 |
> |
9 |
> |
10 |
|
11 |
Actually using sysctl is the same as reading/writing values from/in the |
12 |
files found in /proc. For example putting "vm.swappiness = 50" in |
13 |
/etc/sysctl.conf and executing "sysctl -p" afterwards is the same as |
14 |
"echo 50 > /proc/sys/vm/swappiness". The deference is that sysctl is |
15 |
being issued at every boot and it restores the values as thy are set in |
16 |
sysctl.conf by the administrator. Otherwise the kernel uses the default |
17 |
values. |
18 |
|
19 |
While "swap_token_timeout" is documented in two files [1],[2] from the |
20 |
"kernel-source-code/Documentation" directory, it appears that swappiness |
21 |
isn't documented at all. At least "grep -rin swappiness Documentation/" |
22 |
didn't give any results for gentoo-sources-2.6.18-r4 |
23 |
I've read (don't remember where) there are patches to make kernel change |
24 |
its swappiness value automatically, depending on the memory usage for |
25 |
the particular moment. |
26 |
|
27 |
[1] /usr/src/linux/Documentation/sysctl/vm.txt |
28 |
[2] /usr/src/linux/Documentation/filesystems/proc.txt |
29 |
|
30 |
|
31 |
-- |
32 |
Best regards, |
33 |
Daniel |
34 |
|
35 |
|
36 |
-- |
37 |
gentoo-user@g.o mailing list |