Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Rescue Committe

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Recommend Us
Surveys

Features
HOWTOs
News
News Archive
NukeSentinel
Reviews
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 149 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  
Linux Knowledge Base and Tutorial: Forums



Linux Tutorial :: View topic - How to reduce 'swappiness' for Suse 10.0
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to reduce 'swappiness' for Suse 10.0

 
Post new topic   Reply to topic    Linux Tutorial Forum Index -> Getting Started/Newbie
View previous topic :: View next topic  
Author Message
luxor
Beginner


Joined: Dec 02, 2006
Posts: 17

PostPosted: Thu Jan 25, 2007 8:04 pm    Post subject: How to reduce 'swappiness' for Suse 10.0 Reply with quote

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!

thanks Very Happy [/url]
Back to top
View user's profile Send private message
jimmo
Administrator


Joined: Jul 27, 2002
Posts: 273
Location: Untersiemau, Germany

PostPosted: Thu Jan 25, 2007 8:57 pm    Post subject: Reply with quote

if you run sysctl as root, does it find it? My guess is that it is not in your user's path.
Back to top
View user's profile Send private message
luxor
Beginner


Joined: Dec 02, 2006
Posts: 17

PostPosted: Thu Jan 25, 2007 10:14 pm    Post subject: Reply with quote

Yeah, Jimmo, great, that was it ! But now I wonder how to execute the last stage:

vm.swappiness=10 to /etc/sysctl.conf

since I do not have a sysctl.conf file in /etc Confused is it because I am using another distro or I am again missing something???
Back to top
View user's profile Send private message
jimmo
Administrator


Joined: Jul 27, 2002
Posts: 273
Location: Untersiemau, Germany

PostPosted: Fri Feb 02, 2007 11:57 am    Post subject: Reply with quote

I'm running SUSE and it was on my system. Maybe it was somewhere else. Try

find / -name sysctl.conf

and see if it is anywhere else. Also look at the sysctl.conf man-page.
Back to top
View user's profile Send private message
luxor
Beginner


Joined: Dec 02, 2006
Posts: 17

PostPosted: Sat Feb 03, 2007 12:00 am    Post subject: Reply with quote

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.



Exclamation
Back to top
View user's profile Send private message
ffreeloader
Master


Joined: Aug 10, 2005
Posts: 572

PostPosted: Sat Feb 03, 2007 12:28 pm    Post subject: Reply with quote

Have you tried "locate sysctl.conf"? It would need to be run as root though to make sure you have access to all files on the system.
Back to top
View user's profile Send private message
luxor
Beginner


Joined: Dec 02, 2006
Posts: 17

PostPosted: Sat Feb 03, 2007 5:17 pm    Post subject: Reply with quote

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... Sad
Back to top
View user's profile Send private message
ffreeloader
Master


Joined: Aug 10, 2005
Posts: 572

PostPosted: Tue Feb 13, 2007 4:55 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
luxor
Beginner


Joined: Dec 02, 2006
Posts: 17

PostPosted: Sun Mar 04, 2007 2:01 pm    Post subject: Reply with quote

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 Smile

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 Smile
Back to top
View user's profile Send private message
luxor
Beginner


Joined: Dec 02, 2006
Posts: 17

PostPosted: Wed Mar 07, 2007 2:47 pm    Post subject: Reply with quote

Well, by typing DMESG the cpu information I needed was revealed Smile

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?
Back to top
View user's profile Send private message
ffreeloader
Master


Joined: Aug 10, 2005
Posts: 572

PostPosted: Wed Mar 07, 2007 4:22 pm    Post subject: Reply with quote

Quote:
Well, by typing DMESG the cpu information I needed was revealed Smile

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.

.
Back to top
View user's profile Send private message
luxor
Beginner


Joined: Dec 02, 2006
Posts: 17

PostPosted: Wed Mar 07, 2007 4:51 pm    Post subject: Reply with quote

Thank you for the explanation, Freeloader Smile

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...

Smile
Back to top
View user's profile Send private message
ffreeloader
Master


Joined: Aug 10, 2005
Posts: 572

PostPosted: Wed Mar 07, 2007 7:09 pm    Post subject: Reply with quote

Quote:
Thank you for the explanation, Freeloader Smile

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...

Smile


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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Linux Tutorial Forum Index -> Getting Started/Newbie All times are GMT
Page 1 of 1

 

Jump to:  
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

Powered by phpBB © 2001-2007 phpBB Group
  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


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.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content © 1994-2010 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressedly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds