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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-12-2003, 12:54 AM
|
#1
|
|
Member
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340
Rep:
|
Linux and Memory usage
I want to know a bit from you guys if my linux system behaves the same as yours, and possibly some possible logical reason for this.
The box has 612.48MB of RAM and I remember that the after a fresh reboot the amount of memory used is very minimal. After some uptime I can see that the amount of memory sued becomes to increment day by day. After an uptime of 3 days 12 hours 56 minutes, I have only 24.69MB of memory left, and for the first time I've had Debian, i'm realising that 4.18MB are being used from the Swap memory.. Does this mean that if i leave for some 5 weeks, my machine will be crawling like a snail due to lack of memory??
Something else related maybe to box specs, what are bogomips??
My only services running are an apache server which only me uses, so i don't think it consumes much memory, and the X-server.
thanks a lot,
ganninu.
|
|
|
|
12-12-2003, 03:24 AM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
do you have /var on it's own "seperate" partition??
|
|
|
|
12-12-2003, 03:37 AM
|
#3
|
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
well the X is a real memory hog.
Try doing 'top' at command line to see what all services are running without your knmowledge.
You obviously dont put the quotes 
|
|
|
|
12-12-2003, 03:50 AM
|
#4
|
|
Member
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340
Original Poster
Rep:
|
hehe i found out about the services by doing top actually  i have those services i mentioned. As regards to my partitioning, '/var' is not on a separate partition...
|
|
|
|
12-12-2003, 11:44 AM
|
#5
|
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
|
|
|
|
12-12-2003, 02:16 PM
|
#6
|
|
Member
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200
Rep:
|
No! Your computer will not be running like a snail in five weeks.
This is how Linux works. You paid for those 600+ megs; be thankful they're getting used!
Linux approach to memory is this: if you aren't using it, you're wasting it.
Your memory is full of cached data. When an app needs more memory, data is removed from the cache.
Check out my two computers:
This one is doing nothing at all:
top - 14:45:49 up 5 days, 3:07, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 48 total, 1 running, 47 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.1% user, 0.5% system, 0.6% nice, 96.7% idle
Mem: 126228k total, 123324k used, 2904k free, 7020k buffers
Swap: 506008k total, 9424k used, 496584k free, 34288k cached
This one is running a mailserver, OpenOffice, Kmail, IRSSI, Pine, Evolution, XPDF, and probably a bunch of other stuff:
top - 14:42:12 up 4 days, 18:55, 7 users, load average: 0.01, 0.04, 0.00
Tasks: 98 total, 1 running, 97 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.7% user, 1.8% system, 0.2% nice, 91.3% idle
Mem: 191060k total, 187332k used, 3728k free, 6560k buffers
Swap: 385520k total, 61608k used, 323912k free, 90292k cached
Last edited by mac_phil; 12-12-2003 at 02:49 PM.
|
|
|
|
12-12-2003, 03:12 PM
|
#7
|
|
Member
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394
Rep:
|
I think mac_phil is right: here's my 'free' output (I have a loaded system):
Code:
camera:/home/ale# free
total used free shared buffers cached
Mem: 190408 183876 6532 0 16524 78316
-/+ buffers/cache: 89036 101372
Swap: 554168 164368 389800
This means 6.5M are unused, but 100M hold cached data, so the are eligible to be freed on demand.
If you want to access disk data that is in this cache, you'll have it in microseconds 
Note that if an application is idle for a long time (e.g. a shell you're not using) it will be likely swapped to make your cache bigger.
Also note that (unlike winnt) linux will NEVER write to swap security-related information such as encripted fs info or passwords (unless you use badly-careless applications, of course).
Last edited by ac1980; 12-12-2003 at 03:21 PM.
|
|
|
|
12-13-2003, 01:00 AM
|
#8
|
|
Member
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340
Original Poster
Rep:
|
thanks for your response guys. now i understand why linux is faster than windows.
|
|
|
|
12-15-2003, 07:33 AM
|
#9
|
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
I learnt a lot about Linux due to this discussion. Thanks all!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:58 PM.
|
|
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
|
|