Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 26th, 2003, 12:26 AM
Rhys Rhys is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 59 Rhys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 46 sec
Reputation Power: 7
Memory Usage

Hello,

I have a new Linux Server setup and was monitoring the memory usage.
The system is fitted with 1024meg of ram, when first booted it uses about 500meg, then as time passes grows to be using more and more.
Is this normal? Will it stop when it gets close to 1gb?
There is just a webserver & mysql database, no real load.

Thanks Heaps

Rhys

Reply With Quote
  #2  
Old January 26th, 2003, 10:06 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
this is standard behaviour. donīt worry. it uses all available memory for caching. if a program will request memory, the OS will free some cache.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old January 26th, 2003, 03:48 PM
Rhys Rhys is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 59 Rhys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 46 sec
Reputation Power: 7
OK, Thanks for that,

Just wondering.
What sort of things does it cache?

Thanks

Rhys

Reply With Quote
  #4  
Old January 27th, 2003, 11:54 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
afaik itīs inodes from the filesystem.

Reply With Quote
  #5  
Old January 27th, 2003, 12:40 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
"top" at the command line will tell you how much is cached. On my boxen (one of which has 2 gig of ram and is a mod_perl/mysql box that sees moderate traffic) it will eat up all the ram, but 70% of the used ram is in the cache.

I think of used cache ram as a good thing, it means your box will be hitting the filesystem far less than it would without it. As I understand, cached ram can be dropped immediatly and freed up if your box needs it.

What this comes down to: using up your ram and putting things into cached ram is expected, and desirable, behavior.

Reply With Quote
  #6  
Old January 27th, 2003, 02:09 PM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
Exactly, cached RAM is a good thing. You experience essentially no performance hit in simply removing it from the used pages table if you need to free up that spot in RAM, but if you end up needing it (and the kernel uses a somewhat sophisticated algorithm for aging cached pages so that ones that you are less likely to need expire first) then you get a major performance gain by not having to access the disk at all.

Just like processor L1 and L2 cache, the more stuff you can have in cache and can get through cache hits .. the better.
__________________
Debian - because life's too short for worrying.
Best. (Python.) IRC bot. ever.

Reply With Quote
  #7  
Old January 28th, 2003, 08:27 PM
bizzk's Avatar
bizzk bizzk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: The Netherlands
Posts: 327 bizzk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
[OT]
I'm using 512 RIMM (the server hardware is just ready, tommorow will be install time) for my webserver (Low-end PHP/MySQL use mostly).

The board can handle up to P1066 RIMM, but I could't find any 512 mb P1066 RIMM chips (only P800) so I chose two 256 mb 1066 chips.

What do you think, is what is 512 mb 1066 RIMM compared to a. 1024 mb DDR b. 1024 mb SDRAM c. 1024 mb RIMM P800?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Memory Usage


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway