Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: ReMiOS on January 13, 2007, 03:21:49 PM

Title: Memory usage
Post by: ReMiOS on January 13, 2007, 03:21:49 PM
Hi,

I have an newly installed SME 7.1 server.
I've installed this on a laptop with 128 MB

When i look at the server/phpsysinfo page i see:
Memory Usage
Type Percent Capacity Free Used Size
Physical Memory 99% 1.10 MB 121.97 MB 123.07 MB
- Kernel + applications 70% 86.25 MB
- Buffers 1% 948.00 KB
- Cached 28% 34.79 MB
Disk Swap 11% 228.72 MB 27.27 MB 255.99 MB

I was wondering if i could remove some rpm's to free some menory.
I only use it for FTP-Server / SAMBA / HTTP(PHP...) / MySQL
so maybe it''s possible to remove the EMAIL/RAID/PROXY rpm's ?
(What rpm's are involved ?)
Title: Memory usage
Post by: byte on January 13, 2007, 03:35:45 PM
Try disabling spamassassin and clam in the server-manager panel if you have them enabled that may save you some memory, but 128 is low these days.
Title: Memory usage
Post by: ReMiOS on January 13, 2007, 04:18:18 PM
Does't disabling clam make the server vulnerable to viruses ?
Title: Memory usage
Post by: byte on January 13, 2007, 05:28:50 PM
Quote from: "ReMiOS"
Does't disabling clam make the server vulnerable to viruses ?


Yes it does but as you said you wasn't going to use it for email server it wouldn't matter.
Title: Re: Memory usage
Post by: dmay on January 13, 2007, 05:28:59 PM
Quote from: "ReMiOS"

I was wondering if i could remove some rpm's to free some menory.
I only use it for FTP-Server / SAMBA / HTTP(PHP...) / MySQL
so maybe it''s possible to remove the EMAIL/RAID/PROXY rpm's ?
(What rpm's are involved ?)

No need to remove, just disable the services you don't need.

# config show

Look for all the entries listed as type service with status enabled. If there is a service you do not require just set status disabled and follow with post-upgrade; reboot events. Search the forum for more details. Read the developers guide:

http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html

Darrell
Title: Re: Memory usage
Post by: raem on January 13, 2007, 05:37:34 PM
ReMiOS

> I was wondering if i could remove some rpm's to free some menory.

Keep in mind that Linux tries to use all your RAM, there is no point having unused RAM is there ?
The real issue is whether you have enough RAM for what your server is doing ie it's workload. Adding RAM is a better approach if you find that your swap file size is often exceeding half the amount of RAM you have.

Services loaded are usually using very little memory when doing nothing.
With sme 7.x running all the typical services of a gateway server you really need 512 Mb - 1Gb RAM depending on your load/usage volume.
As mentioned spam & virus scanning use a lot of memory & CPU power, so they are your best starting point if you feel it is safe to disable them.
By enabling executable content blocking & RBL lists & setting a custom spam rejection level, you will cut down greatly on the number of virus infected messages & spam messages accepted by your server, so the need for clam & spamassassin are greatly reduced. Doing this "may"  allow your server with 128Mb RAM to run satisfactorily (assuming it only  has a light load).
Title: Re: Memory usage
Post by: ReMiOS on January 14, 2007, 11:09:10 AM
Quote from: "RayMitchell"

Keep in mind that Linux tries to use all your RAM, there is no point having unused RAM is there ?
The real issue is whether you have enough RAM for what your server is doing ie it's workload. Adding RAM is a better approach if you find that your swap file size is often exceeding half the amount of RAM you have.


Thanks for your reply, very helpful
The server has a (very) ligt load, and adding RAM is not an option since it's very hard to get SODIMM 100Mhz.

But since the swap stays below 30% max (currently 4%) there should'nt be any problems

I use no e-mail functions whatsoever (all disabled) so spam is not an issue.