10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using ubuntu. I have written a program to calculate prime factors. it works perfectly fine till entered number is less than 9989 (or so ) but when one enters a number higher than that, for example 15000, it does not work. Can anyone guide me whats the problem ? although new codes are welcome,... (2 Replies)
Discussion started by: Abhishek_kumar
2 Replies
2. Programming
hi
in the following code, how the memory is allocated for a1 which holds the values of a2 after cpy function call.
#include <stdio.h>
#include <string.h>
void cpy(char* d, const char* s){
while(*d++=*s++);
}
main(){
char* a1;
char* a2="done";
cpy(a1,a2);
... (3 Replies)
Discussion started by: mprakasheee
3 Replies
3. Programming
Hi Experts
I need some help in static memory allocation in C. I have a program in which I declared 2 variables, one char array and one integer. I was little surprised to see the addresses of the variables.
First:
int x;
char a;
printf("%u %u\n', &x, a);
I got the addresses displayed... (2 Replies)
Discussion started by: unx_freak
2 Replies
4. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
5. Programming
Hi everyone,
I'm not new to C programming, but I'm having question regarding the memory allocation of a pointer variable which, for instance, will be declared in main(), but its memory will be allocated in subroutine.
To clearify my question, I provide a small working example:
#include... (1 Reply)
Discussion started by: MIB_Maik
1 Replies
6. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
7. Programming
Hi,
I am trying to process line by line of a file. But I should not be allocating static allocation for reading the contents of the file. The memory should be dynamically allocated. The confusion here is how do I determine the size of each line, put it into a buffer with the memory allocated... (11 Replies)
Discussion started by: naan
11 Replies
8. HP-UX
Hi all,
I have a HP-UX Server with 4 gigabytes of physical RAM. When I use the 'Glance' utility to see what my memory utilization is, my memory usage shows up maxed out at 99%. I shut off all the known processes that I'm running on that box and the memory utilization is still at 78% (with Swap... (3 Replies)
Discussion started by: dehuang83
3 Replies
9. UNIX for Advanced & Expert Users
Hello!
First of all, forgive me for bad English.
When I starts new thread (pthread_create), system allocates some memory for it (for example, for thread's stack). I wonder when does it deallocate this memory? The problem is that I have a program which sometimes creates new threads and sometimes... (3 Replies)
Discussion started by: prankster
3 Replies
10. UNIX for Dummies Questions & Answers
I would like to know how I could allocate some more memory to a process.
Please note that I am not the root user. (1 Reply)
Discussion started by: sagar
1 Replies
vxmemstat(1M) vxmemstat(1M)
NAME
vxmemstat - display memory statistics for Veritas Volume Manager
SYNOPSIS
vxmemstat [-e] [-i interval [-t count]]
DESCRIPTION
The vxmemstat utility prints memory statistics information. This information can be system-wide, or it can be specific to a Veritas Volume
Replicator object.
OPTIONS
-e Prints extended memory statistics.
-i interval
Prints memory statistics every interval seconds.
-t count Prints the local system time every count intervals. The time interval is specified using the -i interval option.
OUTPUT FORMAT
The statistics are prefaced by a timestamp showing the current local time on the system. Statistics are printed as a one-line output record
for each memory pool. The records are preceded by two header lines. The output line consists of blank-separated fields. All numeric fields
are in units of kilobytes.
The following fields are displayed on each line:
Pool Name of the memory pool. Memory consumers allocate memory from different pools for different purposes.
DG Name of the disk group in which the RVG is present.
Min Size Minimum amount of memory always reserved for use by consumers of the pool. As consumers require more memory, additional memory is
allocated to the pool for distribution to them.
Max Size Maximum amount of memory that can be allocated to the pool. This is equal to the value assigned to the maximum pool size system
tunable that corresponds to the pool.
In Use Amount of memory (out of that allocated) currently being used by consumers of the memory pool.
Allocated Amount of memory currently allocated to the memory pool. The amount of memory allocated to a pool ranges between the minimum and
the maximum pool size. The amount of allocated memory increases as more memory is needed and decreases as it is relinquished.
Max Used Maximum amount of memory used by consumers from this pool since system startup.
This field is not shown if the -e option is specified.
Max Pool Used
Maximum amount of memory used by consumers from this pool at any time since the last reboot. The value shows the maximum usage
even if usage by the pool has varied over this time period.
This field is shown if the -e option is specified.
Waiting Indicates if any I/O is waiting to allocate memory from this pool. This usually indicates that the corresponding tunable for the
maximum size of this pool needs to be increased.
This field is not shown if the -e option is specified.
Waiters The number of requests that are waiting to allocate memory from this pool.
This field is shown if the -e option is specified.
EXIT CODES
The vxmemstat utility exits with a non-zero status if the attempted operation fails. A non-zero exit code is not a complete indicator of
the problems encountered, but rather denotes the first condition that prevented further execution of the utility.
See vxintro(1M) for a list of standard exit codes.
EXAMPLES
To display statistics every 5 seconds and time stamp the output every alternate interval, use the command:
vxmemstat -i 5 -t 2
SEE ALSO
vxintro(1M), vxstat(1M)
VxVM 5.0.31.1 24 Mar 2008 vxmemstat(1M)