Test program running taking much more time on high end server T5440 than low end server T5220
Hi all,
I have written the following program and run on both T5440 [1.4 GHz, 95 GB RAM, 32 cores(s), 256 logical (virtual) processor(s),] and T5220 [(UltraSPARC-T2 (chipid 0, clock 1165 MH) , 8GB RAM, 1 core, 8 virtual processors )] on same OS version. I found that T5540 server takes more time than T5220. Please find below the details.
test1.cpp
Code:
#include <iostream>
#include <pthread.h>
using namespace std;
#define NUM_OF_THREADS 20
struct ABCDEF {
char A[1024];
char B[1024];
};
void *start_func(void *)
{
long long i = 6000;
while(i--)
{
ABCDEF* sdf = new ABCDEF;
delete sdf;
sdf = NULL;
}
return NULL;
}
int main(int argc, char* argv[])
{
pthread_t tid[50];
for(int i=0; i<NUM_OF_THREADS; i++)
{
pthread_create(&tid[i], NULL, start_func, NULL);
cout<<"Creating thread " << i <<endl;
}
for(int i=0; i<NUM_OF_THREADS; i++)
{
pthread_join(tid[i], NULL);
cout<<"Waiting for thread " << i <<endl;
}
}
After executing the above program on T5440 takes : real 0.78 user 3.94s sys 0.05
After executing the above program on T5220 takes : real 0.23 user 1.43s sys 0.03
It seems that T5440 which is high end server takes almost 3 times more time than T5220 which is low end server.
However, I have one more observation. I tried the following program :
test2.cpp
Code:
#include <iostream>
#include <pthread.h>
using namespace std;
#define NUM_OF_THREADS 20
struct ABCDEF {
char A[1024];
char B[1024];
};
int main(int argc, char* argv[])
{
long long i = 6000000;
while(i--)
{
ABCDEF* sdf = new ABCDEF;
delete sdf;
sdf = NULL;
}
return 0;
}
It seems that T5440 server is fast in this case as compaired to T5220 server.
Could anyone please help me out the exact reason for this behaviour as my application is slow as well on this T5440 server.
Thanks in advance !!!
regards, Sanjay
Last edited by Scrutinizer; 06-27-2013 at 03:12 PM..
Reason: code tags
Hi,
I'm a complete novice at Unix and need to create a script that does the following...
checks to see if an application server is running.
If the app is running then print 'Available'
Else print 'Unavaliable'
exit from scriopt
I have no idea where to start. I'd be very grateful... (0 Replies)
Hello,
My apologies if this sounds like a stupid question......
but is it possible to call a script that is located on a w2k machine from a csh script bing run on a unix server.
Many thanks
rkap (1 Reply)
I need a script to be able to take a path such as "/foo/bar/thing" a put the "/foo/bar/" bit in one variable and the "thing" bit in another.
I figured awk would probably be the best tool for the job but looking at the man page didn't seem to help. The only way i know how to use awk is with... (12 Replies)
Hi,
Currently we have a Sun Fire 480R running Solaris 9 and Oracle 9.2.0.8. The server is fibre attached to a NetApp FAS3070. Two separate 100GB LUNs are presented to the server.
The two LUNs are mounted as the file systems data and logs for the Oracle database. We are seeing high I/O... (1 Reply)
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)
SPARC Enterprise T5440 Server, can not power off
I connect to Service Processor via serial port and submit the following to boot the system, it boots fine but can not power off the system. Can someone help?
The following takes me to unix login
-> start /SYS
-> start /SP/console... (6 Replies)
Hi All,
I am facing an issue in one of the use cases that I am trying to implement.
I am getting a purchase order from one of the trading partners through Oracle B2B.
B2B forwards this B2BM (B2B message ) to AIAB2BInterface. From AIAB2BInterface my BPEL process gets invoked, which in turn... (1 Reply)
I wish to be able to give to a client the opportunity to :
0) Turn one of my ubuntu computers into a webserver
1) See a webpage after visiting a url where an external user/client can set a couple of variables (e.g. Number1= ?, Number2=?)
2) By pressing "run" the program runs on my machine
3)... (1 Reply)
i have a "if .. then exit end " in s shell script on remote servers.
now the connection to the remote server got killed after i run this script on the remote servers. How do i run this script on remote hosts and still keep remote connections alive after executing the script.
Thank you. (10 Replies)
Discussion started by: moonmonk
10 Replies
LEARN ABOUT SUSE
pcap-tstamp
PCAP-TSTAMP(7) Miscellaneous Information Manual PCAP-TSTAMP(7)NAME
pcap-tstamp - packet time stamps in libpcap
DESCRIPTION
When capturing traffic, each packet is given a time stamp representing, for incoming packets, the arrival time of the packet and, for out-
going packets, the transmission time of the packet. This time is an approximation of the arrival or transmission time. If it is supplied
by the operating system running on the host on which the capture is being done, there are several reasons why it might not precisely repre-
sent the arrival or transmission time:
if the time stamp is applied to the packet when the networking stack receives the packet, the networking stack might not see the
packet until an interrupt is delivered for the packet or a timer event causes the networking device driver to poll for packets, and
the time stamp might not be applied until the packet has had some processing done by other code in the networking stack, so there
might be a significant delay between the time when the last bit of the packet is received by the capture device and when the net-
working stack time-stamps the packet;
the timer used to generate the time stamps might have low resolution, for example, it might be a timer updated once per host operat-
ing system timer tick, with the host operating system timer ticking once every few milliseconds;
a high-resolution timer might use a counter that runs at a rate dependent on the processor clock speed, and that clock speed might
be adjusted upwards or downwards over time and the timer might not be able to compensate for all those adjustments;
the host operating system's clock might be adjusted over time to match a time standard to which the host is being synchronized,
which might be done by temporarily slowing down or speeding up the clock or by making a single adjustment;
different CPU cores on a multi-core or multi-processor system might be running at different speeds, or might not have time counters
all synchronized, so packets time-stamped by different cores might not have consistent time stamps.
In addition, packets time-stamped by different cores might be time-stamped in one order and added to the queue of packets for libpcap to
read in another order, so time stamps might not be monotonically increasing.
Some capture devices on some platforms can provide time stamps for packets; those time stamps are usually high-resolution time stamps, and
are usually applied to the packet when the first or last bit of the packet arrives, and are thus more accurate than time stamps provided by
the host operating system. Those time stamps might not, however, be synchronized with the host operating system's clock, so that, for
example, the time stamp of a packet might not correspond to the time stamp of an event on the host triggered by the arrival of that packet.
Depending on the capture device and the software on the host, libpcap might allow different types of time stamp to be used. The
pcap_list_tstamp_types(3PCAP) routine provides, for a packet capture handle created by pcap_create(3PCAP) but not yet activated by
pcap_activate(3PCAP), a list of time stamp types supported by the capture device for that handle. The list might be empty, in which case
no choice of time stamp type is offered for that capture device. If the list is not empty, the pcap_set_tstamp_type(3PCAP) routine can be
used after a pcap_create() call and before a pcap_activate() call to specify the type of time stamp to be used on the device. The time
stamp types are listed here; the first value is the #define to use in code, the second value is the value returned by
pcap_tstamp_type_val_to_name() and accepted by pcap_tstamp_name_to_val().
PCAP_TSTAMP_HOST - host
Time stamp provided by the host on which the capture is being done. The precision of this time stamp is unspecified; it might or
might not be synchronized with the host operating system's clock.
PCAP_TSTAMP_HOST_LOWPREC - host_lowprec
Time stamp provided by the host on which the capture is being done. This is a low-precision time stamp, synchronized with the
host operating system's clock.
PCAP_TSTAMP_HOST_HIPREC - host_hiprec
Time stamp provided by the host on which the capture is being done. This is a high-precision time stamp; it might or might not
be synchronized with the host operating system's clock. It might be more expensive to fetch than PCAP_TSTAMP_HOST_LOWPREC.
PCAP_TSTAMP_ADAPTER - adapter
Time stamp provided by the network adapter on which the capture is being done. This is a high-precision time stamp, synchronized
with the host operating system's clock.
PCAP_TSTAMP_ADAPTER_UNSYNCED - adapter_unsynced
Time stamp provided by the network adapter on which the capture is being done. This is a high-precision time stamp; it is not
synchronized with the host operating system's clock.
SEE ALSO pcap_set_tstamp_type(3PCAP), pcap_list_tstamp_types(3PCAP), pcap_tstamp_type_val_to_name(3PCAP), pcap_tstamp_name_to_val(3PCAP)
22 August 2010 PCAP-TSTAMP(7)