04-17-2010
OK, could you give us some details? Memory / swap size, configure command line, ... anything that you think could have influenced it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I have installed a s/w for work tracking (work tracking fecilitator) in linix OS.
all my other perl programs are working fine. i have completed the backend part of it but unable to use this application .
Please guide me regarding this .
I have downloaded the source from... (4 Replies)
Discussion started by: alma
4 Replies
2. Ubuntu
Hi, i had a problem during kubuntu installation from ubuntu and now i can't start ubuntu correctly. it loads only desktop and doesn't work. Is there a way to solve this problem? I have ubuntu 8.10 2.6.27-7 generic (0 Replies)
Discussion started by: littleboyblu
0 Replies
3. Red Hat
Hi everyone, I m new here and I have few questions regarding RHEL installation. The story goes like this...
I have a PC with the following specifications:
1. ASUS P5N-MX motherboard with on-board GForce 7050/nforce 610i chipset
2. Intel Pentium Dual Core Processor
3. Two SATA HDD(250GB + 160GB)... (4 Replies)
Discussion started by: willa
4 Replies
4. Solaris
Today I had to check RAM info on solaris 10 system. I know that there is 4 GB, 2 modules , but I really needed more details like exact model, frequency and so on
I downloaded several versions of dmidecode, but non of them worked.
At first I found that there is no gcc in the system, well I... (5 Replies)
Discussion started by: Zorbeg
5 Replies
5. Solaris
hi..
i need to install or enable php on solaris 10 x86..
can u guide me ..
tell me as soon as possible..
thanks...
---------- Post updated at 12:17 PM ---------- Previous update was at 10:38 AM ----------
tell me as soon as possible... (1 Reply)
Discussion started by: senkerth
1 Replies
6. Solaris
hi am senthil,
i want to install php 5 in my solaris 10 x86server..
i already enabled apache
and my mysql 5 is woking fine..
i want to know the procedure to install php..
i googled it and got some info ..
i have doubt in the following thing
/configure -with-apache2=/opt/httpd-2.0.49... (1 Reply)
Discussion started by: senkerth
1 Replies
7. Solaris
can u tell me the procedure to install php 5 using package ..
i downloaded php-5.2.1-sol10-x86-local.gz from sunfreeware
i have added package using
pkgadd -d php-5.2.1-sol10-x86-local
then i have added these two lines in httpd.conf
LoadModule php5_module modules/libphp5.so... (7 Replies)
Discussion started by: senkerth
7 Replies
8. Solaris
hi am senthil,
am trying to install PHP in my solaris 10 x86 ...
i installed oracle,apache,tomcat,mysql ..
the only thing am missing is PHP..
i tried to install php using ./configure ..
my ./configure command..
./configure \
--with-apxs=/usr/apache/bin/apxs \... (4 Replies)
Discussion started by: senkerth
4 Replies
9. Shell Programming and Scripting
i have been tryin to install mdbtools in my rhel 5...
./configure is working but at the time of make it gives an error
pls help
error log
odbc.c:778: warning: conflicting types for 'bind_columns'
odbc.c:778: error: static declaration of 'bind_columns' follows non-static declaration... (0 Replies)
Discussion started by: born
0 Replies
10. Red Hat
When i try to install rpm with rpm -ivh ntp* it shows package is already install and when i query for same package it shows package is not installed ?How to resolve DSA signature error for rpm? How to choose rpm package except redhat version(el5) and architecture(i386) and site link for that? (5 Replies)
Discussion started by: amitbharad
5 Replies
SYSINFO(2) Linux Programmer's Manual SYSINFO(2)
NAME
sysinfo - return system information
SYNOPSIS
#include <sys/sysinfo.h>
int sysinfo(struct sysinfo *info);
DESCRIPTION
sysinfo() returns certain statistics on memory and swap usage, as well as the load average.
Until Linux 2.3.16, sysinfo() returned information in the following structure:
struct sysinfo {
long uptime; /* Seconds since boot */
unsigned long loads[3]; /* 1, 5, and 15 minute load averages */
unsigned long totalram; /* Total usable main memory size */
unsigned long freeram; /* Available memory size */
unsigned long sharedram; /* Amount of shared memory */
unsigned long bufferram; /* Memory used by buffers */
unsigned long totalswap; /* Total swap space size */
unsigned long freeswap; /* Swap space still available */
unsigned short procs; /* Number of current processes */
char _f[22]; /* Pads structure to 64 bytes */
};
In the above structure, the sizes of the memory and swap fields are given in bytes.
Since Linux 2.3.23 (i386) and Linux 2.3.48 (all architectures) the structure is:
struct sysinfo {
long uptime; /* Seconds since boot */
unsigned long loads[3]; /* 1, 5, and 15 minute load averages */
unsigned long totalram; /* Total usable main memory size */
unsigned long freeram; /* Available memory size */
unsigned long sharedram; /* Amount of shared memory */
unsigned long bufferram; /* Memory used by buffers */
unsigned long totalswap; /* Total swap space size */
unsigned long freeswap; /* Swap space still available */
unsigned short procs; /* Number of current processes */
unsigned long totalhigh; /* Total high memory size */
unsigned long freehigh; /* Available high memory size */
unsigned int mem_unit; /* Memory unit size in bytes */
char _f[20-2*sizeof(long)-sizeof(int)];
/* Padding to 64 bytes */
};
In the above structure, sizes of the memory and swap fields are given as multiples of mem_unit bytes.
RETURN VALUE
On success, sysinfo() returns zero. On error, -1 is returned, and errno is set to indicate the cause of the error.
ERRORS
EFAULT info is not a valid address.
VERSIONS
sysinfo() first appeared in Linux 0.98.pl6.
CONFORMING TO
This function is Linux-specific, and should not be used in programs intended to be portable.
NOTES
All of the information provided by this system call is also available via /proc/meminfo and /proc/loadavg.
SEE ALSO
proc(5)
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/.
Linux 2017-09-15 SYSINFO(2)