Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Sep 11, 2009 10:00 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
So I have 2 VPS and I installed debian on both of them.

One VPS is using roughly 10mb right after the install, and the other is using 30mb. I'm just wondering why this is (both are minimal).


Top
   
 Post subject:
PostPosted: Fri Sep 11, 2009 10:53 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Did you perhaps install 32-bit Debian on one and 64-bit on the other?


Top
   
 Post subject:
PostPosted: Fri Sep 11, 2009 10:56 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
Nope, they were both the same.


Top
   
 Post subject:
PostPosted: Sun Sep 27, 2009 8:43 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
Ok so I just tried this out with a 32 bit and 64 bit install of Debian Lenny. Both took roughly the same amount of RAM with a fresh install, but I've seen the number a lot lower. Mine was around 30mb whereas I've seen it around 5mb. Why is this?


Top
   
PostPosted: Sun Sep 27, 2009 8:48 pm 
Offline
Senior Newbie

Joined: Wed Jan 09, 2008 6:55 am
Posts: 15
sneaks wrote:
So I have 2 VPS and I installed debian on both of them.

One VPS is using roughly 10mb right after the install, and the other is using 30mb. I'm just wondering why this is (both are minimal).


Look at the output of top (then hit F n) to see why. Also, http://www.linuxatemyram.com/.


Top
   
 Post subject:
PostPosted: Sun Sep 27, 2009 9:19 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
Thanks for the link. So is there a way to tell exactly how much memory is actually being used?


Top
   
 Post subject:
PostPosted: Sun Sep 27, 2009 9:36 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
Run the command "free" and read the numbers on the middle line (-/+ buffers/cache)


Top
   
 Post subject:
PostPosted: Sun Sep 27, 2009 10:04 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
If that's true then I'm back to square one since those are the numbers I have been reading. Running that command in my tests showed some with 30mb used on a fresh install while others had only like 5mb.


Top
   
 Post subject:
PostPosted: Mon Sep 28, 2009 12:46 am 
Offline
Senior Newbie

Joined: Wed Jan 09, 2008 6:55 am
Posts: 15
sneaks wrote:
Thanks for the link. So is there a way to tell exactly how much memory is actually being used?


yes, use top. hit F n to sort by memory use, then examine the top, say, 10 entries.


Top
   
 Post subject:
PostPosted: Mon Sep 28, 2009 12:08 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Although, top can be misleading, because it doesn't really give you the full story as far as shared memory among processes.

This script:
http://www.pixelbeat.org/scripts/ps_mem.py
attempts to do that. (I may have found out about it on this forum but I don't recall...)


Top
   
 Post subject:
PostPosted: Mon Sep 28, 2009 1:54 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
Thanks, that tool seems pretty nifty. Is it possible though, that 2 fresh minimal installs of Debian 5 both take up significantly different amounts of RAM (ignoring the architecture)?


Top
   
 Post subject:
PostPosted: Mon Sep 28, 2009 5:59 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
No.


Top
   
PostPosted: Mon Sep 28, 2009 7:03 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
sneaks wrote:
One VPS is using roughly 10mb right after the install, and the other is using 30mb.

Could just be the time factor -- maybe a cron job happened to kick in just before you looked at the ram usage on one of them, or there was some other relatively normal activity that lead to a bit of caching.

ps, htop and your logs should all help, if you want to see what actually happened (probably a bit late now though, unless you want to start the experiment all over again...).


Top
   
 Post subject:
PostPosted: Mon Sep 28, 2009 7:41 pm 
Offline
Junior Member

Joined: Sun Nov 16, 2008 4:35 am
Posts: 38
Make sure you're using the same kernel on both.

Also, they're probably on different hosts, and different hosts may have different kernels and xen versions, which theoretically may influence RAM usage inside the VM.


Top
   
 Post subject:
PostPosted: Tue Sep 29, 2009 3:35 pm 
Offline
Junior Member

Joined: Wed Mar 04, 2009 11:10 pm
Posts: 29
Yeah, they are on different hosts. How would the kernel and xen make a difference in this? I do believe you, but I'm just curious as to why they matter.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group