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 DEBIAN
fmcs
FMCS(1) User Commands FMCS(1)NAME
fmcs - fmcs
DESCRIPTION
usage: fmcs [-h] [--maximize {atoms,bonds}] [--min-num-atoms INT]
[--compare {topology,elements,types}] [--atom-compare {any,elements,isotopes}] [--bond-compare {any,bondtypes}] [--atom-class-tag
TAG] [--ring-matches-ring-only] [--complete-rings-only] [--select SELECT] [--timeout SECONDS] [--output FILENAME] [--output-format
{smarts,fragment-smiles,fragment-sdf,complete-sdf}] [--output-all] [--save-atom-class-tag TAG] [--save-counts-tag TAG]
[--save-atom-indices-tag TAG] [--save-smarts-tag TAG] [--save-smiles-tag TAG] [--times] [-v] [--version] filename
Find the maximum common substructure of a set of structures
positional arguments:
filename
SDF or SMILES file
optional arguments:
-h, --help
show this help message and exit
--maximize {atoms,bonds}
Maximize the number of 'atoms' or 'bonds' in the MCS. (Default: bonds)
--min-num-atoms INT
Minimimum number of atoms in the MCS (Default: 2)
--compare {topology,elements,types}
Use 'topology' as a shorthand for '--atom-compare any --bond-compare any', 'elements' is '--atom-compare elements --bond-compare
any', and 'types' is '--atomcompare elements --bond-compare bondtypes' (Default: types)
--atom-compare {any,elements,isotopes}
Specify the atom comparison method. With 'any', every atom matches every other atom. With 'elements', atoms match only if they con-
tain the same element. With 'isotopes', atoms match only if they have the same isotope number; element information is ignored so
[5C] and [5P] are identical. This can be used to implement user-defined atom typing. (Default: elements)
--bond-compare {any,bondtypes}
Specify the bond comparison method. With 'any', every bond matches every other bond. With 'bondtypes', bonds are the same only if
their bond types are the same. (Default: bondtypes)
--atom-class-tag TAG
Use atom class assignments from the field 'TAG'. The tag data must contain a space separated list of integers in the range 1-10000,
one for each atom. Atoms are identical if and only if their corresponding atom classes are the same. Note that '003' and '3' are
treated as identical values. (Not used by default)
--ring-matches-ring-only
Modify the bond comparison so that ring bonds only match ring bonds and chain bonds only match chain bonds. (Ring atoms can still
match non-ring atoms.)
--complete-rings-only
If a bond is a ring bond in the input structures and a bond is in the MCS then the bond must also be in a ring in the MCS. Selecting
this option also enables --ring-matches-ring-only.
--select SELECT
Select a subset of the input records to process. Example: 1-10,13,20,50- (Default: '1-', which selects all structures)
--timeout SECONDS
Report the best solution after running for at most 'timeout' seconds. Use 'none' for no timeout. (Default: none)
--output FILENAME, -o FILENAME
Write the results to FILENAME (Default: use stdout)
--output-format {smarts,fragment-smiles,fragment-sdf,complete-sdf}
'smarts' writes the SMARTS pattern including the atom and bond criteria. 'fragment-smiles' writes a matching fragment as a SMILES
string. 'fragment-sdf' writes a matching fragment as a SD file; see --save-atom-class for details on how atom class information is
saved. 'complete-sdf' writes the entire SD file with the fragment information stored in the tag specified by --save-frag-
ment-indices-tag. (Default: smarts)
--output-all
By default the structure output formats only show an MCS for the first input structure. If this option is enabled then an MCS for
all of the structures are shown.
--save-atom-class-tag TAG
If atom classes are specified (via --class-tag) and the output format is 'fragment-sdf' then save the substructure atom classes to
the tag TAG, in fragment atom order. By default this is the value of --atomclass-tag.
--save-counts-tag TAG
Save the fragment count, atom count, and bond count to the specified SD tag as space separated integers, like '1 9 8'. (The fragment
count will not be larger than 1 until fmcs supports disconnected MCSes.)
--save-atom-indices-tag TAG
If atom classes are specified and the output format is 'complete-sdf' then save the MCS fragment atom indices to the tag TAG, in MCS
order. (Default: mcs-atomindices)
--save-smarts-tag TAG
Save the MCS SMARTS to the specified SD tag. Uses '-' if there is no MCS
--save-smiles-tag TAG
Save the fragment SMILES to the specified SD tag. Uses '-' if there is no MCS
--times
Print timing information to stderr
-v, --verbose
Print progress statistics to stderr. Use twice for higher verbosity.
--version
For more details on these options, see https://bitbucket.org/dalke/fmcs/
fmcs 1.0 June 2012 FMCS(1)