LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-23-2003, 05:13 PM   #1
Sin-D
LQ Newbie
 
Registered: Nov 2003
Location: The Netherlands
Distribution: Suse 9.0 professional
Posts: 14

Rep: Reputation: 0
Unhappy memory full, computer slow


Hey guys,

I've been using linux mandrake for about 3 years now and just yesterday i installed suse 9.0 Professional.

I like it so far except for one problem:

My memory is full, i have 512 mb ddr ram and i only have between 10 mb and 200 kb left of free memory.
i checked my processes with 'top' and there didn't seemed to be anything unusuall about the processes.

this is making my computer very slow, and it produces quite some heat when it's running all day long.

It would help me alot if someone knew the awnser or a tip that would get me further in this.

My computer:
Pentium4 3ghz 800mhz FSB
Asus P4P800 MB
512 MB ddr RAM
ATI Radeon 9800Pro 128 mb
 
Old 11-23-2003, 06:46 PM   #2
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
How did you check your memory usage? Linux will cache a lot of RAM, but only use some of it. For instance, the top command shows 502 of my 512mb's being used, but in reality Im only 'using' 110mb's. Like 390mb's of that ram is cached. Try using gkrellm or something to see your mem usage. It will only show what you are actually using. Otherwise, take what top shows as used, and subtract buff & inactive. Then the remainder is ram actually in use.

As far as the heat, also try gkrellm. If all your monitors look normal (cpu, disk, etc) then the heat is prob a hardware problem. If you see the cpu @ 100% when its sitting idle, then use top to find out what is using all those cycles.

Last edited by Scruff; 11-23-2003 at 06:50 PM.
 
Old 11-23-2003, 10:44 PM   #3
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 373

Rep: Reputation: 113Reputation: 113
You can see the actual memory usage by typing "free -m" at a command prompt:

Code:
hostname ~> free -m
             total       used       free     shared    buffers     cached
Mem:           503        433         69          0         58        262
-/+ buffers/cache:        112        391
Swap:          517          1        516
This example shows that I have 391MB free (-/+ buffers/cache line) out of 503MB total and I'm using 1MB swap space out of 517MB total. If you really think you are running out of physical memory, check the used column on the swap line. If the swap used amount continues to increase, then you are running out of memory, otherwise the memory is being stored in the buffers/cache and is available when needed.

Speck
 
Old 11-23-2003, 11:31 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# Memory and swap information
cat /proc/meminfo
free
An article: Tips for Optimizing Linux Memory
 
Old 11-24-2003, 03:01 AM   #5
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Rep: Reputation: 30
From what I understand Linux generally (i use RH but it may be across the board) that the OS will use the memory up so to speak so that eventually it will show that you have very little left... but in fact it only clears the memory when it needs it that way its not using up resources clearing the memory without reason. Command like top will show that the memory use is slowly increasing which is perfectly normal because when it gets almost used it will clear the cache on it.

Right??
 
Old 11-24-2003, 04:14 AM   #6
8nasmith
Member
 
Registered: Oct 2003
Location: Cornwall, UK
Distribution: Fedora Core 4
Posts: 268

Rep: Reputation: 30
512 ram thats nor bad i am running mandrake 9.2 on 64mb of ram
 
Old 11-24-2003, 04:14 AM   #7
8nasmith
Member
 
Registered: Oct 2003
Location: Cornwall, UK
Distribution: Fedora Core 4
Posts: 268

Rep: Reputation: 30
i mean not, off the subject does anyone know how i can change my signiture
 
Old 11-24-2003, 06:09 AM   #8
Sin-D
LQ Newbie
 
Registered: Nov 2003
Location: The Netherlands
Distribution: Suse 9.0 professional
Posts: 14

Original Poster
Rep: Reputation: 0
using the free -m command i had this as a result:
total used free shared buffers cached
Mem: 501 374 126 0 51 100
-/+ buffers/cache: 223 277
Swap: 1019 0 1019

So if it's not my memory then i wonder why my computer is so slow.

After installing gkrellm i found out i have 270 mb free memory, however the cpu is busy at an average of 80% while i'm not doing anything

top - 13:11:18 up 37 min, 4 users, load average: 0.44, 0.32, 0.22
Tasks: 91 total, 1 running, 90 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.2% user, 40.1% system, 0.0% nice, 58.7% idle
Mem: 513360k total, 504388k used, 8972k free, 56488k buffers
Swap: 1044152k total, 0k used, 1044152k free, 184440k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2296 root 15 0 50652 40m 3192 S 5.6 8.1 4:20.30 X
4039 me 16 0 7776 7776 5708 S 1.0 1.5 0:05.37 gkrellm
4093 me 16 0 952 952 744 R 1.0 0.2 0:00.56 top
2451 me 16 0 176m 43m 21m S 0.7 8.8 2:29.77 kdeinit
4082 me 15 0 152m 19m 14m S 0.7 4.0 0:01.81 kdeinit
2399 me 15 0 152m 20m 14m S 0.3 4.0 0:04.54 kdeinit
2890 me 15 0 13344 13m 8532 S 0.3 2.6 0:13.15 xchat
1 root 15 0 256 256 220 S 0.0 0.0 0:04.48 init

according to 'top' it isn't doingh much either yet the cpu monitor in gkrellm shows it's very active at 80/90%
 
Old 11-24-2003, 07:24 AM   #9
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Well, if gkrellm shows 80% then it is likely 80%. Try ps -aux to get a complete list of processes and see if there's anything unusual there.

Also, check to see if DMA is enabled for your hard drive. When I was using kernel 2.4.20 I couldn't get dma to stay on. The aftereffect was extremely high CPU usage during any disk activity.

Try this to check drive speed: hdparm -Tt /dev/hdX (where X is your drive, prb: hda)
And this to see drive settings: hdparm -v /dev/hda
 
Old 11-24-2003, 07:25 AM   #10
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Quote:
Originally posted by 8nasmith
i mean not, off the subject does anyone know how i can change my signiture
The usercp button up near the top. Then, edit profile.
 
Old 11-24-2003, 10:33 AM   #11
Sin-D
LQ Newbie
 
Registered: Nov 2003
Location: The Netherlands
Distribution: Suse 9.0 professional
Posts: 14

Original Poster
Rep: Reputation: 0
it's fixed

i'll tell ya what the problem was, i have a pentium 4 3ghz with hyperthreading (or something like that) anyway, suse thought they were 2 cpu's and so installed the smp kernel instead of the normal one.

i tried to change kernels without having to reinstall but at bootup it gave an error so i had to reinstall suse but that's ok cuz now everything is working as it's supposed too
 
  


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
memory full sailu_mvn Linux - Software 3 08-22-2005 08:06 AM
memory full when reading large files with fgetc() alshishtawy Programming 9 05-30-2004 07:45 AM
Memory is Full orenr Linux - Software 3 11-14-2003 10:36 AM
full memory usage dsrage Linux - General 3 02-08-2003 10:59 AM
Any full time Computer Programmer(s)? Admiral Yoshi General 0 05-22-2002 06:05 PM

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

All times are GMT -5. The time now is 06:20 PM.

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