cpu

What sort of acceleration does openCV use ? How can it process so fast ?

I've been using openCV quite a bit lately and I'm amazed at how fast it can process arrays. Is it using a special type of optimization or relying on special features of the CPU ? I'm on an Intel CPU btw. ...

usleep() php5 uses 40% of idle CPU

Hi guys I have a weird question, I have a cli php script runs on Centos 5.x which uses usleep (somtimes 1sec, sometimes 2sec, somtimes 100ms it depends) if there is some wait required, but what I have noticed its that once on usleep() it seems to use about 40% of idle CPU: Cpu(s): 5.3%us, 21.3%sy, 0.0%ni, 57.2%id, 0.0%wa, 0.0%hi, ...

New instruction sets in CPU

Every new generation of CPU introduces some sets of new instruction, ie.: MMX,3DNOW,SSE and so on. I've got few general questions about them: 1) If some program uses for example SSE instruction can it be run on CPU that doesn't support SSE? 2) If yes , does it mean that those instuction will be changed to some greater number of simpler ...

A programmatic way to discover the number of CPUs and spec for each CPU/Core in Ubuntu Karmic?

A programmatic way to discover the number of CPUs and spec for each CPU/Core in Ubuntu Karmic? Bash or C/C++, Python, Perl are fine. Thanks! ...

Task Manager: CPU usage history

I bougth recently a server with 2 x X5550, they are quad (4 cores each) total 8 cores If I check the task manager it shows in the CPU usage history 16 diagrams, Should't it be 8 cause I have 2 processors with quad? or the diagrams maybee shows the Threads of the CPU? ...

Measuring CPU clocks consumed by a process

Hi, I have written a program in C. Its a program created as result of a research. I want to compute exact CPU cycles which program consumes. Exact number of cycles. Any idea how can I find that? ...

Looking for a commercial or free library similar to Hyperic SIGAR

Anybody knows a Java library similar to Hyperic SIGAR?. I'm interested mostly in process monitoring & CPU usage. ...

How is external memory, internal memory, and cache organized?

Consider a system as follows: a hardware board having say ARM Cortex-A8 and Neon Vector coprocessor, and Embedded Linux OS running on Cortex-A8. On this environment, if some application - say, a video decoder - is executing, then: How is it decided which buffers would be in external memory, which ones would be allocated in internal SRA...

Cpu schedule, removing thread from queue

I'm implementing now CPU schedule algorithms FCFS, SJF and Round Robin. Could somebody tell when process is removed from queue (FCFS,SJF,RR)? I mean, first CPU execute thread and after executing remove from queue or the other way around? ...

Processes sharing cores on Ubuntu system

My coworkers and I share an 8-core server running Ubuntu for our batch processes. I tend to run 4 processes at a time, each of which consumes 100% CPU per core when nothing else is running. When a coworker runs his processes (typically about 4 at a time), his also get 100% per. However, when both of us run ours (he always goes first),...

C linux equivalent of windows QueryPerformanceCounter

Is there an equivalent C function in linux for reading the CPU counter and its frequency? I am looking for something similair to QueryPerformanceCounter function that reads the 64bit counter in modern CPU's ...

Adobe flash: How to determine users CPU characteristics?

Adobe flash: How to determine users CPU characteristics? (its mhz, its current ocupation) I need to know how fast is users computer now, and I have only 150 ms for it. How to do such thing in actionscript? ...

Is it better to use HTML5 & Canvas or CSS3(background image) & jquery to make a slideshow?

I'm making a slideshow and the images won't be static, they'll be pulled in dynamically through an array and finally it will look like this: What i'm wondering is, what is more CPU friendly, CSS3 & jQuery making transitions fade simply by changing the CSS class of the div that will fill the screen, or, Canvas with drawn on it refre...

Huge CPU usage difference for the same .NET 4 program on different machines

I have two servers, one running core i7 920 (8 logic CPUs at 2.8Ghz), the other running Xeon X3430 (4 logic CPUs at 2.4Ghz). For the same .NET 4 application, CPU usage on the first machine is 6%; on the second machine it is 50%! I wonder what makes this huge difference. And how can I diagnose the cause of the issue? ...

Extremely CPU Intensive Alarm Clock

EDIT: I would like to thank you all for the swift replies ^^ Sleep() works as intended and my CPU is not being viciously devoured by this program anymore! I will keep this question as is, but to let everybody know that the CPU problem has been answered expediently and professionally :D As an aside to the aside, I'll certainly make sure...

PHP5 getrusage() returning incorrect information?

I'm trying to determine CPU usage of my PHP scripts. I just found this article which details how to find system and user CPU usage time (Section 4). However, when I tried out the examples, I received completely different results. The first example: sleep(3); $data = getrusage(); echo "User time: ". ($data['ru_utime.tv_sec'] + ...

Cycles/byte calculations

Hi ! In Crypto communities it is common to measure algorithm performance in cycles/byte. My question is, which parameters in the CPU architecture are affecting this number? Except the clockspeed ofcourse :) ...

Why don't stacks grow upwards (for security)?

This is related to the question 'Why do stacks typically grow downwards?', but more from a security point of view. I'm generally referring to x86. It strikes me as odd that the stack would grow downwards, when buffers are usually written to upwards in memory. For example a typical C++ string has its end at a higher memory address than...

Monitor Process(es), Shutdown if over a threshold CPU Usage

Hi, I am new to WMI and System.Diagnostics etc. I need to write something (a service?) that monitors several processes for CPU Usage %. When I am in Task Manager, the CPU column is the one that I want (i.e. the percentage). I need to be able to run this on a remote machine, and have it check the CPU Usage every second or so. When the us...

LINQ to SQL : Too much CPU Usage: What happens when there are multiple users.

I am using LINQ to SQL and seeing my CPU Usage sky rocketting. See below screenshot. I have three questions What can I do to reduce this CPU Usage. I have done profiling and basically removed everything. Will making every LINQ to SQL statement into a compiled query help? I also find that even with compiled queries simple statements li...