Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / June 2005

Tip: Looking for answers? Try searching our database.

Measure the load on a computer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael A. Covington - 15 Apr 2005 00:19 GMT
We have a computer that multiple people use through Remote Desktop.

Is there a measurement analogous to UNIX's "load average" -- average number
of processes trying to run, or something -- that can be read by a program
running as an ordinary user (not administrator)?

I'm willing to write programs in Win32 or .NET, or use utilities, or
anything reasonable.  I want to end up with something that can run whenever
a user logs on, to tell him how heavily loaded the machine is.

Thanks!
Michael A. Covington - 15 Apr 2005 03:47 GMT
> We have a computer that multiple people use through Remote Desktop.
>
[quoted text clipped - 5 lines]
> anything reasonable.  I want to end up with something that can run
> whenever a user logs on, to tell him how heavily loaded the machine is.

I should add that I'm interested in situations where the load is more than
100%, i.e., there are processes waiting to run.  Loads up to 100% are
viewable in Task Manager.  But a non-administrator cannot view applications
other than his/her own.
AMercer - 15 Apr 2005 12:28 GMT
the microsoft pstat.exe utility may help, but i am unfamiliar with it.  maybe
you could run it periodically, read its output, and infer the info you want.  
it seems that an ingredient you need is the amount of time a thread is ready
to be dispatched but is not yet dispatched (thread latency?).  i'll be
watching this question with interest.

> We have a computer that multiple people use through Remote Desktop.
>
[quoted text clipped - 7 lines]
>
> Thanks!
AMercer - 18 Apr 2005 13:12 GMT
still watching with interest.  the silence is deafening.
Michael A. Covington - 18 Apr 2005 15:16 GMT
> still watching with interest.  the silence is deafening.

You can say that again.  I wonder if there is a Resource Kit tool that does
this.

For those who tuned in late:  I'm wanting to measure the load on a
multi-user Windows server whose CPU is almost always 100% occupied (in UNIX
terms, has a load average greater than 1.0), and I want the equivalent of
the UNIX load average (i.e., basically the number of processes sharing the
CPU).

Measuring up to 100% (with Task Manager) is not good enough.
AMercer - 28 Jun 2005 13:26 GMT
> We have a computer that multiple people use through Remote Desktop.

Does this computer run either XP SP1 or Windows Server 2003?  If so, try:

BOOL GetSystemTimes(
 LPFILETIME lpIdleTime,
 LPFILETIME lpKernelTime,
 LPFILETIME lpUserTime
);

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.