Available RAM on SunOS 5.10

  • Follow


HI NG,

I need to find out how nuch RAM is still available on the system. Is
there a command that gives me ONLY the availably RAM (not including
swap-space!) ?

TIA,
Henning
0
Reply kielhd (28) 5/28/2010 7:18:45 AM

On 05/28/10 07:18 PM, kielhd wrote:
> HI NG,
>
> I need to find out how nuch RAM is still available on the system. Is
> there a command that gives me ONLY the availably RAM (not including
> swap-space!) ?

How do you define "available RAM"?

-- 
Ian Collins
0
Reply Ian 5/28/2010 7:47:03 AM


On 28.05.2010 09:18, kielhd wrote:
> HI NG,
> 
> I need to find out how nuch RAM is still available on the system. Is
> there a command that gives me ONLY the availably RAM (not including
> swap-space!) ?
> 
> TIA,
> Henning

- prtconf display the physically installed memory
- vmstat display the amount of available virtual memory
- sysstat [1] displays both available physical memory and available swap

HTH,
Thomas
[1]: www.maier-komor.de/sysstat.html
0
Reply Thomas 5/28/2010 8:06:55 AM

Ian Collins wrote:
>  On 05/28/10 07:18 PM, kielhd wrote:
> > HI NG,
> >
> > I need to find out how nuch RAM is still available on the system. Is
> > there a command that gives me ONLY the availably RAM (not including
> > swap-space!) ?
> 
>  How do you define "available RAM"?

In case that's free physical RAM not in use by the OS and applications
(I'm inferring this from the phrase "still available"), then there's a
script which can give that information.

http://www.brendangregg.com/K9Toolkit/sysperfstat

-- 
 .-.   .-.    Yes, I am an agent of Satan, but my duties are largely
(_  \ /  _)   ceremonial.
     |
     |        dave@fly.srk.fer.hr
0
Reply Drazen 5/28/2010 8:23:27 AM

> - prtconf display the physically installed memory

Thank you for your answer, but I am actually looking for RAM, that is
available for processing, not for the installed RAM.
sysstat [1] is not available on the system, unfortunately.

Is there another way to get this information?

TIA,
Henning
0
Reply kielhd 5/28/2010 8:26:45 AM

On 28.05.2010 10:26, kielhd wrote:
> 
>> - prtconf display the physically installed memory
> 
> Thank you for your answer, but I am actually looking for RAM, that is
> available for processing, not for the installed RAM.
> sysstat [1] is not available on the system, unfortunately.
> 
> Is there another way to get this information?
> 
> TIA,
> Henning

then this would be option 3:
sysstat [1] displays both available physical memory and available swap.

Get it there: www.maier-komor.de/sysstat.html
or on opencsw.org

- Thomas
0
Reply Thomas 5/28/2010 9:45:07 AM

On 28 Mai, 09:18, kielhd <kie...@freenet.de> wrote:
> HI NG,
>
> I need to find out how nuch RAM is still available on the system. Is
> there a command that gives me ONLY the availably RAM (not including
> swap-space!) ?
>
> TIA,
> Henning

Hi Henning,

the command

echo "::memstat" | mdb -k

gives some information how the physical memory
is used. Unfortunately this command is very slow
and only usable as user root.

BR
--
Roland
0
Reply Roland 5/28/2010 9:56:51 AM

Ian Collins wrote:
> On 05/28/10 07:18 PM, kielhd wrote:
>> HI NG,
>>
>> I need to find out how nuch RAM is still available on the system. Is
>> there a command that gives me ONLY the availably RAM (not including
>> swap-space!) ?
> 
> How do you define "available RAM"?
> 

Lacking any further info I'd have to assume he's asking how much RAM is 
installed.

The OP might find this to be of some interest:

http://catb.org/~esr/faqs/smart-questions.html

A well posed question is more likely to get a useful answer than one to 
which no thought has been given.
0
Reply Richard 5/28/2010 12:19:17 PM

Hi,

kielhd wrote:
>> - prtconf display the physically installed memory
> 
> Thank you for your answer, but I am actually looking for RAM, that is
> available for processing, not for the installed RAM.
> sysstat [1] is not available on the system, unfortunately.
> 
> Is there another way to get this information?
> 
> TIA,
> Henning
I think that that is not easy to find out since not all memory is 
returned until it is needed thats the whole point of having a efficient 
memory system, not wast CPU cycles until there is a need for it.

Is it not enough to know total amount of memory and then use start the 
app or not.

Using other counters like sr(in vmstat 1) will once started tell you if 
you are in any need of more physical RAM or not.


/michael
0
Reply Michael 5/28/2010 2:29:30 PM

In article <17753f80-d78b-4fa7-8664-9ad51ee33bc2@o1g2000vbe.googlegroups.com>,
	kielhd <kielhd@freenet.de> writes:
> 
>> - prtconf display the physically installed memory
> 
> Thank you for your answer, but I am actually looking for RAM, that is
> available for processing, not for the installed RAM.
> sysstat [1] is not available on the system, unfortunately.
> 
> Is there another way to get this information?

The question is too imprecise to provide any answer.
However, I suspect that even if you asked a more precise
question, it's still not going to have a simple answer;
you really need to go and read up on how system memory
allocation works. Thinking that the system keeps memory
free for you to use is misleading. A better way to think
of it (but still too simplistic) is that the system will
find you some memory when you need it, by taking it from
other things that need it less than you do. After all,
why keep it free - that's just wasting the memory you
purchased. As you need more memory, the system will take
it from increasingly important other things, and this
will eventually start to impact their performance
noticably, and eventually the performance of your
application and the whole system. It's a sliding scale,
and you might not hit any hard limit until the system
is performing too poorly to be effective. There are
copious resource controls available in Solaris which you
can use to impose limits if you need to protect aspects
of system performance from such degradation.

-- 
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
0
Reply andrew 5/28/2010 10:26:26 PM

On 28/05/2010 2:26 AM, kielhd wrote:
>
>> - prtconf display the physically installed memory
>
> Thank you for your answer, but I am actually looking for RAM, that is
> available for processing, not for the installed RAM.
> sysstat [1] is not available on the system, unfortunately.
>
> Is there another way to get this information?
>
> TIA,
> Henning

Why would you need another way?  Isn't going to change the results.

-- 
I would rather be a paid up Conservative nut job than a Liberal with no 
nuts, no job in debt and living off of other people like a leach.

0
Reply Canuck57 5/29/2010 12:46:15 AM

On Fri, 28 May 2010 01:26:45 -0700 (PDT), kielhd
<kielhd@freenet.de> wrote:

>
>> - prtconf display the physically installed memory
>
>Thank you for your answer, but I am actually looking for RAM, that is
>available for processing, not for the installed RAM.
>sysstat [1] is not available on the system, unfortunately.
>
>Is there another way to get this information?

If you need a certain amount of memory for processing, try to
allocate that amount. The allocation will succeed if the amount
you request is available, it will fail if it's not. Usually it
will not fail. Your allocation may cause swapping (which can be
measured), that's what vitual memory management is for.
Best regards,
--
  ( Kees Nuyt
  )
c[_]

0
Reply Kees 5/29/2010 1:58:45 PM

On Fri, 28 May 2010, kielhd wrote:

> I need to find out how nuch RAM is still available on the system. Is
> there a command that gives me ONLY the availably RAM (not including
> swap-space!) ?

Why do you care?  The amount of free RAM varies from millisecond to
millisecond, so any info you can gain will be history before long
anyway.

Just write your app to ask for as much memory as it needs, and deal
with memoryallocation errors as they occur.

-- 
Rich Teer, Publisher
Vinylphile Magazine

www.vinylphilemag.com
0
Reply Rich 5/29/2010 5:10:44 PM

On Fri, 28 May 2010 10:06:55 +0200, Thomas Maier-Komor
<thomas@maier-komor.de> wrote:

>On 28.05.2010 09:18, kielhd wrote:
>> HI NG,
>> 
>> I need to find out how nuch RAM is still available on the system. Is
>> there a command that gives me ONLY the availably RAM (not including
>> swap-space!) ?
>> 
>> TIA,
>> Henning
>
>- prtconf display the physically installed memory
>- vmstat display the amount of available virtual memory
>- sysstat [1] displays both available physical memory and available swap
>
>HTH,

HAND?

>Thomas

0
Reply Barry 6/4/2010 7:18:11 AM

On May 28, 8:18=A0am, kielhd <kie...@freenet.de> wrote:
> HI NG,
>
> I need to find out how nuch RAM is still available on the system. Is
> there a command that gives me ONLY the availably RAM (not including
> swap-space!) ?
>
> TIA,
> Henning

## How much memory is being used
#echo "`prtconf | grep 'Memory size' | awk '{print $3}'` - (`vmstat 1
2 | tail -1 | awk '{print $5}'` /1024)" | bc

## Workout total server memory
# prtconf | grep 'Memory size' | awk '{print $3}'
0
Reply Darkjest 6/4/2010 9:26:11 AM

14 Replies
883 Views

(page loaded in 0.234 seconds)

Similiar Articles:


















7/24/2012 8:18:31 AM


Reply: