.NETGURU
.NET is slower on win2000 cluster - .NET 1.1 Bug ?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.performance.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Bimal Fernando via .Net Guru (VIP)
I have written a .NET application to be deployed on a two clusterd SQL server machine. My probelm is it runs slower on the very powerful Cluster node than my developmet PC. It's actually very slow. I wrote a simple application as below to to see whether the problem is actually with .NET.

        public FileTest()
        {
            Console.WriteLine("Start here");
            long Start = DateTime.Now.Ticks;
            for (int i=0;i<=1000;i++)
            {
                Console.WriteLine("Print Something >" + i);
                Thread.Sleep(10);
            }
            long End = DateTime.Now.Ticks;
            long Diff = End - Start;
            Console.WriteLine("Time Taken is : " + Diff.ToString());
            Console.Read();
        }
This runs 4 seconds faster on my machine than the cluster node.
I ran some other executables like compression utility (non .NET) and they run faster on the cluster node, therefore i am very sure this is something to do with .NET exes only.
I have .NET 1.1
Cluster node OS = Windows2000 adv server, dual processor
Dev OS = Win XP
I appreciate somebody's help very much.

--------------------------------
From: Bimal Fernando

-----------------------
Posted by a user from .Net Guru (http://www.dot-net-guru.com/)

<Id>gjOSI/d1XEKlasef++ZEcQ==</Id>
Reply to this message...
 
    
Michel André
Bimal Fernando via .Net Guru wrote:
[Original message clipped]

The quanta on NT Server is about 120ms and the quanta on a
workstation/xp the quanta is 20/20/60 ms depending on the settings for
boost foreground application. The quanta is the time alotted to a thread
to run on the cpu. And usually having some blocking operation or sleep
in a thread can make you give up the rest of your alotted quanta until
you are scheduled again. So to make a valid comparison make a cpu
intensive task and run at least two threads because the test you are
doing now is more dependent on the scheduling algorithm of the os than
the actual performance since you have a blocking sleep operation in the
thread.

/Michel
Reply to this message...
 
 
System.Console
System.DateTime
System.Threading.Thread




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification