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 # echo 75>swappiness
# cat swappiness 60 # uname -a Linux Presario-1 2.6.10-1.771_FC2 #1 Mon Mar 28 00:50:14 EST 2005 i686 i686 i386 GNU/Linux
Mike
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,
On Sat, 2007-03-03 at 16:09 +1100, Cameron Simpson wrote:
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 [...]
Okk, I'll bite. What is swappiness?
Aaron Konstam wrote:
On Sat, 2007-03-03 at 16:09 +1100, Cameron Simpson wrote:
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 [...]
Okk, I'll bite. What is swappiness?
Rather than biting....try googling. "swappiness linux"
On Sat, 2007-03-03 at 22:44 +0800, Ed Greshko wrote:
Aaron Konstam wrote:
On Sat, 2007-03-03 at 16:09 +1100, Cameron Simpson wrote:
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 [...]
Okk, I'll bite. What is swappiness?
Rather than biting....try googling. "swappiness linux"
Very good. Doing the google confirmed whast I said recently on the list that swap is really not part of the standard VM operation of the kernel.
Cameron Simpson wrote:
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:
I know that! Why didn't I see it? Thanks!
Mike