Paul Howarth wrote:
On Tue, 2005-07-12 at 22:05 -0500, Mike McCarty wrote:
Tony Nelson wrote:
At 2:08 PM -0500 7/12/05, Mike McCarty wrote:
[with regards to /proc/sys/vm/swappiness]
So is mine, and attempts to edit that file fail.
Works here. Were you root? Do you really mean "edit" or did you:
# cat 59 >/proc/sys/vm/swappiness
I get permission denied as a normal user, while the value sticks if I'm
root. The sign that the patch is in the kernel is that changes don't
stick. So I suppose it never made it in.
I was logged in as myself, with su. I used an editor which read it fine.
Attempts to save the edit failed with access denied. I did not try a cat.
/proc files aren't regular files and editing them with a regular editor
may not work.
Neither would the "cat" command above, unless there was a file called
"59" in the current directory.
What was probably meant was:
# echo 59 /proc/sys/vm/swappiness
Paul.
Are there any places which suggest how one can find a reasonable
value for the contents of swappiness? Other than a binary search
starting with 1 and 50 as the initial values, I mean.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!