LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2005, 12:16 AM   #1
industris
LQ Newbie
 
Registered: Sep 2005
Location: Latvia
Posts: 11

Rep: Reputation: 0
Question Slack10.2 (eats a lot of memory)


Can me help somebody? My server eats a lot of memory ~500Mb of 1024Mb There is no "X" or any "KDE" installed.. And sometimes it can be up to ~900Mb of used memory :-( Why? Only samba is installed and started on it :-/
It shows that smbd is started several times, that is normal?

Mem: 904448k total, 589700k used, 314748k free, 14264k buffers

2779 root 9 0 2708 2708 2480 S 0.0 0.3 0:00.00 smbd
2781 root 9 0 2680 2680 2464 S 0.0 0.3 0:00.00 smbd
2782 root 9 0 1480 1480 1100 S 0.0 0.2 0:00.00 nmbd
2784 root 9 0 468 468 416 S 0.0 0.1 0:01.01 gpm
2786 root 9 0 484 484 432 S 0.0 0.1 0:00.01 agetty
2787 root 9 0 484 484 432 S 0.0 0.1 0:00.00 agetty
2788 root 9 0 484 484 432 S 0.0 0.1 0:00.00 agetty
2789 root 9 0 484 484 432 S 0.0 0.1 0:00.00 agetty
2790 root 9 0 484 484 432 S 0.0 0.1 0:00.00 agetty
2791 root 9 0 484 484 432 S 0.0 0.1 0:00.00 agetty
2792 root 9 0 3248 3248 2900 S 0.0 0.4 0:00.08 smbd
2794 root 9 0 1756 1752 1596 S 0.0 0.2 0:00.06 sshd

There is a sample..
 
Old 12-15-2005, 07:16 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Don't worry about the memory. The concept of "free memory" is really something that is Windows-think. Linux uses all the available memory whenever it can for basic system tasks. If you think about it this actually makes sense as memory is MUCH faster than swap space. Linux also has a much better method of handling memory than Windows, so if you do need memory for a program, it can quickly free up the "used" memory. So unless you are seeing some drastic performance issues, it is likely just normal linux behavior.
 
Old 12-15-2005, 01:43 PM   #3
nycace36
Member
 
Registered: Feb 2004
Location: SFBayArea, CA
Distribution: Debian-based, Slackware 10x+
Posts: 185

Rep: Reputation: 22
If you really wish to try doing some fine-tuning actions to reclaim as much memory as possible, here are a few that you may wish to consider :

1. Multiple swap partitions. Create and activate two or more 512MB swap partitions on each drive in your system, make sure that these are set correctly in your /etc/fstab file, and set these multiple swap partitions at equivalent high-priorities. See http://kerneltrap.org/node/5247
for further cutting-edge discussion on increasing performance through swap partitions.

2. Remove inactive services. Check all active processes on your system using
ps -aux from the commandline as the superuser. Since you are using Slackware, carefully evaluate each startup script to remove all unnecessary&unneeded services/daemons from startup.

3. Increased physical RAM. Seriously consider adding more physical memory if you wish to add future services to client systems connecting to your server, or if you wish to raise the number of client systems that can connect to this server at once (e.g., to Apache, Samba). A server-system with 2GB+ RAM is not unheard of for a web-serving host

4. Go though other LQ forums for other hints on this, e.g., LQ-Networking, LQ-Hardware, LQ-Slackware, ... etc.

As Hangdog42 refers to, the linux memory manager in the 2.4 and greater kernels is quite efficient, so that "~900Mb of used memory" just might mean many more SMB clients are accessing your server at once.


nycace36
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System lags and eats a lot of swap space over a few days Kremit Linux - General 4 06-27-2005 12:30 PM
Wine eats memory! MylesCLin Linux - Software 3 12-10-2004 08:52 PM
System Using a lot of memory hamish Linux - Software 4 11-14-2004 04:20 AM
Does kde use a lot of memory? codec Linux - General 5 10-28-2003 07:16 AM
RH consumpted a lot of memory..... yenonn Linux - General 10 08-07-2003 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration