Posted: Thu Jan 25, 2007 8:04 pm Post subject: How to reduce 'swappiness' for Suse 10.0
Hi,
I came across an interesting article these days on optimizing desktop performance ( http://www.linuxjournal.com/article/8308 ) and found it quite interesting, especially with the comments below it. I reduced the colour settings to 16-bit, ran the DMA for the harddrive but could not reduce the swappiness because when I typed:
sudo sysctl -w vm.swappiness=10
I was informed that the command 'sysctl' was not found. I skimmed the man page for the command and it was there. Can you give me a hint?
I will apreciate your opinion about this thing. If you have some other advice as to optimizing the performance of a computer under Suse I will be glad to read it!
well, Jimmo, I tried : find / -name sysctl.conf and received the following:
find: WARNING: Hard link count is wrong for /proc: this may be a bug in your fil esystem driver. Automatically turning on find's -noleaf option. Earlier result s may have failed to include directories that should have been searched.
Hi, ffreeloader, I tried locate sysctl.conf as root and it said that the command was not found, then looked for the man page and it replied there was no manual entry for "locate" ... there is maybe a bug in the file system...
Well, then try this: ls /etc | grep sysctl. If if your file shows up use one of your text editors, as root, and just add the line swappiness=10 to the file and then save it. That will save the settings for you. You'll have to either reboot or echo the settings to /proc/sys/vm/swappiness again for it take effect.
If the /etc/sysctl.conf doesn't show up using the ls command then you most likely have a corrupt install given the other errors that you have encountered when running the find command. If you want to stick with SuSe upgrade to 10.1 or 10.2 by downloading the .iso images for one of them just to make sure that the bug you have isn't just from a corrupted installation disk or a bug in 10. If you don't want to stick with SuSe there are a lot of other distro's out there.
The last thing to try would be to just create the sysctl.conf file where it should be in /etc. It would be a stop-gap kind of fix, but with the other problems you've run across I'd try a fresh install, but from another set of disks.
Hi, Freeloader,it is only yesterday that I read your reply (strange because I usually receive an email notifacation for new posts...) and finally found the file. Even learned the Vim basics in order to configure it
I read the arguments about this issue and now I am actually testing the responsiveness of the system for I want to decide for myself which way (either 0 or 100) will show a better performance. I set swappiness to 0 , works fine for now, anyway I'll soon try it with a value of 100...(I have celeronM 1.4 gh, 256ram)
and I would also like to ask you how can I understand what my processor's L2 cache is....I receive cpu parameters in the console but it doesn't say whether it is L1 or L2
Thanks a lot for the support... and any additional comments are welcome
Well, by typing DMESG the cpu information I needed was revealed
but now the question is: since I have set swappiness to 0, why when I type TOP it says that some part of the swap (some 20 % or so) is being used?
If you haven't figured it out by now setting swappiness to 0 doesn't mean that the swap file will never be used. It does mean that the kernel will not use it until forced to by lack of resources.
How much memory do you have in your machine? Sometimes the kernel is forced to use the swap file because of lack of available memory, and once it is, the swap file will show however much of the swap file was used until you reboot the next time as it will hold those 1's and 0's in the swap file. It's basically just another tmp file that gets deleted upon reboot
This is just my opinion of SuSe, but I have found it be to bloated, slow, use a lot of resources, and have bugs that just shouldn't exist in an official product release. I have had it and Debian on the same machines and found Debian to always be more responsive. I did a Debian Etch and SuSe 10.2 install on the same machine, and found that Etch installed faster, both installs were network installs, and that it was faster once booted into the OS.
The SuSe install took me several hours. At least an hour of it was spent trying to find the IP address of an openSuSe repository with the installer available, but even subtracting that time from the install it took me about 45 minutes to hour less to install Debian. The 10.1 install I did had a bug that wouldn't allow me to use the Yast updater patch the system after install. It dumped me into an "rpm hell" of dependency issues. That took me an hour and a half to figure out too.
Part of the time I spent in figuring things out is me not being very experienced with SuSe, but the way I see things Debian just doesn't have any of those kinds of bugs with officially released products, so there is no learning curve for troubleshooting bugs in the installer.
I have 256 RAM and at the moment of typing TOP I was running Nicotine, Amarok and was browsing a couple of websites which processes I guess shouldn't be much memory consuming though ... but probably SuSE is "hungry" for memory, as you say...
Well, then, I am thinking of trying Kubuntu ( afaik this is the best Debian distro) along with SuSE but first I'll have to find out how to delete the win-partition, which I do not use anyway, in order to free space on the hdd and test the new Debian installation...
I have 256 RAM and at the moment of typing TOP I was running Nicotine, Amarok and was browsing a couple of websites which processes I guess shouldn't be much memory consuming though ... but probably SuSE is "hungry" for memory, as you say...
Well, then, I am thinking of trying Kubuntu ( afaik this is the best Debian distro) along with SuSE but first I'll have to find out how to delete the win-partition, which I do not use anyway, in order to free space on the hdd and test the new Debian installation...
So, you had an open bash shell, two applications, and either two instances of a browser or two open tabs, plus the resources used by the the OS. You don't think that would eat up 256 megs of ram? I'd say it most certainly would. SuSe consumes a lot of resources, but any modern OS with four open applications would eat more than 256 megs of ram.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.