Sponsored Content
Full Discussion: Meminfo
Operating Systems Linux Meminfo Post 91427 by Corona688 on Friday 2nd of December 2005 02:44:23 AM
Old 12-02-2005
Cache is used by the operating system to store file caches and the like, so it doesn't have to reload a frequently-used file from the hard drive over and over. But "Cache" is effectively free memory. The OS doesn't hold onto it -- if something else needs memory, cache gets thrown out and the memory used for something else. So your server is humming away at 1.5GB memory free at the moment.

That 190MB of swap, though, that is something to worry about. It only eats into swap space when it runs out of real memory; at some point in the past, it must have been at least 190 megabytes in the hole memory-wise. It could have been more -- that 190 megabytes is just the memory that's still in swap, memory in swap usually stays there until something wants it back. And when a computer is eating into it's swap space, things move very slowly.

Is there any way you could log memory and swap usage over a period of time? Something's consuming huge amounts of memory, I would guess, but you can't tell the culprit from a meminfo output.
 

3 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Buffer Cache Stats from /proc/meminfo

Hi, I am trying to understand the role of buffer cache in block I/O. I am monitoring /proc/meminfo, my question is does the value of 0 for 'buffers', mean that any subsequent disk read issued by a process, would get the data physically from the disk, and not an allocated buffer for the block? ... (1 Reply)
Discussion started by: jake24
1 Replies

2. Shell Programming and Scripting

Awk and meminfo

I'm in the process of adding various data to my rrdtool setup, and one of the things i want ot monitor is the meminfo stuff. I have it running locally very well with the following: /usr/bin/rrdupdate /etc/rrdtool/192.168.43.254.mem.rrd --template \ used:free:buff:cached:swap N:`awk ' \ ... (2 Replies)
Discussion started by: Nunners
2 Replies

3. Shell Programming and Scripting

MemFree from /proc/meminfo

From the following /proc/meminfo output only ~2GB is free out of total 250GB, but Cached is 194630300 kB. My customer is concerned over the very little memory showing as free. Kindly shed some light if the free memory available in this situation is some thing we need to worry or can we take it as... (2 Replies)
Discussion started by: michaelrozar17
2 Replies
FREE(1) 							Linux User's Manual							   FREE(1)

NAME
free - Display amount of free and used memory in the system SYNOPSIS
free [-b | -k | -m] [-o] [-s delay ] [-t] [-V] DESCRIPTION
free displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel. The shared memory column should be ignored; it is obsolete. Options The -b switch displays the amount of memory in bytes; the -k switch (set by default) displays it in kilobytes; the -m switch displays it in megabytes. The -t switch displays a line containing the totals. The -o switch disables the display of a "buffer adjusted" line. If the -o option is not specified, free subtracts buffer memory from the used memory and adds it to the free memory reported. The -s switch activates continuous polling delay seconds apart. You may actually specify any floating point number for delay, usleep(3) is used for microsecond resolution delay times. The -V displays version information. FILES
/proc/meminfo-- memory information SEE ALSO
ps(1), slabtop(1), vmstat(8), top(1) AUTHORS
Written by Brian Edmonds. Send bug reports to <albert@users.sf.net> Cohesive Systems 20 Mar 1993 FREE(1)
All times are GMT -4. The time now is 11:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy