Methyl would agree, we know not much of this system except it has 2 CPU and seems to run HP-UX 11.11...
I agree with methyl's last post and find the figures quite different from the initial post, I, like methyl would have appreciated the output of the command:
Do you have batch running evening/night ?
---------- Post updated at 15:13 ---------- Previous update was at 15:07 ----------
What does:
produce?
For comparison here is the output of my favorite box:
How can I measure CPU loading (like performance monitor in Windows OS). I use Solaris but I would like to write portable code.
Besides, I have to write programm to load CPU with known percent. How can I use CPU in 30% for example.
Thanks for any ideas. (6 Replies)
Hi All,
Can you please help me in resolving the following problem?
My requirement is like this:
1) I have two files YESTERDAY_FILE and TODAY_FILE. Each one is having nearly two million data.
2) I need to check each record of TODAY_FILE in YESTERDAY_FILE. If exists we can skip that by... (5 Replies)
Hello guys!
I'm n00b in AIX and I'm sticked in a problem. (my English is poor enough, but I hope you can understand me :P). So.. I'm trying to connect to an AIX machine with putty, and .. 'using username xxx' appears after 2 sec (OK), but 'xxx@ip's password' appears after 1:15 min. After... (6 Replies)
Hi to all,
i have an app on solaris 5.8 writed in C++ (3.2.1) that use multi threading.
Hardware has 8 cpu. When i run my app i note that the average of cpu go at least at 40%, and the performance are not so higher..
There is a cpu limitation on solaris, that dedicate only a part of cpu... (3 Replies)
Hello All.
I have Sun T1000 server with Solaris 10.
On T1000 installed EMC smarts, application for monitoring network devices via SNMP + SNMP.
So, Smarts has own DB (contains object - devices and relationships), file takes 30 mb, now, all queries to DB works very slow, so Smarts works too slow,... (5 Replies)
Hi folks.
By disk cloning on Solaris x86, I used a command dd.
I pulled out the source and inserted the new disk.
By loading I have received the following issue: BAD PBR SIGN. :( (5 Replies)
I have written a virtual HBA driver named "xmp_vhba". A scsi disk is attached on it. as shown below:
xmp_vhba, instance #0
disk, instance #11
But the performance became very bad when we read/write the scsi disk using the vdbench(a read/write io tool).
What is the reason? ... (7 Replies)
Hello All
I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) .
The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Hi,
We have a Solaris server that has about 43 Oracle databases on it and we also have the Oracle Enterprise Manager - emagent that is used to monitor these databases
When running top, the emagent is showing as one of the top process. Excerpts from running top shows something as below:
... (3 Replies)
Hi Guys,
I have fresh new installed VIO 2.2.3.70 on a p710, 3 physical SAS disks, rootvg on hdisk0
and 3 VIO clients through vscsi, AIX7.1tl4 AIX6.1tl9 RHEL6.5ppc, each lpar has its rootvg installed on a LV on datavg (hdisk2) mapped to vhost0,1,2
There is no vg on hdisk1, I use it for my... (1 Reply)
Discussion started by: frenchy59
1 Replies
LEARN ABOUT DEBIAN
coro::util
Util(3pm) User Contributed Perl Documentation Util(3pm)NAME
Coro::Util - various utility functions.
SYNOPSIS
use Coro::Util;
DESCRIPTION
This module implements various utility functions, mostly replacing perl functions by non-blocking counterparts.
Many of these functions exist for the sole purpose of emulating existing interfaces, no matter how bad or limited they are (e.g. no IPv6
support).
This module is an AnyEvent user. Refer to the AnyEvent documentation to see how to integrate it into your own programs.
$ipn = Coro::Util::inet_aton $hostname || $ip
Works almost exactly like its "Socket::inet_aton" counterpart, except that it does not block other coroutines.
Does not handle multihomed hosts or IPv6 - consider using "AnyEvent::Socket::resolve_sockaddr" with the Coro rouse functions instead.
gethostbyname, gethostbyaddr
Work similarly to their Perl counterparts, but do not block. Uses "AnyEvent::Util::inet_aton" internally.
Does not handle multihomed hosts or IPv6 - consider using "AnyEvent::Socket::resolve_sockaddr" or "AnyEvent::DNS::reverse_lookup" with
the Coro rouse functions instead.
@result = Coro::Util::fork_eval { ... }, @args
Executes the given code block or code reference with the given arguments in a separate process, returning the results. The return
values must be serialisable with Coro::Storable. It may, of course, block.
Note that using event handling in the sub is not usually a good idea as you will inherit a mixed set of watchers from the parent.
Exceptions will be correctly forwarded to the caller.
This function is useful for pushing cpu-intensive computations into a different process, for example to take advantage of multiple
CPU's. Its also useful if you want to simply run some blocking functions (such as "system()") and do not care about the overhead enough
to code your own pid watcher etc.
This function might keep a pool of processes in some future version, as fork can be rather slow in large processes.
You should also look at "AnyEvent::Util::fork_eval", which is newer and more compatible to totally broken Perl implementations such as
the one from ActiveState.
Example: execute some external program (convert image to rgba raw form) and add a long computation (extract the alpha channel) in a
separate process, making sure that never more then $NUMCPUS processes are being run.
my $cpulock = new Coro::Semaphore $NUMCPUS;
sub do_it {
my ($path) = @_;
my $guard = $cpulock->guard;
Coro::Util::fork_eval {
open my $fh, "convert -depth 8 Q$pathE rgba:"
or die "$path: $!";
local $/;
# make my eyes hurt
pack "C*", unpack "(xxxC)*", <$fh>
}
}
my $alphachannel = do_it "/tmp/img.png";
AUTHOR
Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/
perl v5.14.2 2012-04-13 Util(3pm)