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 expected behavior of Linux kernel - as most of them are cached.
Linux 2.6.39-400.277.1.el6uek.x86_64
hi,
we all know /proc is about the information of active process,
I have just read an artical which said you can use /proc/cpuinfo,
/proc/net./proc/meminfo etc. to know about some hardware
information .But I want to know how to use with command line? (1 Reply)
Hi,
What are the various way's to fix /proc folder in redhat linux 7.2 and how to verify /proc folder is proper or croupted?
Thank in advance
Bache Gowda (7 Replies)
:)
hi all !
Please help me
When I select data from oracle with proc * C prog.
I count the number of rows
For example the total rows is 1000000
but the number of result return is a limit number 5000 for ex
So How can I know this limit (5 Replies)
Hi,
I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
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)
If you are adding the kernel module without any module parameter passing, it should print out following information to info1 file so that user can make read access to info1 file (via, for example, cat /proc/info1):
• Processor type
• Kernel version
• Total number of the processes currently... (1 Reply)
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
LEARN ABOUT LINUX
get_phys_pages
GET_PHYS_PAGES(3) Linux Programmer's Manual GET_PHYS_PAGES(3)NAME
get_phys_pages, get_avphys_pages - get total and available physical page counts
SYNOPSIS
#include <sys/sysinfo.h>
long int get_phys_pages(void);
long int get_avphys_pages(void);
DESCRIPTION
The function get_phys_pages() returns the total number of physical pages of memory available on the system.
The function get_avphys_pages() returns the number of currently available physical pages of memory on the system.
RETURN VALUE
On success, these functions return a nonnegative value as given in DESCRIPTION. On failure, they return -1 and set errno to indicate the
cause of the error.
ERRORS
ENOSYS The system could not provide the required information (possibly because the /proc filesystem was not mounted).
CONFORMING TO
These functions are GNU extensions.
NOTES
These functions obtain the required information by scanning the MemTotal and MemFree fields of /proc/meminfo.
The following sysconf(3) calls provide a portable means of obtaining the same information as the functions described on this page.
total_pages = sysconf(_SC_PHYS_PAGES); /* total pages */
avl_pages = sysconf(_SC_AVPHYS_PAGES); /* available pages */
EXAMPLE
The following example shows how get_phys_pages() and get_avphys_pages() can be used.
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysinfo.h>
int
main(int argc, char *argv[])
{
printf("This system has %ld pages of physical memory and "
"%ld pages of physical memory available.
",
get_phys_pages(), get_avphys_pages());
exit(EXIT_SUCCESS);
}
SEE ALSO sysconf(3)GNU 2019-03-06 GET_PHYS_PAGES(3)