From: Kees Nuyt on
On Fri, 28 May 2010 01:26:45 -0700 (PDT), kielhd
<kielhd(a)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[_]

From: Rich Teer on
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
From: Barry on
On Fri, 28 May 2010 10:06:55 +0200, Thomas Maier-Komor
<thomas(a)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

From: Darkjest on
On May 28, 8:18 am, kielhd <kie...(a)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}'
First  |  Prev  | 
Pages: 1 2 3
Prev: disk space usage
Next: Suggession for your website