06-02-2015
Hi Peasant,
You're right. I've configured the /etc/cgconfig.conf and it works properly !
Tks all !
10 More Discussions You Might Find Interesting
1. HP-UX
Using HP-UX v11
Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode.
Found out next ways to monitor total cpu usage under hp-ux:
1) vmstat, also shows free memory
2) sar -M
ps -eo user,pcpu - does not work, means 'user-defined format'... (4 Replies)
Discussion started by: hp-ux-user
4 Replies
2. Shell Programming and Scripting
Hi EveryOne
We run CICS Sofware on our AIX Machine...
When ever some Process or Transaction loops it Takes heavy process Usage..
Is there a way that i can Get a alert message or a Message Thrown on to screen when ever a process named "cicsas" uses more that 20%... fo CPU..
I was... (4 Replies)
Discussion started by: pbsrinivas
4 Replies
3. Ubuntu
I have a customer with an HP DL380 G4 server running Redhat 2.1 AS that has 4GB memory installed. They want to upgrade in the server to the maximum of 12GB using (6) 2GB DIMMs. I can do this for them, but I read somewhere that Redhat 2.1 has an upper memory limit. Or you need a kernel patch to use... (2 Replies)
Discussion started by: Cbish68
2 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
Discussion started by: ocelot
4 Replies
5. Shell Programming and Scripting
Is there an input file memory limit for awk?
I have a 38Mb text file that I am trying to print out certatin lines and add a string to the end of that line.
When I excute the script on the 38Mb file the string I am adding is put on a new line. If I do the same with a smaller file the... (3 Replies)
Discussion started by: cold_Que
3 Replies
6. AIX
Greetings -
I'm porting a C application to an AIX (6.1) system, and have bumped into the limits AIX imposes on memory allocation, namely the default limit of 256MB for a process. I'm aware of the compilation flag that allows an application to gain access to up to 8 memory segments (each 256MB,... (4 Replies)
Discussion started by: traviswheeler
4 Replies
7. Solaris
I have the processes (100+) by the oracle id and I'd to get the summarized view of the oracle processes' usage of the memory and the cpu.
top would give me some, but not all.
Thanks (3 Replies)
Discussion started by: iwmi
3 Replies
8. Cybersecurity
We have a system with 4 Xeon Processors each with 10 cores, total 512 GB RAM and 10 TB Hard Drive.
we want to create multiple user accounts with different resource limitations as :
User 1: RAM : 50GB, PROCESSOR: 10 Cores , User folder in home directory of 10GB space.
User 2: RAM :... (5 Replies)
Discussion started by: vaibhavvsk
5 Replies
9. HP-UX
Hi Experts,
I am executing multiple instances(in parallel) of perl script on HP-UX box.
OS is allocating substantial amount of CPU to these perl processes,resulting higher cpu utilization.
Glance always shows perl processes are occupying majority of the CPU resource. It is causing slower... (2 Replies)
Discussion started by: sai_2507
2 Replies
10. Solaris
Hi,
I am trying to gather cpu core details and used this script - Solaris & Scripting: Script - Find cpu - model / type / count / core / thread / speed - Solaris Sparc
For auuditing purpose, we want to know how many cores are being used by Oracle, because oracle license will be charged on... (2 Replies)
Discussion started by: solaris_1977
2 Replies
LEARN ABOUT BSD
setrlimit
GETRLIMIT(2) System Calls Manual GETRLIMIT(2)
NAME
getrlimit, setrlimit - control maximum system resource consumption
SYNOPSIS
#include <sys/time.h>
#include <sys/resource.h>
getrlimit(resource, rlp)
int resource;
struct rlimit *rlp;
setrlimit(resource, rlp)
int resource;
struct rlimit *rlp;
DESCRIPTION
Limits on the consumption of system resources by the current process and each process it creates may be obtained with the getrlimit call,
and set with the setrlimit call.
The resource parameter is one of the following:
RLIMIT_CPU the maximum amount of cpu time (in seconds) to be used by each process.
RLIMIT_FSIZE the largest size, in bytes, of any single file that may be created.
RLIMIT_DATA the maximum size, in bytes, of the data segment for a process; this defines how far a program may extend its break with
the sbrk(2) system call.
RLIMIT_STACK the maximum size, in bytes, of the stack segment for a process; this defines how far a program's stack segment may be
extended. Stack extension is performed automatically by the system.
RLIMIT_CORE the largest size, in bytes, of a core file that may be created.
RLIMIT_RSS the maximum size, in bytes, to which a process's resident set size may grow. This imposes a limit on the amount of physi-
cal memory to be given to a process; if memory is tight, the system will prefer to take memory from processes that are
exceeding their declared resident set size.
A resource limit is specified as a soft limit and a hard limit. When a soft limit is exceeded a process may receive a signal (for example,
if the cpu time is exceeded), but it will be allowed to continue execution until it reaches the hard limit (or modifies its resource
limit). The rlimit structure is used to specify the hard and soft limits on a resource,
struct rlimit {
int rlim_cur; /* current (soft) limit */
int rlim_max; /* hard limit */
};
Only the super-user may raise the maximum limits. Other users may only alter rlim_cur within the range from 0 to rlim_max or (irre-
versibly) lower rlim_max.
An "infinite" value for a limit is defined as RLIM_INFINITY (0x7fffffff).
Because this information is stored in the per-process information, this system call must be executed directly by the shell if it is to
affect all future processes created by the shell; limit is thus a built-in command to csh(1).
The system refuses to extend the data or stack space when the limits would be exceeded in the normal way: a break call fails if the data
space limit is reached. When the stack limit is reached, the process receives a segmentation fault (SIGSEGV); if this signal is not caught
by a handler using the signal stack, this signal will kill the process.
A file I/O operation that would create a file that is too large will cause a signal SIGXFSZ to be generated; this normally terminates the
process, but may be caught. When the soft cpu time limit is exceeded, a signal SIGXCPU is sent to the offending process.
RETURN VALUE
A 0 return value indicates that the call succeeded, changing or returning the resource limit. A return value of -1 indicates that an
error occurred, and an error code is stored in the global location errno.
ERRORS
The possible errors are:
[EFAULT] The address specified for rlp is invalid.
[EPERM] The limit specified to setrlimit would have
raised the maximum limit value, and the caller is not the super-user.
SEE ALSO
csh(1), quota(2), sigvec(2), sigstack(2)
BUGS
There should be limit and unlimit commands in sh(1) as well as in csh.
4th Berkeley Distribution May 13, 1986 GETRLIMIT(2)