Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-01-2003, 02:48 PM
|
#1
|
LQ Newbie
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9
Rep:
|
clearing ram?
Is it possible to clear ram in linux with out rebooting the server?
|
|
|
06-01-2003, 02:53 PM
|
#2
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Why do you think you need to do this?
Do you want to end all processes except those which are vital to the kernel continuing to run?
|
|
|
06-01-2003, 02:59 PM
|
#3
|
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123
Rep:
|
man ps
man kill
|
|
|
06-01-2003, 03:00 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
clear the ram? if you're not up on the memory model of linux, it is designed to sotre as much previously used data in the ram as possible, in order to make programs restart faster. the space is always efficently reclaimed if it is needed for new processes
|
|
|
06-01-2003, 03:22 PM
|
#5
|
LQ Newbie
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9
Original Poster
Rep:
|
ok well basicly I am running out of ram and its going into the swap do I need to add more ram?
|
|
|
06-01-2003, 05:07 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Not unless it's using all the swap. My system usually uses a few megs of swap despite half the ram not being used. It's just doing it's thing to keep the most used processes going as fast and efficiently as possible.
|
|
|
06-01-2003, 05:26 PM
|
#7
|
LQ Newbie
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9
Original Poster
Rep:
|
ok
|
|
|
06-01-2003, 07:49 PM
|
#8
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
" Yes Linux uses your ram. What?-Did you want it just sitting there unused so you could brag?"
Was that in your sig before you answered this thread? What a coinkydink.
|
|
|
06-01-2003, 07:51 PM
|
#9
|
LQ Newbie
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9
Original Poster
Rep:
|
ok goofy........ I run game servers I have 3GB of Registered DDR in my server right now I don't want to have to add another GB so I am trying to figure out a alway to clear up my ram
|
|
|
06-01-2003, 07:56 PM
|
#10
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Nah bulliver, I changed it after 3 people posted about the linux way within a few hours of each other. I moved all my links to the LQ bookmark listing too.
eyexer0, have you read about tweaking your kernel to recognise more than about 512megs ram? Or any other info about ram-rich installs?
|
|
|
06-01-2003, 07:58 PM
|
#11
|
LQ Newbie
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9
Original Poster
Rep:
|
nope I just thought you put the ram in and go? should I be doing something to my kernels?
|
|
|
06-01-2003, 08:09 PM
|
#12
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
From checking the Similar Thread Kernel not reading all available RAM listed below, I see there is a highmem kernel option, as well as arguements which can be passed to the kernel via your bootloader (Lilo).
think you'll have to browse online for info on others with similar servers. Dont forget to run lilo after changing /etc/lilo.conf for the changes to take effect.
Last edited by Proud; 06-01-2003 at 08:10 PM.
|
|
|
06-01-2003, 08:27 PM
|
#13
|
LQ Newbie
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9
Original Poster
Rep:
|
I run grub :/
|
|
|
06-02-2003, 04:47 AM
|
#14
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Rep:
|
Quote:
Proud said:
eyexer0, have you read about tweaking your kernel to recognise more than about 512megs ram? Or any other info about ram-rich installs?
|
my system recognizes 1024 megs just fine without kernel tweaks.
|
|
|
06-02-2003, 12:31 PM
|
#15
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Rep:
|
Reconizing the ram and using it efficiently is too different things, Once you are above 1 gig of ram it is good to do a kernel recompile to configure your server to make the best use of its resources.
A really bad example but I will give it anyway, I had someone bring in a windows 98 machine with 640 megs of ram, it reconized it but it was running worse than normal, by microsoft a windown 9x machine can only reconize 512 megs of ram, but it starts degrading in performance after 256 megs, so there is a case of an os reconizing alot of ram but not using it right.
Linux could be the same with 3 gig's of ram, fortunatly it can be easly configured to use all that ram where the windows machine in my example above could not :-)
|
|
|
All times are GMT -5. The time now is 01:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|