LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 06-01-2003, 02:48 PM   #1
eyexer0
LQ Newbie
 
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9

Rep: Reputation: 0
clearing ram?


Is it possible to clear ram in linux with out rebooting the server?
 
Old 06-01-2003, 02:53 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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?
 
Old 06-01-2003, 02:59 PM   #3
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
man ps
man kill
 
Old 06-01-2003, 03:00 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 06-01-2003, 03:22 PM   #5
eyexer0
LQ Newbie
 
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9

Original Poster
Rep: Reputation: 0
ok well basicly I am running out of ram and its going into the swap do I need to add more ram?
 
Old 06-01-2003, 05:07 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
Old 06-01-2003, 05:26 PM   #7
eyexer0
LQ Newbie
 
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9

Original Poster
Rep: Reputation: 0
ok
 
Old 06-01-2003, 07:49 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
" 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.
 
Old 06-01-2003, 07:51 PM   #9
eyexer0
LQ Newbie
 
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 06-01-2003, 07:56 PM   #10
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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?
 
Old 06-01-2003, 07:58 PM   #11
eyexer0
LQ Newbie
 
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9

Original Poster
Rep: Reputation: 0
nope I just thought you put the ram in and go? should I be doing something to my kernels?
 
Old 06-01-2003, 08:09 PM   #12
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
Old 06-01-2003, 08:27 PM   #13
eyexer0
LQ Newbie
 
Registered: Jun 2003
Location: Fort Smith, AR
Posts: 9

Original Poster
Rep: Reputation: 0
I run grub :/
 
Old 06-02-2003, 04:47 AM   #14
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
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.
 
Old 06-02-2003, 12:31 PM   #15
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
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 :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 01:14 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 02:01 PM
Clearing Ram Cyric Slackware 2 10-08-2004 02:54 AM
Clearing screen xunilpassion Programming 1 10-16-2003 04:54 PM
clearing RAM hamsterdude Linux - Hardware 3 09-08-2002 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 AM.

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