cpu

How to: quad core and dual quad core virtualization?

On top of a dual quad core physical host, I would like to run a single VM with 8 virtual CPU (if possible) or at least 4 virtual CPU - for the purpose of scientific computing. I have investigated what the market has to offer at this date and it seems that VMWare Server 2.0 is limited to 2 virtual CPU. Microsoft Virtual Server 2005 RC2...

Win32: Calculate Thread CPU Utilization in a Multi-Core / Multi-Processor System

I am currently working on an MFC application that needs to be CPU-utilization aware. It may have multiple threads at different points in time, but the bulk of the work is accomplished by the main thread. I am trying to find a way to calculate how much percentage of the CPU this main thread utilizes. However, I am running into some prob...

memcpy performance differences between 32 and 64 bit processes

We have Core2 machines (Dell T5400) with XP64. We observe that when running 32-bit processes, the performance of memcpy is on the order of 1.2GByte/s; however memcpy in a 64-bit process achieves about 2.2GByte/s (or 2.4GByte/s with the Intel compiler CRT's memcpy). While the initial reaction might be to just explain this away as due to...

Can a C# program measure its own CPU usage somehow?

I am working on a background program that will be running for a long time, and I have a external logging program (SmartInspect) that I want to feed with some values periodically, to monitor it in realtime when debugging. I know I can simply fire up multiple programs, like the Task Manager, or IARSN TaskInfo, but I'd like to keep everyth...

How to get current CPU and RAM usage in Python?

What's your preferred way of getting current system status (current CPU, RAM, free disk space, etc.) in Python? Bonus points for *nix and Windows platforms. There seems to be a few possible ways of extracting that from my search: Using a library such as PSI (http://www.psychofx.com/psi/trac/wiki/ -- that currently seems not actively d...

Windows CPU notification for misbehaving Coldfusion application

I have a web application, written in Coldfusion, which periodically starts using 100% of the server's CPU and crashes the Coldfusion service. Since I have been unable to reproduce the problem myself, I'd like to find a utility which will notify me by email when the CPU usage begins to climb, so I can hop on the server, look at FusionRea...

SQL Server 2000: Server memory / CPU parameters in Query Analyzer

SQL Server 2000: Is there a way to find out server memory / CPU parameters in Query Analyzer? ...

Win32 console processes in VISTA - 10% CPU, but VERY SLOW

I have a Win32 console application which is doing some computations, compiled in Compaq Visual Fortran (which probably doesn't matter). I need to run a lot of them simultaneously. In XP, they take around 90-100% CPU together, work very fast. In Vista, no matter how many of them I run, they take no more than 10% of CPU (together), and ...

How does disabling a core affect running processes?

I have this application installed on my Macbook Pro that allows me to disable a core on my CPU. It got me wondering: How does disabling a core affect the running processes? I am also interested if disabling a core has an affect on the following Battery Life Heat generation Increased performance when the processor would normally be usi...

generate CPU load in Java

I am conducting some throughput testing. My application has to read from JMS do some processing write to JMS My goal here is to simulate #2, 'some processing'. That is, introduce a delay and occupy the CPU for a given time (e.g. 500ms) before forwarding the event. The naive approach would be to Thread.sleep(500). This would introduc...

How do I do lots of processing without gobbling cpu?

I know the question title isn't the best. Let me explain. I do a TON of text processing which converts natural language to xml. These text files get uploaded fairly fast and thrown into a queue. From there they are pulled one-by-one into a background worker that calls our parser (using boost spirit) to transform the text into xml and lo...

Limiting certain processes to CPU % - Linux

Hi! I have the following problem: some processes, generated dynamically, have a tendency to eat 100% of CPU. I would like to limit all the process matching some criterion (e.g. process name) to a certain amount of CPU percentage. The specific problem I'm trying to solve is harnessing folding@home worker processes. The best solution I c...

Hardware requirements for development machines

Given that: SSD’s are now [high end] mainstream Two+ cores are not hard to come across 24+ Inch monitors are plentiful Dual Video Outputs are the norm. 64-Bit OS’s complement very cheap memory Can I ask two questions to hardware enthused developers [not the gamers!] What high-end hardware item could you not develop without - [what ...

high cpu in IIS

Hi all. I'm developing a POS application that has a local database on each POS computer, and communicates with the server using WCF hosted in IIS. The application has been deployed in several customers for over a year now. About a week ago, we've started getting reports from one of our customers that the server that the IIS is hosted o...

How can I get a process' cpu usage percentage?

How can I get a process' cpu usage percentage ala-Task Manager? I used the PerformanceCounter class but it's 'performance' is not optimal for the app that i'm doing. Is there an alternative method to do this? Thanks! ...

MS-SQL Express 2005/2008 multi instance CPU and memory utilization

With SQL Express (either 2005 or 2008 edition) there is a limit of 1GB memory and 1 CPU that can be used. What I'm wondering, is if two instances are installed on the same machine, would they use the same CPU and same 1GB of memory? Or, would they use potentially two different CPU's and 2GB memory? ...

CPU Utilization of Service DLL?

I need to find out the CPU utilization of a service DLL. I have looked in existing samples and we can find CPU utilization for processes. I think DLL will be loaded by services.exe. So is it possible to find out CPU utilization by DLL. I am working in C++ on the Windows platform. ...

How to fix eclipse spinning CPU while debugging on tomcat server

I know stackoverflow is meant for programming problems, but this is exactly the kind of thing you search for on google and other people ask the same question with no answer, which is exactly the kind of thing I read stackoverflow was for. I run ganymede I'm debugging a servlet in tomcat on windows. When I do a line by line trace, all of...

Too Little CPU Utilization in Java

Hey stackoverflow community! I'm having an issue where a highly involved algorithmic program is using TOO LITTLE cpu utilization: somewhere between 3 and 4%. It is taking very long to return results, and I believe it's just not working hard enough. Do any of you geniuses have any ideas why this would occur - if anything I would expect...

What exactly does `a CPU` mean in RH App Stack Subscription

This may be a very lame question to ask but I need to be very sure. In the Red Hat Application Stack subscription details they have listed the max. number of CPUs they are going to give support to. Now my question is what exactly they are meaning from the term CPU, my choices are: 1 CPU means 1 physical unit/box/socket i.e. 1 box c...