06-14-2011
This User Gave Thanks to shamrock For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
iam new to unix , i would like to practice unix commands at home, can anyone help me to know if there are any emulators that i can download to practice or any trial versions that can be installed to practice.
Regards
dep (1 Reply)
Discussion started by: dep
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Is there a command I can use to find out how many CPU's and what type are on my server? (I was told to use cat /proc/cpuinfo)
Also, how do I know what kind of bus speeds are on my server?
Thanks in advance:) (3 Replies)
Discussion started by: ihot
3 Replies
3. HP-UX
is there a single command or location from which one can get information like cpu Mhz,cpu cache...etc in HP UX:) (1 Reply)
Discussion started by: vijayca
1 Replies
4. Gentoo
well. the title says it all.
im runing top in batch mode like this
top -b -n1 > somefile
but the cpu usage info is not correct.
if i run top normally, the first second, i see the same wrong info, and then it corrects itself.
i found only one small mention of it on this forum. with this link... (7 Replies)
Discussion started by: broli
7 Replies
5. AIX
Hi,
may be this is an AIX noob question:
my current C++ application runs on Linux and is quite memory consuming. Therefore, the application writes a logfile after it has finished containing memory information, CPU information, information on the running other processes besides my application... (5 Replies)
Discussion started by: DarthVader77
5 Replies
6. HP-UX
Hi,
I am going to buy a software that is licenced per CORE.
I have a HPUX B1123 64 bit with 8 cpus.
How can i know how many cores are in my machine ?
Thanks (3 Replies)
Discussion started by: yoavbe
3 Replies
7. Shell Programming and Scripting
Dear all,
Is there any generic command working on all Unix listing the CPU of a server?
I found different command line per OS but I am looking for a more generic one.
Thanks for your answer. (5 Replies)
Discussion started by: sgoiffon
5 Replies
8. Shell Programming and Scripting
Hello to everyone.
This is my first post. I want to make one perl agent which calculate following things from Linux Server. Actually I want to pull all this information from 2 linux client and wants to display on web interface.
First I want to calculate below details
1) CPU
2) MEMORY
3)... (6 Replies)
Discussion started by: sania.mirza
6 Replies
9. AIX
To get only the cpu info from the topas command terminal.
CPU User% Kern% Wait% Idle% Physc Entc
ALL 2.3 4.4 0.0 93.3 0.07 7.7
I tried some thing like this but did not work
topas << done
grep "ALL"
q
done
Can someone help me in this. (5 Replies)
Discussion started by: rpm120
5 Replies
10. UNIX for Dummies Questions & Answers
Hello all
i did search the web and found allot of answers but im confused
what are the best ways to get this info via Linux default commands
1. current Cpu Usage in Percent
2. current Memory Usage In Bytes
3. current Memory Available In Bytes
Thanks! (2 Replies)
Discussion started by: umen
2 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.16.2 2012-08-26 less(3pm)