[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.61.0710221328160.9412@chaos.analogic.com>
Date: Mon, 22 Oct 2007 13:34:05 -0400
From: "linux-os \(Dick Johnson\)" <linux-os@...logic.com>
To: "Ravinandan Arakali \(rarakali\)" <rarakali@...co.com>
Cc: "Vaidyanathan Srinivasan" <svaidy@...ux.vnet.ibm.com>,
"Linux Kernel" <linux-kernel@...r.kernel.org>
Subject: RE: Question about free/used memory on Linux
On Sun, 21 Oct 2007, Ravinandan Arakali (rarakali) wrote:
> Hi Vaidy,
> Thanks for clarifying several of my doubts.
>
> To answer your question about my intention, we currently have a
> system with 2 GB RAM and I need to find out the actual used and
> free memory so that we can decide if the same setup(applications,
> tmpfs etc.) can run on another system with lesser memory.
>
> Is it correct to say that the "used" field "free -m" excluding
> buffers/caches would give the correct idea of used memory
> (I mean does it take care of shared memory, shared copies of
> libraries etc.) ? I assume it does not include /dev/shm usage
> since that's also a tmpfs partition ?
>
> If so, then I can add the memory used by tmpfs partitions to
> the above and get the total memory used ?
>
> For eg. if my "free -m" appears as below:
> Linux(debug)# free -m
> total used free shared buffers
> cached
> Mem: 2014 984 1030 0 80
> 594
> -/+ buffers/cache: 309 1705
>
> Can I say that 309MB + 350 MB(size of tmpfs partitions including
> /dev/shm)
> is the used memory on my system ?
>
> Thanks,
> Ravi
>
[Snipped...]
Just boot your present system with MEM=nnn on the command-line,
where nnn is the amount of memory you would like to use in the
new system (like this).
title Fedora Core (2.6.16.24)
root (hd0,0)
kernel /boot/vmlinuz-2.6.16.24 ro root=LABEL=/ mem=768m nmi_watchdog=0
rhgb reboot=cb
initrd /boot/initrd-2.6.16.24.img
Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5592.59 BogoMips).
My book : http://www.AbominableFirebug.com/
_
****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@...logic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
Thank you.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists