08-08-2006
memory size under AIX
Hi,
how to know size of physical memory under AIX ?
Many thanks.
PS :
man -k memory
man : 0703-310 Fichier man introuvable.
uname -a
AIX server1 1 5 005202DF4C00
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi falks,
I'm trying to get the momory size in HP-UX as user oracle.
The command to do it is:
/usr/sbin/dmesg | grep "Physical" | awk '{print $2}'
The problem is that only user root can run this command and i need to run it as user oracle.
Do you know another way to get the memory size in HP... (2 Replies)
Discussion started by: nir_s
2 Replies
2. Solaris
Hi,
I am looking for acoomand on HP where by i can see the CPU increasing for a given process ... I know i can see this from top/prstat ..
But it will give for all the processes - I want something like say ps where i can call it from a shell script a few times and check if it is has increased... (0 Replies)
Discussion started by: nano2
0 Replies
3. Solaris
I would like to know if it is possible to find out how much memory is in a machine from the iLOM prompt on an x86 box? I have retrieved the MAC address details from the iLOM promt before using show /SYS/MB/NETx and wondering if I can do the same for the Memory although I can't seem to find anything... (4 Replies)
Discussion started by: Chains
4 Replies
4. Solaris
hey everybody,
i am currently working on solaris 10 os on a m5000 server. my problem is when i want the exact size of a program in execution, i am unable to do it. earlier i thought the RSS field of prstat but because of its large size it cant be the size. pmap -x shows some output but it includes... (2 Replies)
Discussion started by: aryansheikh
2 Replies
5. IP Networking
Hi,
Does anybody know how to get the RAM size of a powerless server (OS off), with a network hardware management protocol like IPMI ???
Thx (0 Replies)
Discussion started by: sncr24
0 Replies
6. UNIX for Advanced & Expert Users
I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I... (1 Reply)
Discussion started by: lilili07
1 Replies
7. UNIX for Dummies Questions & Answers
few questions
a. where can I find the RAM of a server? im about to install redhat on a server (reformat). need to know because it will be my basis for swap size. i saw something line 3048MB detected upon boot. is this the memory?
b. what is the command in lunux to check the original size of... (2 Replies)
Discussion started by: lhareigh890
2 Replies
8. Solaris
Is there a command or file I can look at that tells me how much real memory a machine has? A little background. In my shop we run a bunch of java programs, sometimes some of these jobs have config definitions that call for 2G. I would like to know how many I can run before I exhaust rescources. Any... (12 Replies)
Discussion started by: Harleyrci
12 Replies
9. UNIX for Dummies Questions & Answers
i want to avoid writing to a file on the disk. i'd like to do this in memory.
i have a situation where i'm running cat file.txt | head -l 2024 > /tmp/data.txt
now, i check the size of the data.txt by doing a "du -sh /tmp/data.txt
how can i get the size of "head -l 2024" WITHOUT having to... (2 Replies)
Discussion started by: SkySmart
2 Replies
10. Programming
Hello,
Here is a portion of my code:
a=(int *) malloc(dim*dim*sizeof(int));
b=(int *) malloc(dim*dim*sizeof(int));
c=(int *) malloc(dim*dim*sizeof(int));
for(i=0;i<dim;i++)
for(j=0;j<dim;j++)
c= rand();
for(i=0;i<dim;i++)
for(j=0;j<dim;j++)
b=rand();
... (6 Replies)
Discussion started by: chercheur111
6 Replies
LEARN ABOUT CENTOS
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)
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2017-09-15 GET_PHYS_PAGES(3)