Questions tagged [cpu-speed]

CPU speed determines how fast your process can perform tasks. CPU speeds matter less than they did in the past, thanks to the advent of multi-core processors.

203 questions
1
vote
1 answer

Is there any way to estimate computing time of gpu by using cpu?

I made my simple deep learning model. I have only cpu on my desktop now. BUT I have to estimate the training time of the model in gpu setting. I don't need exactly accurate training time estimation. Approximate time is okay for me. Is there any…
주은혜
  • 97
  • 1
  • 9
1
vote
2 answers

Number of instructions used ARMv7

I am trying to figure out how many CPU cycles will be used to execute the delay function delay: subs r0, #1 bmi end_delay b delay end_delay: bx lr I feel intuitively that 1 CPU cycle should be used for each instruction, so if we began with r0…
carbonj
  • 15
  • 4
1
vote
1 answer

maximum speed up achieved

If only 80% of the execution time of the application could run in parallel, what is the maximum speedup you could achieve? I did something like this, 1-.8 = .2 overall speedup = 1/0.2 = 5 I am not sure weather I attempted right or wrong? Please…
Muhammad Usman
  • 115
  • 1
  • 2
  • 11
1
vote
0 answers

RAPL-Temperature relationships

I am performing some thermal load tests on the Skylake processor, and am attempting to use RAPL MSRs as an early detection system for oncoming thermal spikes, instead of reading from "sensors" sysfs file. I have several questions. Consider this as…
chimp45
  • 67
  • 7
1
vote
1 answer

Is saving a large file into char array is correct?

I have a real-time project that have a heavy process on each line of some text file,what do you suggest for storing that text? what I do now, is to store all the text file in a char* variable, and then work with with that variable, instead of the…
Shaheen Zahedi
  • 1,216
  • 3
  • 15
  • 40
1
vote
4 answers

calculating how much two strings are similar?

I have a function that calculates the variance of the two given strings. Is there a faster method (or algorithm) to do such thing? Please keep in mind that every letter of my strings are all loaded with DNA, which means that these are one of the A…
Shaheen Zahedi
  • 1,216
  • 3
  • 15
  • 40
1
vote
1 answer

deleting 2D Linked List array, How to?

I have function like this for delete my 2 dimensional struct, but it is not too fast, i guess there is a much faster way to do this(Like memset or something), any idea would be appreciated;) void freeAlllistNode(LISTNODEPTR *sPtr[][10]) { …
Shaheen Zahedi
  • 1,216
  • 3
  • 15
  • 40
1
vote
1 answer

How to set and lock cpu freq in linux

I am working under linux and what I want to do is to lock cpu to a certain frequency, disable cpu automatic freq change. Could anyone indicate how to do it in driver or kernel ? Thanks.
roMoon
  • 339
  • 1
  • 5
  • 12
1
vote
1 answer

How to estimate time consumption of my sample code by order of magnitude

I write a piece of code to calculate PI using Monte Carlo method running on a 2013 mac book air with 1.7 GHz Intel Core i7 (Seems to be 4650U). When the loop count is 10^8 it took 2 ~ 3 second, and when the loop count is 10^9 it took about 25…
highsun16
  • 301
  • 3
  • 12
1
vote
2 answers

Java limit CPU when run tomcat?

I using server AWS EC2, install server tomcat 8, java 1.7 I using Munin and VisualVM remote tomcat for test speed. But in Munin CPU is good and in VisualVM CPU 90%-100%. I think maybe java limit CPU for tomcat. How I can increase CPU for…
minamino
  • 115
  • 1
  • 13
1
vote
1 answer

Preformance of waiting on a serial port read?

I have written a small COM Redirection and cloning python script that will take the input of a physical serial port, and then output them to a two virtual serial ports (one of which is a read-only). Problem is that I been noticing that using this…
needoriginalname
  • 703
  • 3
  • 9
  • 27
1
vote
1 answer

Has multithreading got any advantage over serial execution when all the instructions involved are of memory i/o

I have a server which creates a thread for each client's task. Every thread has the necessity of accessing the memory (DB). So, as the number of threads are increasing, the system performance is degrading and I suppose this is because of thrashing.…
Shashank
  • 297
  • 3
  • 13
1
vote
0 answers

Speedup in execution time using Amdahl's law

I have been given this problem in one of my assignments. I understand the principles of the process of speedup, execution time etc.. However, I feel that this question is incomplete. Is it true or can it be solved? If so can you please explain. A…
1
vote
1 answer

Equations and big numbers in programming

So if I have lets say 4 integers: int a = 50000 , int b = 5000000 , int c = 100 , int d = 500 Now what I wanted to run is b - a And c - d. my question is would b-a run slightly slower than c - d or they would be executed in the exact same speed…
1
vote
0 answers

Android is scaling CPU too low on screen OFF even with locks

I have an application which records audio via microphone and directly encodes the raw PCM-data to MP3 via LAME (configured for most performance), before sending that stream via HTTP. On my Galaxy S5, it's working flawlessly while screen is ON, but…
Martin L.
  • 3,006
  • 6
  • 36
  • 60