[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [RAQ550] can you clear ram via ssh ?



Bob Lenaerts wrote:
Hi All,

I was wondering...
Is there a command to clear some RAM ?
at the moment when I do a top :
Mem: 513948K av, 487996K used, 25952K free, 0K shrd, 0K buff

I would like to create more ram, because I think some users or vsites
consume ram using mysql or php, and did not close the site.

any suggestions ?


Hi,

I believe this has nothing to do with Cobalt but the way
Linux kernel 2.4 preallocates (pre-cache, pre-.. i dunno)
the memory so that frequently used files and stuff will be
faster.

Having more RAM and stuff does not help, the kernel is
"smart" enough to manage the memory. You could recompile
the kernel yourself, but you will need to find a way
to burn it into the ROM (as far as I know, cobalt's
kernel are flashed into ROM and does not exist on the
harddisk itself, unlike normal Redhat, Mandrake and other
"distros") :P

You could take my word for it, or...
http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
esp this one,
http://home.earthlink.net/~jknapka/linux-mm/vmpolicy.html
but, somehow i think your eyes will glaze over when you
open up those pages... :P

Anyway, even if you run redhat/mandrake, as long as it's
based on linus' kernel v2.4, the same thing happens. (even for
raq4s, which are based on v2.2).

You could create more RAM by hmm... allocating less resources
so that php scripts cannot hog (ie. shorter timeout
periods, less memory allocated for each script instance)
in the /etc/httpd/php.ini file, or... well, you have to
find out exactly what's wrong first, before you can
solve things. :)


Regards.