05-20-2009
Disk space and RAM status in UNIX
I have an application which is running under AIX, HP UNIX, SCO, and LINUX(redhat and SuSE). and its dealing with some bulk amount of file handling, and some of my boxes are not very good in terms of resources like memory and disk space. so i wanted to know the statistics of each of my boxes. Like
* Total Amount of RAM
* Available RAM ( at this time)
* Total amount of Disk space
* Disk space available ( at this time)
All these details i needed in terms of MegaBytes.
Can anyone tell me the best way to get these statistics in the above mentioned UNIX variants? thanks in advance.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, I am new to Unix and I need to know how to find out how much Ram I have on my server.
I have Sun Solaris operating system with Sun Ulta 10 cpu. Could you please let me know the command to find the current Ram I have?
Thank you. (1 Reply)
Discussion started by: hollowayt
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I work in a production support environment. All our PROD machines SPARC machines and Solaris O/S. I want to know how to find out what the hard disk size, RAM size etc. of our PROD machines. Please let me know if there is any way to find out this (other than from system administrator).
... (2 Replies)
Discussion started by: ramaraju
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am using SCO Unix 3.12 and Informix database. When we tried to use "du -a" command to check disk space, it showed:
342122 ./usr
30092 ./etc
6244 ./dev
4778 ./bin
2674 ./tcb
1234 ./lost+found
698 ./lib
532 ./shlib
46 ./tmp
6 ./messages
4 ./opt
4 ./var
2 ./mnt
2 ./install... (1 Reply)
Discussion started by: trinhnguyen
1 Replies
4. Shell Programming and Scripting
Hi Friends,
I am using sun Solaris .
I want to find the disk space (df -k) for the Unix box and the data has to be sent to an email id.
Can u please find me a code that checks the disk space 6 times a day, loads the data into an excel sheet and sends to an email id.
Can u also tell me how to... (2 Replies)
Discussion started by: sridharnr
2 Replies
5. Solaris
How swap is getting 12GB as its size as per the below output:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 7.9G 2.1G 5.7G 27% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 12G 1.2M 12G 1%... (3 Replies)
Discussion started by: ramnagaraj
3 Replies
6. Programming
Suppose I have 3 gb of ram and 250 gb hard disk in my pc.
Now I wrote a simple C program having only one statement malloc() to allocate 4 gb of memory as 32 bit os can address 4gb address space then will the malloc succeed?
If yes then how it will get extra 1 gb of memory?
Does the process gets... (3 Replies)
Discussion started by: rupeshkp728
3 Replies
7. Shell Programming and Scripting
Hi,
I have to regularly monitor manually if my diskspace is close to 90% or not. I use to see this by firing df -k. I want to write a script which can run 24*7 hours and would me mail me whenever the disk space is 90% or more..It would be really great if someone can helo me on this. (1 Reply)
Discussion started by: sachin4shell
1 Replies
8. AIX
Hi All,
I was trying to know more about RAM disk concept in AIX. I found something on IBM site.
I was able to create and use/delete RAM disk as per IBM instructions.
But as you guys know, this RAM disk is a temporary storage. (*when ever we reboot the AIX LPAR, content/RAM disk will be... (4 Replies)
Discussion started by: System Admin 77
4 Replies
9. Shell Programming and Scripting
Hi Guys,
Is there any way I can write a script that sends DISK SPACE USAGE STATUS via email once a week?
Thanks, (5 Replies)
Discussion started by: g4v1n
5 Replies
LEARN ABOUT DEBIAN
procinfo
PROCINFO-NG(8) Linux System Manual PROCINFO-NG(8)
NAME
procinfo - display system statistics gathered from /proc
SYNOPSIS
procinfo [ -fdDSbrhv ] [ -nN ]
DESCRIPTION
procinfo gathers some system data from the /proc directory and prints it nicely formatted on the standard output device.
The meanings of the fields are as follows:
Memory:
See the man page for free(1)
Bootup:
The time the system was booted.
Load average:
The average number of jobs running, followed by the number of runnable processes and the total number of processes, followed by the
PID of the last process run. The pid of the last running process will probably always be procinfo's PID.
user: The amount of time spent running jobs in user space.
nice: The amount of time spent running niced jobs in user space.
system:
The amount of time spent running in kernel space. Note: the time spent servicing interrupts is not counted by the kernel (and noth-
ing that procinfo can do about it).
idle: The amount of time spent doing nothing.
uptime:
The time that the system has been up. The above four should more or less add up to this one.
page in:
The number of disk blocks paged into core from disk. 1 block is equal to 1 kiB.
page out:
The number of disk blocks paged out of core to disk. This includes regular disk-writes.
swap in:
The number of memory pages paged in from swap.
swap out:
The number of memory pages paged out to swap.
context:
The number of context switches, either since bootup or per interval.
Disk stats(hda, hdb, sda, sdb):
The number of reads and writes made to disks, whether CD-ROM, hard-drive, or USB. Shows all disks if they either are an hdX or sdX,
or if they have a non-zero read/write count.
Interrupts:
Number of interrupts serviced since boot, or per interval, listed per IRQ.
OPTIONS
-nN Pause N second between updates. This option implies -f. It may contain a decimal point. The default is 5 seconds. When run by root
with a pause of 0 seconds, the program will run at the highest possible priority level.
-d For memory, CPU times, paging, swapping, disk, context and interrupt stats, display values per second rather than totals. This
option implies -f.
-D Same as -d, except that memory stats are displayed as totals.
-S When running with -d or -D, always show values per second, even when running with -n N with N greater than one second.
-b Display numbers of bytes rather than number of I/O requests.
-r This option adds an extra line to the memory info showing 'real' free memory, just as free(1) does. The numbers produced assume that
Buffers and Cache are disposable.
-H Displays memory stats in 'Human' (base 1024) numbers (KiB, MiB, GiB), instead of implied KBytes.
-h Print a brief help message.
-v Print version info.
INTERACTIVE COMMANDS
When running procinfo fullscreen, you can change its behaviour by pressing d, D, S, r and b, which toggle the flags that correspond to
their same-named commandline-options. In addition you can press q which quits the program.
FILES
/proc The proc file system.
BUGS
All of these statistics are taken verbatim from the kernel, without any scaling. Any case where the kernel specifies that a particular
field means something different from how it is documented in this man-page, the kernel always wins.
Some features of the original procinfo were elided, as they were considered non-useful, especially as many of them don't change anymore,
and have better utilities for listing/displaying them.
SEE ALSO
free(1), uptime(1), w(1), init(8), proc(5).
AUTHOR
Adam Schrotenboer <adam@tabris.net>
v2.0 2007-05-05 PROCINFO-NG(8)