Redouane Boumghar wrote:
>
> The man is not very extensive.
> Has Anyone more info on configuration of the file /etc/sysctl.conf  ?
> especially for :
> vm.swappiness
> vm.swap_token_timeout
>
>

Actually using sysctl is the same as reading/writing values from/in the
files found in /proc. For example putting "vm.swappiness = 50" in
/etc/sysctl.conf and executing "sysctl -p" afterwards is the same as
"echo 50 > /proc/sys/vm/swappiness". The deference is that sysctl is
being issued at every boot and it restores the values as thy are set in
sysctl.conf by the administrator. Otherwise the kernel uses the default
values.

While "swap_token_timeout" is documented in two files [1],[2] from the
"kernel-source-code/Documentation" directory, it appears that swappiness
isn't documented at all. At least "grep -rin swappiness Documentation/"
didn't give any results for gentoo-sources-2.6.18-r4
I've read (don't remember where) there are patches to make kernel change
its swappiness value automatically, depending on the memory usage for
the particular moment.

[1] /usr/src/linux/Documentation/sysctl/vm.txt
[2] /usr/src/linux/Documentation/filesystems/proc.txt


-- 
Best regards,
Daniel


-- 
gentoo-user@gentoo.org mailing list

Reply via email to