10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to see top 5 users,who have occupied most amount of disk space in a filesystem.
But not sure how to do it.
I can get the usage for a particular user
find . -user user -type f exec df -h {} \;|awk '{ s = s+$1 } END { print "Total used: ",s }'
But how to get without specifying any user... (6 Replies)
Discussion started by: rka
6 Replies
2. AIX
Dear All,
One production Server is affected by high usage.
Application is slow now. Please guide me how to solve it?
NMON Report shows full cpu usage.
Here im posting some server details.
bash-3.2# lparstat -i
Node Name : *********
Partition Name ... (6 Replies)
Discussion started by: Thala
6 Replies
3. Shell Programming and Scripting
Hey, I'm trying to make a script that can list users and their storage usage in a file. Im trying to get it to where the format is:
User xxkbs
User2 xkb
and so on. So far I figured out how to get the users, but I cannot figure out how to get the storage usage per user.
This is what... (2 Replies)
Discussion started by: HakerDemon
2 Replies
4. UNIX for Dummies Questions & Answers
I was wondering if there was a way to set resource usage per user. For example, if I use "grep -f <file1> <file2>" and the two files are very big it consumes a lot of resources. Onetime someone pinged me and asked what the hell I was doing and to kill it. Is there any way an SA can restrict... (7 Replies)
Discussion started by: MaindotC
7 Replies
5. AIX
Hi!
Is there any way to balance CPU usage between users on percentage basis? Something like Resource Manager in Oracle databases.
Regards.
---------- Post updated at 02:17 PM ---------- Previous update was at 02:09 PM ----------
Workload Manager?
---------- Post updated at 03:44 PM... (0 Replies)
Discussion started by: bas_ua
0 Replies
6. UNIX for Advanced & Expert Users
Hi:
it takes a long time for "du -sh list_of_users" to give you the output.
Is there a quicker way to get this info?
Thanks!
N.B. Phil (4 Replies)
Discussion started by: phil518
4 Replies
7. 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
8. 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
9. UNIX and Linux Applications
hi,
i'm trying to grant usage to multiple users whose ids are in a file. i thought that i could put the mysql code within a while loop, but that's not working for me:
while read user; do
userid=$user
passwd="changeme"
query="grant usage on mysql.USERS.* to $userid... (2 Replies)
Discussion started by: ankimo
2 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I'm looking for a command or script that could permit me to know what is memory usage group by HP-UX kernel, oracle processes and other users (specific software).
A command like 'top' but for all processes and not only for 12 max could be very useful
Thanks in advance (4 Replies)
Discussion started by: thierryUX
4 Replies
less(3pm) Perl Programmers Reference Guide less(3pm)
NAME
less - perl pragma to request less of something
SYNOPSIS
use less 'CPU';
DESCRIPTION
This is a user-pragma. If you're very lucky some code you're using will know that you asked for less CPU usage or ram or fat or... we just
can't know. Consult your documentation on everything you're currently using.
For general suggestions, try requesting "CPU" or "memory".
use less 'memory';
use less 'CPU';
use less 'fat';
If you ask for nothing in particular, you'll be asking for "less 'please'".
use less 'please';
FOR MODULE AUTHORS
less has been in the core as a "joke" module for ages now and it hasn't had any real way to communicating any information to anything.
Thanks to Nicholas Clark we have user pragmas (see perlpragma) and now "less" can do something.
You can probably expect your users to be able to guess that they can request less CPU or memory or just "less" overall.
If the user didn't specify anything, it's interpreted as having used the "please" tag. It's up to you to make this useful.
# equivalent
use less;
use less 'please';
"BOOLEAN = less->of( FEATURE )"
The class method "less->of( NAME )" returns a boolean to tell you whether your user requested less of something.
if ( less->of( 'CPU' ) ) {
...
}
elsif ( less->of( 'memory' ) ) {
}
"FEATURES = less->of()"
If you don't ask for any feature, you get the list of features that the user requested you to be nice to. This has the nice side effect
that if you don't respect anything in particular then you can just ask for it and use it like a boolean.
if ( less->of ) {
...
}
else {
...
}
CAVEATS
This probably does nothing.
This works only on 5.10+
At least it's backwards compatible in not doing much.
perl v5.12.1 2010-04-26 less(3pm)