On 02Mar2007 16:00, Mike McCarty Mike.McCarty@sbcglobal.net wrote: | In an attempt to see what swappiness does to the performance | of my machine, I tried setting it and experimenting. Well, I | don't seem to be able to do that. | | $ su - | # cd /proc/sys/vm | # cat swappiness | 60 | # echo 40>swappiness | # cat swappiness | 60 [...]
Put a space before the ">". The syntax n>foo means direct file descriptor n to the file foo. Example:
ls 2>ls.err
which sends fd 2 (stderr) to "ls.err". So try:
echo 40 >swappiness
Cheers,