Valhalla Legends Forums Archive | General Programming | Active System Information Updates

AuthorMessageTime
Mephisto
Recently I've been working on a program which actively updates your system's current information on Windows NT 4.0+. I'm wondering though if anyone has used a program like this. Typically a window that has a list of system informations like CPU usage, memory allocated, memory avaliable, page file, etc. etc. -- does anyone know of any free ones? I'd like to get some ideas from them. If one came with the source that'd be even better. Thanks...

Just an example of what you might see in the window:

CPU Usage: 55%
Memory Avaliable: 403MB
Memory Used: 7021MB
Drive C Space: 4GB
IP: 63.241.83.7
etc.
May 25, 2004, 3:31 AM
Grok
I might should not tell you this, but you have taken the first step to becoming a decent programmer. What has at some point driven many good programmers is an innate (maybe insane?), obsession with learning and understanding all the low-level mechanisms associated with their computer and operating systems.

When evaluating people on their computer I.Q., I often ask them distributed and varied, but surgical, questions about their systems. Like, "describe to me the partition tables and how they are used in the PC boot sequence."
May 25, 2004, 3:52 AM
Mephisto
:) I remember how excited I was when I first disected a computer, and how insanely excited I was to see it boot up while looking inside, though I was disapointed because I thought I was going to see eletricity, heh. But that was some time ago. ;)
May 25, 2004, 3:58 AM
Null
Why ask for something when u know its all on pscode?, (I guarentee there are more 100 examples of what your asking for)
May 25, 2004, 4:30 AM
Mephisto
[quote author=effect link=board=5;threadid=6949;start=0#msg61715 date=1085459401]
Why ask for something when u know its all on pscode?, (I guarentee there are more 100 examples of what your asking for)
[/quote]

Not very accurate to assume someone would know where those places are, because I for one don't. Thanks, though...
May 25, 2004, 4:43 AM
Null
Uve been here for 200 odd post's now , i assume people with any programming experience (who are serious) and who have been here for that amount of time know about the existance of pscode.
May 25, 2004, 4:47 AM
Mephisto
Looking at the Website I see it's relatively shit and pointless...I don't see why you would think everyone who is *serious* about programming would know about it...The server is also extremely slow...
May 25, 2004, 4:51 AM
Null
[quote author=Mephisto link=board=5;threadid=6949;start=0#msg61721 date=1085460700]
Looking at the Website I see it's relatively shit and pointless...I don't see why you would think everyone who is *serious* about programming would know about it...The server is also extremely slow...
[/quote]


Oh yea , your just ignoring the million lines of source code that resides there?
May 25, 2004, 5:19 AM
Fr0z3N
Rules before posting:

1. Google
2. PSCode
3. Forum Search

Posting is usually my last resort because everything has been asked you just have to find the answer.
May 25, 2004, 5:21 AM
Eibro
taskmgr.exe displays most of that.
May 25, 2004, 5:47 AM
Maddox
GetSystemInfo() and GlobalMemoryStatus() is what I looked up from DMBot.

As for getting the WAN IP, I know of no standard way of getting it without some sort of remote server.
May 25, 2004, 6:04 AM
Grok
[quote author=effect link=board=5;threadid=6949;start=0#msg61728 date=1085462364]
[quote author=Mephisto link=board=5;threadid=6949;start=0#msg61721 date=1085460700]
Looking at the Website I see it's relatively shit and pointless...I don't see why you would think everyone who is *serious* about programming would know about it...The server is also extremely slow...
[/quote]


Oh yea , your just ignoring the million lines of source code that resides there?
[/quote]

You're in desperate need to read "Second Foundation" by Isaac Asimov.
May 25, 2004, 6:33 AM
Null
[quote author=Grok link=board=5;threadid=6949;start=0#msg61741 date=1085466832]
[quote author=effect link=board=5;threadid=6949;start=0#msg61728 date=1085462364]
[quote author=Mephisto link=board=5;threadid=6949;start=0#msg61721 date=1085460700]
Looking at the Website I see it's relatively shit and pointless...I don't see why you would think everyone who is *serious* about programming would know about it...The server is also extremely slow...
[/quote]


Oh yea , your just ignoring the million lines of source code that resides there?
[/quote]

You're in desperate need to read "Second Foundation" by Isaac Asimov.
[/quote]

"thall shall not smigten thy heathen but let him into thy house"

wildstab at what your getting at :P
May 25, 2004, 8:53 AM
Tuberload
Since we are recommending books for people to read, Mephisto:

A Lesson in Personal Empowerment
by John J. Murphy
May 25, 2004, 9:04 AM
Eli_1
I'm glad to see the regular forum flamers were able to stop by and waste everyone's time -- again.
May 25, 2004, 10:42 AM
Tuberload
[quote author=Eli_1 link=board=5;threadid=6949;start=0#msg61753 date=1085481757]
I'm glad to see the regular forum flamers were able to stop by and waste everyone's time -- again.
[/quote]

A good 70% of the posts on this forum could be concidered a waste of time, so please don't pass out all the credit to the participants of this thread. Besides I don't see how anyone here is a regular flamer...
May 25, 2004, 11:14 AM
Mephisto
*shrug*
May 25, 2004, 2:04 PM
Null
[quote author=Mephisto link=board=5;threadid=6949;start=15#msg61760 date=1085493859]
*shrug*
[/quote]

You obviously didnt take his advice. (heathen)
May 25, 2004, 3:32 PM
Noodlez
Download SiSoft Sandra, it is free software that displays nearly everything about your computer.
May 25, 2004, 4:51 PM
Mephisto
[quote author=Noodlez link=board=5;threadid=6949;start=15#msg61768 date=1085503917]
Download SiSoft Sandra, it is free software that displays nearly everything about your computer.
[/quote]

Can you provide a link? Their Website is hell to navigate through for me...
May 25, 2004, 7:02 PM
Eli_1
[quote author=Tuberload link=board=5;threadid=6949;start=15#msg61754 date=1085483693]
A good 70% of the posts on this forum could be concidered a waste of time, so please don't pass out all the credit to the participants of this thread. Besides I don't see how anyone here is a regular flamer...
[/quote]

Yea, I'm sorry about that. It was really early and I didn't read some of the responses clearly -- I could have sworn I saw someone tell Mephisto to "get a life."
May 25, 2004, 7:03 PM
Tuberload
[quote author=Eli_1 link=board=5;threadid=6949;start=15#msg61785 date=1085511815]
[quote author=Tuberload link=board=5;threadid=6949;start=15#msg61754 date=1085483693]
A good 70% of the posts on this forum could be concidered a waste of time, so please don't pass out all the credit to the participants of this thread. Besides I don't see how anyone here is a regular flamer...
[/quote]

Yea, I'm sorry about that. It was really early and I didn't read some of the responses clearly -- I could have sworn I saw someone tell Mephisto to "get a life."

[/quote]

Please don't apologize to me, I am sorry as well. I was more defending myself as to being a regular flamer. I wasn't really attempting to flame, just sticking up for a friend the same way other people were.
May 25, 2004, 9:48 PM
Tuberload
[quote author=Mephisto link=board=5;threadid=6949;start=15#msg61760 date=1085493859]
*shrug*
[/quote]

I didn't really expect you to understand the reasoning or the meaning of my post, so I guess I will just *shrug* as well.
May 25, 2004, 9:49 PM
Mephisto
[quote author=Tuberload link=board=5;threadid=6949;start=15#msg61848 date=1085521758]
[quote author=Mephisto link=board=5;threadid=6949;start=15#msg61760 date=1085493859]
*shrug*
[/quote]

I didn't really expect you to understand the reasoning or the meaning of my post, so I guess I will just *shrug* as well.
[/quote]

It was actually pretty obvious...You couldn't have made it much clearer...I just didn't agree...Unless of course I'm way off and mis-interpreted the whole thing...
May 25, 2004, 11:00 PM
Tuberload
[quote author=Mephisto link=board=5;threadid=6949;start=15#msg61862 date=1085526032]
[quote author=Tuberload link=board=5;threadid=6949;start=15#msg61848 date=1085521758]
[quote author=Mephisto link=board=5;threadid=6949;start=15#msg61760 date=1085493859]
*shrug*
[/quote]

I didn't really expect you to understand the reasoning or the meaning of my post, so I guess I will just *shrug* as well.
[/quote]

It was actually pretty obvious...You couldn't have made it much clearer...I just didn't agree...Unless of course I'm way off and mis-interpreted the whole thing...
[/quote]

I am going to continue this on IM.
May 25, 2004, 11:17 PM
Noodlez
[quote author=Mephisto link=board=5;threadid=6949;start=15#msg61784 date=1085511753]
[quote author=Noodlez link=board=5;threadid=6949;start=15#msg61768 date=1085503917]
Download SiSoft Sandra, it is free software that displays nearly everything about your computer.
[/quote]

Can you provide a link? Their Website is hell to navigate through for me...
[/quote]

http://download.guru3d.com/sandra/
May 27, 2004, 4:57 PM
warz
[quote author=Mephisto link=board=5;threadid=6949;start=0#msg61703 date=1085455869]
Recently I've been working on a program which actively updates your system's current information on Windows NT 4.0+. I'm wondering though if anyone has used a program like this. Typically a window that has a list of system informations like CPU usage, memory allocated, memory avaliable, page file, etc. etc. -- does anyone know of any free ones? I'd like to get some ideas from them. If one came with the source that'd be even better. Thanks...

Just an example of what you might see in the window:

CPU Usage: 55%
Memory Avaliable: 403MB
Memory Used: 7021MB
Drive C Space: 4GB
IP: 63.241.83.7
etc.
[/quote]

The best one ever: gkrellm
Search for it, it's intense.
May 27, 2004, 5:54 PM
K
Here's a quick example of what you can do using the System.Management assembly in .NET.

[code]
using System;
using System.Management;

namespace Monitor
{

   class ExampleClass
   {
      [STAThread]
      static void Main(string[] args)
      {
         PerformanceWatcher p = new PerformanceWatcher();
         p.UpdateAll();

         Console.WriteLine("CPU Usage: {0}%", p.GetCPUUsagePercent());
         Console.WriteLine("Free Memory: {0} MB -or- {1} KB -or- {2} Bytes", p.GetFreeMemMBytes(), p.GetFreeMemKBytes(), p.GetFreeMemBytes());
      }
   }

   class PerformanceWatcher
   {
      protected ManagementScope _msScope = new ManagementScope(ManagementPath.DefaultPath);
      protected ManagementObjectSearcher _mosSearch = new ManagementObjectSearcher();
      protected ManagementObjectCollection _mocCollection;
      protected ObjectQuery _oqCPUQuery = new ObjectQuery("SELECT PercentProcessorTime, TimeStamp_Sys100NS FROM Win32_PerfRawData_PerfOS_Processor where Name='_Total'");
      protected ObjectQuery _oqMemQuery = new ObjectQuery("SELECT AvailableMBytes, AvailableKBytes, AvailableBytes FROM Win32_PerfRawData_PerfOS_Memory");

      protected ulong _ulFreeMemMB = 0;
      protected ulong _ulFreeMemKB = 0;
      protected ulong _ulFreeMemB = 0;
      protected double _dbCpuUsagePercent = 0;

      public PerformanceWatcher()
      {
         _msScope.Connect();
         _mosSearch.Scope = _msScope;
      }

      public void UpdateAll(int cpu_timing_ms)
      {
         UpdateFreeMem();
         UpdateCPUUsage(cpu_timing_ms);
      }
      public void UpdateAll()
      {
         UpdateFreeMem();
         UpdateCPUUsage();
      }

      public void UpdateCPUUsage()
      {
         UpdateCPUUsage(2000);
      }
      public void UpdateCPUUsage(int timing_ms)
      {
         _mosSearch.Query = _oqCPUQuery;
         _mocCollection = _mosSearch.Get();

         double n1 = 0, d1 = 0, n2 = 0, d2 = 0;
         foreach(ManagementObject m in _mocCollection)
         {
            n1 = (ulong)m["PercentProcessorTime"];
            d1 = (ulong)m["TimeStamp_Sys100NS"];
break;
         }

         System.Threading.Thread.Sleep(timing_ms);

         _mocCollection = _mosSearch.Get();
         foreach(ManagementObject m in _mocCollection)
         {
            n2 = (ulong)m["PercentProcessorTime"];
            d2 = (ulong)m["TimeStamp_Sys100NS"];
break;
         }

         _dbCpuUsagePercent = Math.Abs(Math.Round((1 - ((n2 - n1)/(d2 - d1)))*100, 2));
      }

      public void UpdateFreeMem()
      {
         _mosSearch.Query = _oqMemQuery;
         _mocCollection = _mosSearch.Get();

         foreach(ManagementObject m in _mocCollection)
         {
            _ulFreeMemMB = (ulong)m["AvailableMBytes"];
            _ulFreeMemKB = (ulong)m["AvailableKBytes"];
            _ulFreeMemB = (ulong)m["AvailableBytes"];
break;
         }
      }


      public double GetCPUUsagePercent()
      {
         return _dbCpuUsagePercent;
      }

      public ulong GetFreeMemMBytes()
      {
         return _ulFreeMemMB;
      }

      public ulong GetFreeMemKBytes()
      {
         return _ulFreeMemKB;
      }

      public ulong GetFreeMemBytes()
      {
         return _ulFreeMemB;
      }
   };
}
[/code]
May 30, 2004, 11:32 PM
vile
Don't worry, that's way beyond Mephisto (jk).
May 31, 2004, 8:01 AM

Search