Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 10 Dec 2018, 11:22
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How much of RAM is free?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [52 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Thu 17 Nov 2011, 08:17    Post subject:  How much of RAM is free?  

How do I tell how much RAM is still free?

If I look at "df -h" I see what's allocated to different things but I can't see how to add everything up.

If I look at "free" it seems to be a rubbish number as there is always something free but the "used" amount has no correlation to what I think is being used.

Freememapplet is just weird.
Back to top
View user's profile Send private message 
sfeeley

Joined: 14 Feb 2010
Posts: 809

PostPosted: Thu 17 Nov 2011, 11:04    Post subject:  

click console

type "htop"

I think this will give you what you want-- basically how much ram and swap is being used, plus a table of what is using it. also cpu usage
Back to top
View user's profile Send private message 
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Thu 17 Nov 2011, 12:29    Post subject:  

sfeeley wrote:

type "htop"


Thanks, but no good. It's showing 130MB used when it's actually more like 1,400MB used. Otherwise htop is great, although I don't think it's in the standard Puppy, but it should be instead of that useless top and pprocess.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Thu 17 Nov 2011, 14:03    Post subject:  

Why don't you post a screenshot, so people can see for themselves if it's no good.
Also machine specs are welcome.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Thu 17 Nov 2011, 15:27    Post subject:  

Where's the trust? Sad

Htop currently showing 137MB/2023MB.

Pupsfs is in RAM so at least another 212MB

/initrd/pup_rw 75MB (Ridiculous recent Firefoxes waste 50MB before you even start).

Plus another 967MB in tmpfs.

"free" shows 2057704 used and 14868 free.

The way I figure it, there is about 600MB of RAM which is still available to use.

Code:
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb2             2.6G  2.3G  160M  94% /initrd/mnt/dev_save
/dev/loop1            248M   93M  156M  38% /initrd/pup_ro1
tmpfs                1012M   75M  938M   8% /initrd/pup_rw
tmpfs                 213M  212M  784K 100% /initrd/mnt/tmpfs
/dev/loop0            212M  212M     0 100% /initrd/pup_ro2
unionfs              1012M   75M  938M   8% /
shmfs                 448M     0  448M   0% /dev/shm
tmpfs                1012M  967M  45M  95% /mnt/sdzz
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Thu 17 Nov 2011, 15:34    Post subject:  

Why don't trust htop then.
_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3217

PostPosted: Thu 17 Nov 2011, 15:48    Post subject: Re: How much of RAM is free?  

hoven wrote:
How do I tell how much RAM is still free?

If I look at "df -h" I see what's allocated to different things but I can't see how to add everything up.

If I look at "free" it seems to be a rubbish number as there is always something free but the "used" amount has no correlation to what I think is being used.

Freememapplet is just weird.


Did you add what's in the buffers?
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Thu 17 Nov 2011, 16:34    Post subject:  

Hi hoven,

I raised a similar question to yours http://www.murga-linux.com/puppy/viewtopic.php?search_id=987853847&t=64458 where I even emailed the author of Htop.

I am still in a very dim light, but the good news is that with 640 MB of total RAM (597 MB available per Htop which could be increased to 621 MB) I have a 1GB swap partition which is not needed and usually set to off with "swapoff -a"
and I have yet to come anywhere near using all my RAM despite trying a few times many months past.

My regards
Back to top
View user's profile Send private message 
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Thu 17 Nov 2011, 16:43    Post subject:  

Béèm wrote:
Why don't trust htop then.


It's not a matter of trusting it. Htop simply does not report the amount of RAM in use or available.
Back to top
View user's profile Send private message 
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Thu 17 Nov 2011, 16:52    Post subject: Re: How much of RAM is free?  

jpeps wrote:
hoven wrote:

If I look at "free" it seems to be a rubbish number as there is always something free but the "used" amount has no correlation to what I think is being used.


Did you add what's in the buffers?


Not sure what you mean. Currently "free" shows different figures to what it showed before even though nothing has changed memory usage since then.
total 2072572
used 2021112
free 51460
shared 0
buffers217344
no swap

But I know free RAM is close to 650MB (through trial and error)
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Thu 17 Nov 2011, 17:27    Post subject:  

In PupSysInfo you'll find full detail of the RAM occupation.
_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3217

PostPosted: Thu 17 Nov 2011, 17:36    Post subject: Re: How much of RAM is free?  

hoven wrote:
jpeps wrote:
hoven wrote:

If I look at "free" it seems to be a rubbish number as there is always something free but the "used" amount has no correlation to what I think is being used.


Did you add what's in the buffers?


Not sure what you mean. Currently "free" shows different figures to what it showed before even though nothing has changed memory usage since then.


It's my understanding that memory will be allocated for various purposes such as speed. Therefore "free" may be misleading.

Also, I can substantially add free memory by just clearing the caches:

Code:

sync
sleep 1
echo 3 > /proc/sys/vm/drop_caches



Mem: total......used.....free.....shared buffer

Mem: 1034512 851796 182716 0 109148
Mem: 1034512 303780 730732 0 1776
Back to top
View user's profile Send private message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4421
Location: merriam, kansas

PostPosted: Thu 17 Nov 2011, 17:55    Post subject: Re: How much of RAM is free?  

hoven wrote:
jpeps wrote:
hoven wrote:

If I look at "free" it seems to be a rubbish number as there is always something free but the "used" amount has no correlation to what I think is being used.


Did you add what's in the buffers?


Not sure what you mean. Currently "free" shows different figures to what it showed before even though nothing has changed memory usage since then.
total 2072572
used 2021112
free 51460
shared 0
buffers217344
no swap

But I know free RAM is close to 650MB (through trial and error)


Type "top" in console;
it's even more fun than "htop" or "free". Wink

_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Thu 17 Nov 2011, 18:15    Post subject:  

Hi,

In the screenshot there are 4 sets of Memory figures from htop, slickrun(via Wine), conky and top.

They are all in close agreement, but for "top" divide the final figures by 1024.

So per "top":
total = 490812 + 121312 = 612124 / 1024 = 597.77
used = 490812 -38176 - 344712 =107924 / 1024 = 105.39
free = 121312 +38176 + 344712 =504200 / 1024 =492.38


So superficially I understand, but not really or deeply.

My regards
htopplus.jpg
 Description   Left > htop (with slickrun in blue then conky below). Right > top
 Filesize   86.42 KB
 Viewed   540 Time(s)

htopplus.jpg

Back to top
View user's profile Send private message 
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Thu 17 Nov 2011, 19:16    Post subject: Re: How much of RAM is free?  

rjbrewer wrote:

Type "top" in console;
it's even more fun than "htop" or "free". Wink


Closer, but still no good.
Top currently showing 59MB free and 284MB buffers.

As near as I can gather there is actually 500-600MB of physical RAM that is still available for use. If I exceed that amount then system will freeze.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [52 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

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
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1366s ][ Queries: 12 (0.0526s) ][ GZIP on ]