Questions tagged [cpu]

The central processing unit or "processor" inside a computer which executes the instructions in a computer program.

The central processing unit (CPU) is the portion of a computer system that carries out the instructions of a computer program, and is the primary element carrying out the computer's functions. The central processing unit carries out each instruction of the program in sequence, to perform the basic arithmetical, logical, and input/output operations of the system. This term has been in use in the computer industry at least since the early 1960s. The form, design and implementation of CPUs have changed dramatically since the earliest examples, but their fundamental operation remains much the same.

Source: Wikipedia

4662 questions
2
votes
2 answers

Handling MMU translation faults in instruction stream - what happens to MMU?

This question is not specific to any CPU implementation, but CPU-specific answers are welcomed. I am currently implementing a full MMU-enabled CPU, and a simple issue arose. So, imagine the situation where a simple TLB miss happens caused by the…
2
votes
2 answers

If the number of fetched instructions per cycle is constant for out-of-order superscalar processor?

I would like to know if the number of fetched instructions per cycle for an out-of-order superscalar processor (let's assume an Intel i7 processor) is constant or it may change based on the cache miss rate or number of branch miss predictions of a…
precision
  • 293
  • 2
  • 15
2
votes
0 answers

Converting cycles per byte to bytes per second?

I find that many algorithms in cryptography show performance in cpb (cycles per byte) but I need the throughput in MB/s for some modern representative cpu. How can I convert from cpb to MB/s?
ArekBulski
  • 4,520
  • 4
  • 39
  • 61
2
votes
0 answers

Why does PTPCamera launch with Xcode?

For some odd reason every time I use Xcode on the latest El Capitan beta, my CPU starts spiking and I start hearing the fans in the computer. I decided to check Activity Monitor and realized PTPCamera was the culprit. Why is it being launched and…
cyril
  • 3,020
  • 6
  • 36
  • 61
2
votes
1 answer

How to record log file to mysql database

I have a log file that looks like this: 11:34:17 PM CPU %user %nice %system %iowait %steal %idle 11:39:17 PM all 0.09 0.00 0.07 0.09 0.00 99.75 11:44:17 PM all 0.04 0.00 0.03…
user1052448
  • 423
  • 2
  • 6
  • 19
2
votes
2 answers

Howto access WMI in SQL CLR Projects

I have a project i've been working on that requires me to retrieve the CPU ID of the computer to create a software licence and check it against the current licens registered. So, said and done i made 2 programs to make this happen. Then i need to…
Arto Uusikangas
  • 1,889
  • 5
  • 20
  • 33
2
votes
1 answer

Trying to stop RuntimeBroker.exe from using too much CPU via Batch file

So this is the deal, my brother is using a samsung laptop and he just upgraded to Windows 10, basically everything works much better than when he was using win7, but there is this process that it seems to have a big memory/CPU leak,…
2
votes
3 answers

My application's cpu usage in linux c

I want to find CPU usage of my own c application. I have already use ps -p pid -o %cpu,%mem,cmd It works fine in my Ubuntu 10.04 desktop. But not work in ARM architecture. It shows following error. ps: invalid option -- 'p' BusyBox v1.13.2…
Pankaj Vavadiya
  • 481
  • 7
  • 15
2
votes
1 answer

Loading register value to FPU stack

I'm currently working on an Assembly program that makes uses of both the CPU and FPU registers. My question concerns how it is possible to load a register value to the FPU stack (namely ecx). mov ecx, 10d ; Load 10 into ECX fldpi …
Zimon
  • 43
  • 6
2
votes
1 answer

How to simulate high CPU spike by an existing process

I am trying to find a way to make an existing (proprietary) linux process to consume high amount of CPU or make it so busy that it would stop responding to an other process but do not respawn. All I have at the moment is its pid in user space.…
user2809888
2
votes
4 answers

How to get number of cores on linux using c programming?

I know how to get the number of logical cores in C. sysconf(_SC_NPROCESSORS_CONF); This will return 4 on my i3 processor. But actually there are only 2 cores in an i3. How can I get physical core count?
Bharat jain
  • 419
  • 1
  • 9
  • 16
2
votes
0 answers

Save the result of SHOWPLAN_ALL in a table in SQL Server

I'm working on a scalar function that returns the estimated CPU usage on a SQL query without running it. For this I am using "SHOWPLAN_ALL" with the corresponding query in a Stored Procedure that generated dynamically (varying according to the query…
2
votes
5 answers

How does a CPU know if an address in RAM contains an integer, a pre-defined CPU instruction, or any other kind of data?

The reason this gets me confused is that all addresses hold a sequence of 1's and 0's. So how does the CPU differentiate, let's say, 00000100(integer) from 00000100(CPU instruction)?
VanHerp95
  • 45
  • 1
  • 4
2
votes
2 answers

Scattered-write speed versus scattered-read speed on modern Intel or AMD CPUs?

I'm thinking of optimizing a program via taking a linear array and writing each element to a arbitrary location (random-like from the perspective of the CPU) in another array. I am only doing simple writes and not reading the elements back. I…
bhouston
  • 955
  • 9
  • 14
2
votes
7 answers

is there any faster way to parse than by walk each byte?

is there any faster way to parse a text than by walk each byte of the text? I wonder if there is any special CPU (x86/x64) instruction for string operation that is used by string library, that somehow used to optimize the parsing routine. for…
uray
  • 11,254
  • 13
  • 54
  • 74
1 2 3
99
100