Sponsored Content
Special Forums Cybersecurity Limit CPU and RAM utilization for new user in RedHat Post 302703921 by vaibhavvsk on Thursday 20th of September 2012 02:33:18 PM
Old 09-20-2012
MySQL

Quote:
Thanks Smilie
 

10 More Discussions You Might Find Interesting

1. Linux

Built in ram limit for 64 bit

Hey all, I have been thinking about getting a new computer, and the motherboard I am looking at is capable of holding up to 8 Gb of ram. Now it appears as though for 32 bit linux, in order to use more than 4 Gb of ram, you had to enable a certain option in the kernel, but if I remember... (2 Replies)
Discussion started by: kermit
2 Replies

2. Shell Programming and Scripting

Alert When a Process Exceeds a CPU Utilization Limit...

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. Shell Programming and Scripting

script for cpu utilization for each user

Can someone suggest me the script to calculate cpu utilization for each user in solaris say for a period of 24 Hrs or last 12 Hrs I am using solaris 10. Thanks in Advance (1 Reply)
Discussion started by: rajusa10
1 Replies

4. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

5. AIX

AIX 6.1 Power6 - Sys CPU utilization twice that of User

Hello, We just purchased two new 4-way (one active one failover) 5Ghz Power6 Servers (failover) with 64GB RAM (32GB per node) runing AIX 6.1 with two LPARs per node connected to our SAN with two 4GB HBAs. The PROD LPAR has 2 dedicated CPUs (4 virtual) and the TEST LPAR has 2 dedicated CPUs. ... (3 Replies)
Discussion started by: troym72
3 Replies

6. Solaris

RAM Utilization per process

Hello All, My Server RAM utilization is exceeding 90% and i would like to idnetify the per process RAM utilization.. We are using Solaris 10 10/9 OS release... Is there any way achieve this ??? Definitely not interested in any of the third party tool but some Solaris command... ... (5 Replies)
Discussion started by: EmbedUX
5 Replies

7. Red Hat

Limit RAM Usages

Is there any kernel tune parameters available to limit RAM usages at certain level . EG . RAM: 4 GB Swap: 2 GB I Need if my RAM usages reached 3 GB Kernel will start swaping new pages . .. --Shirish Shukla (8 Replies)
Discussion started by: Shirishlnx
8 Replies

8. Red Hat

Need to check full utilization of my pc RAM - any commands ???

hi guys, I wanted to utilize my PC's full RAM memory to check its performance, for that how can i perform this full RAM utilization with the help of a process or a command in rhel 6. for example, in windows, while checking the harddisk for error (chkdsk - command ) could takes full RAM... (7 Replies)
Discussion started by: redhatlbug
7 Replies

9. Red Hat

Cpu, memory - limit by user

Hi all ! I'm new in this site, so sorry if this question is into wrong place. How can I limit cpu/core and memory usage by user? System: RedHat Ent. Linux. 6.4 Tks, (4 Replies)
Discussion started by: Tiago
4 Replies

10. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

Hi, i am new to linux/RHEL 6.0 and i have two questions. 1) How to get the CPU utilization and Memory Utilization of all Services running currently? 2) How to get the CPU utilization and Memory Utilization of all Applications running currently? Please help me to find the script. ... (2 Replies)
Discussion started by: nossam
2 Replies
POSIX_GETRLIMIT(3)							 1							POSIX_GETRLIMIT(3)

posix_getrlimit - Return info about system resource limits

SYNOPSIS
array posix_getrlimit (void ) DESCRIPTION
posix_getrlimit(3) returns an array of information about the current resource's soft and hard limits. Each resource has an associated soft and hard limit. The soft limit is the value that the kernel enforces for the corresponding resource. The hard limit acts as a ceiling for the soft limit. An unprivileged process may only set its soft limit to a value from 0 to the hard limit, and irreversibly lower its hard limit. RETURN VALUES
Returns an associative array of elements for each limit that is defined. Each limit has a soft and a hard limit. List of possible limits returned +-----------+---------------------------------------------------+ |Limit name | | | | | | | Limit description | | | | +-----------+---------------------------------------------------+ | core | | | | | | | The maximum size of the core file. When 0, not | | | core files are created. When core files are | | | larger than this size, they will be truncated at | | | this size. | | | | | totalmem | | | | | | | The maximum size of the memory of the process, | | | in bytes. | | | | |virtualmem | | | | | | | The maximum size of the virtual memory for the | | | process, in bytes. | | | | | data | | | | | | | The maximum size of the data segment for the | | | process, in bytes. | | | | | stack | | | | | | | The maximum size of the process stack, in bytes. | | | | | rss | | | | | | | The maximum number of virtual pages resident in | | | RAM | | | | | maxproc | | | | | | | The maximum number of processes that can be cre- | | | ated for the real user ID of the calling process. | | | | | memlock | | | | | | | The maximum number of bytes of memory that may | | | be locked into RAM. | | | | | cpu | | | | | | | The amount of time the process is allowed to use | | | the CPU. | | | | | filesize | | | | | | | The maximum size of the data segment for the | | | process, in bytes. | | | | |openfiles | | | | | | | One more than the maximum number of open file | | | descriptors. | | | | +-----------+---------------------------------------------------+ EXAMPLES
Example #1 Example use of posix_getrlimit(3) <?php $limits = posix_getrlimit(); print_r($limits); ?> The above example will output something similar to: Array ( [soft core] => 0 [hard core] => unlimited [soft data] => unlimited [hard data] => unlimited [soft stack] => 8388608 [hard stack] => unlimited [soft totalmem] => unlimited [hard totalmem] => unlimited [soft rss] => unlimited [hard rss] => unlimited [soft maxproc] => unlimited [hard maxproc] => unlimited [soft memlock] => unlimited [hard memlock] => unlimited [soft cpu] => unlimited [hard cpu] => unlimited [soft filesize] => unlimited [hard filesize] => unlimited [soft openfiles] => 1024 [hard openfiles] => 1024 ) NOTES
Note This is a not POSIX function, but is common on BSD and System V systems. If the system does not support this function, then it will not be included at compile time. This may be checked with function_exists(3). SEE ALSO
man page GETRLIMIT(2). PHP Documentation Group POSIX_GETRLIMIT(3)
All times are GMT -4. The time now is 06:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy