is this normal ram usage?

Crusader

Verified User
Joined
Nov 29, 2006
Messages
73
I've got 256MB RAM and it seems to be using 140-150MB of it - all the time - even if nobody is on the website but myself. Is that normal? Right now it's running Directadmin with mail turned off.

top - 18:16:57 up 20:01, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 31 total, 1 running, 30 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2% us, 0.1% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 4136864k total, 4066628k used, 70236k free, 166620k buffers
Swap: 2096472k total, 592k used, 2095880k free, 1933400k cached

httpd.conf
Timeout 200
KeepAlive On
MaxKeepAliveRequests 120
KeepAliveTimeout 3
MinSpareServers 1
MaxSpareServers 5
StartServers 1
MaxClients 250
MaxRequestsPerChild 500

my.cnf
[mysqld]
max_connections = 200
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
interactive_timeout = 25
query_cache_type = 1
query_cache_size = 6M
query_cache_limit = 1M
thread_cache_size = 32
wait_timeout = 25
key_buffer_size = 512K
max_allowed_packet = 1M
table_cache = 4
join_buffer_size = 256K
sort_buffer_size = 100K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
skip-bdb
skip-innodb
 
The first time Linux needs memory it will grab it from free. After that it will manage that memory until it's rebooted.

As long as linux is managing the memory it will show up as used.

Jeff
 
Where can i change this? I dont want linux to grab all the memory and then manage it. I want to see free memory if i have..
 
Linux memory management is controlled by the linux kernel and not by DirectAdmin.

Linux is open source. So you can always rewrite the kernel yourself.

Don't forget that if you distribute your changes to anyone you must also offer them the source code at no charge under the license under which linux is distributed.

Jeff
 
Thnx for answer, i just thought that i can change it simply with some short command and not to recompile kernel.
 
It's not even as simple as recompiling the kernel.

You'd have to fork the kernel to your own memory management system.

Not for the faint of heart.

Plus it would slow the server significantly; there's a reason memory management works the way it does.

Why you ask :) ?

Because using memory you know is there is significantly faster than trying to find out if memory is available.

Jeff
 
The only thing why i wanted to do this, is to see how much free memory i have. Is there another way to see this information?
 
Back
Top