[Voyage-linux] will my application fit?
Sam
(spam-protected)
Thu Mar 19 23:35:45 HKT 2009
Jeff Ramin wrote:
> Hi folks.
>
> I'm trying to determine if an Alix board, running voyage, has enough
> memory to run an application. I've got it running on the board, but I'm
> having a hard time determining how much memory is unused.
>
> My usual tool (the free command) show me how much ram is unused, but
> some of that memory is being used by tmpfs file systems (such as
> /lib/init/rw), as well as for file caching. From what I've read, that
> memory could be used for applications, if needed.
>
> Is there some command that indicates how much memory is potentially
> available to a running application?
>
> Thanks!
>
Yes the buffers line from free -m shows the amount of memory used.
voyage:~# free -m
total used free shared buffers cached
Mem: 123 116 7 0 0 43
-/+ buffers/cache: 72 51
Swap: 0 0 0
voyage:~#
Shown here on the -/+ buffers line, I am using 72mb of memory. The rest
is cache.
This value come from cat /proc/meminfo
-/+ buffers= (MemTotal - MemFree) - (Buffers + Cached)
/lib/init/rw is mainly being used to store logs from /var/logs. You
could try configuring the stuff in /etc/logrotate.d/ so that you don't
keep many old log files. Default tmpfs size can be set in
/etc/defaults/tmpfs (I think). tmpfs doesn't allocate the whole size at
once though, A tmpfs size of 60mb with only one 4kb file in it will only
take up 4kb of ram.
Sam
More information about the Voyage-linux
mailing list