cpu

How to detect what CPU is being used during runtime ?

How can I detect which CPU is being used at runtime ? The c++ code needs to differentiate between AMD / Intel architectures ? Using gcc 4.2. thanks in advance, vivekian ...

When can CPU and RAM be interchangeable?

Hi, I'm trying to troubleshoot an enterprise application of sort running at a customer's site. The application, which is actually a search engine, is eating 99% CPU but almost no more RAM than when IDLE. No dramatic I/O or Network activities were registered as well. My question is: is the application badly designed? Could any applicat...

Would there be any point in designing a CPU that could handle IL directly?

If I understand this correctly: Current CPU developing companies like AMD and Intel have their own API codes (the assembly language) as what they see as the 2G language on top of the Machine code (1G language) Would it be possible or desirable (performance or otherwise) to have a CPU that would perform IL handling at it's core instead...

How to get current CPU and RAM usage in C++?

Hello, is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call? Thank you. ...

Looking for a good book on microprocessor internals

I'm looking for a good book on how modern microprocessors are designed and work as I would like to increase my understanding of what makes them tick. Something that covers pipelines, superscalar architectures, caches etc. A book that is suitable for a programmer with several years of experience and has done and understands assembly progr...

Firefox killing the CPU

I love Firefox and Firebug, but Firefox seem to have some problem with the memory. Both mine and 2 co-workers at the office have the same problem - Firefox makes or PC/Vista or MacBook Pro sweat like a polarbear in Afrika. Anyone else have this problem? And is there some solution for those of us who sell or kidneys before working witho...

Can multiple CPUs simultaneously write to the same RAM location?

Are machine word size (or smaller) writes serialized? Only one native opcode is needed to copy register content to RAM. ...

What happened to clockless computer chips?

Several years ago, the 'next big thing' was clockless computers. The idea behind it was that without a clock, the processors would run significantly faster. That was then, this is now and I can't find any info on how it's been coming along or if the idea was a bust... Anyone know? For reference... http://www1.cs.columbia.edu/async/m...

Linux display average CPU load for last week

On a Linux box, I need to display the average CPU utilisation per hour for the last week. Is that information logged somewhere? Or do I need to write a script that wakes up every 15 minutes to copy /proc/loadavg to a logfile? EDIT: I'm not allowed to use any tools other than those that come with Linux. ...

What if Processor time became cheap?

How would things change if a dramatic revolution was made in processor technology with regard to development. For example what if a single cpu was as strong as a cluster? What would happen to security? ...

top command's CPU usage calculation

I am trying to use GNU coreutil top's formula for calculating CPU usages in percentage. But top is using some half_total, to calculate the percentage, which is adding 0.5 to the percentage. In utils.c of top's source, the following line (at 3.8 beta1, it is in line number: 459): - out++ = (int)((diffs++ * 1000 + half_total) / total_ch...

Does the advent of MultiCore architectures affect me as a software developer?

As a software developer dealing mostly with high-level programming languages I'm not sure what I can do to appropriately pay attention to the upcoming omni-presence of multicore computers. I write mostly ordinary and non-demanding applications, nevertheless I think it is important to know if I need to change any programming paradigms or ...

Do 2D arrays use more resources than 1D arrays in Java?

For example, would a full int[50][8] use more resources (RAM and CPU) than 8 full int[50] arrays? ...

Any value to a programmer to understand the CPU in more depth?

It recently occurred to me that I (and I think most people) learned computer programming starting with something like Visual Basic. I began to wonder if we had started at the lower level first if it would be easier now. Do you think it is any value as a programmer to understand things like how a CPU works, the basic instructions, and th...

How are interrupts handled by dual processor machines?

I have an idea of how interrupts are handled by a dual core CPU. I was wondering about how interrupt handling is implemented on a board with more than one physical processor. Is any of the interrupt responsibility determined by the physical board's configuration? Each processor must be able to handle some types of interrupts, like di...

What are the advantages of a 64-bit processor?

Obviously, a 64-bit processor has a 64-bit address space, so you have more than 4 GB of RAM at your disposal. Does compiling the same program as 64-bit and running on a 64-bit CPU have any other advantages that might actually benefit programs that aren't enormous memory hogs? I'm asking about CPUs in general, and Intel-compatible CPUs ...

winforms profiling - dotTrace 3.1 or Ants 4.3

are there any particular features in one versus another that would help me decide which to purchase for a winforms app. I am looking for both memory, cpu, performance bottlenecks. ...

Reliable CPU profiler for .NET 3.5 under Win64 with command line support?

I am looking for a CPU profiler for .NET supporting heavily threaded apps. (double) quad-core CPUs. sampling profiling. 64 bits OS. command-line API. Currently, I am getting trouble with most .NET profilers, in particular, YourKit does not seem to support command-line. dotTrace 3.1 is crashing with 64 bits OS. I haven't tried In...

Avoiding timing issues in a processor

I'm writing a simulation of a (very slow and primitive) processor. For example: let's say the clock speed is a constant 1 hz. I assume this means that 1 instruction can/will be processed every second. Some instructions take longer than others. Adding 1 + 0 takes less time than 1 + 7. (The latter causes a ripple of carry bits which takes...

Eclipse RCP on OSX - How to stop logging to syslog?

Our RCP application logs a fair bit, but only INFO and above are output to console. On windows/linux this is ok, but on OSX all logging seems to be passed to syslogd, which then decides what to log and not log, this means handling thousands and thousands of FINEST log messages, this makes syslogd use 140% cpu and gobble up memory. After...