473,398 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Measure the load on a computer

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!
Jul 21 '05 #1
5 1392
> 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.


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.
Jul 21 '05 #2
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.

"Michael A. Covington" wrote:
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!

Jul 21 '05 #3
still watching with interest. the silence is deafening.

Jul 21 '05 #4

"AMercer" <AM*****@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
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.

Jul 21 '05 #5
> 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
);

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Alexandre Plennevaux | last post by:
hello ! I would like to measure the time a user needs to connect to my website. In other words, to perform a ping between my website and the user's computer. I'm scratching my head as to how...
1
by: Christian Perthen | last post by:
Hi, How can a measure server session memory usage? I have a 20-30 session variables and I would like to know how much they memory they consume then multplied with my projected user load. ...
6
by: Charles M. Reinke | last post by:
I'm using the function clock() to measure the run time of a program so that I can compare among several different algorithms. My code looks like: #include <stdio.h> #include <stdlib.h>...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
2
by: Diana Estrada | last post by:
Hi, I have a ASP .Net, and in this I load a report or Crystal, with this instruction: crReportDocument.Load(Server.MapPath("") & "reporte.rpt"); It's good, but when I try to load a remote...
5
by: Michael A. Covington | last post by:
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...
0
chocoajay
by: chocoajay | last post by:
Hi all, I am new to this forum and want help in one issue that i am facing currentky. I want to monitor the CPU LOAD of my System. It can be a multi CPU system. I want a C Program for it ,...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, I just upgraded the motherboard and cpu on my computer (core2Duo). I also imaged the contents of my old harddrive to a new one(500g) - Windows XP sp2 (version2002). Everything appears...
0
by: jaleel | last post by:
Hi, We have windows appliaction containing several class libraries and windows forms. I want to measure the time taken by each form in our application to load and dispaly for the first time.Can...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.