cpu

which size of struct member alignment in VC bring performance benefit?

does struct member alignment in VC bring performance benefit? if it is what is the best performance implication by using this and which size is best for current cpu architecture (x86_64, SSE2+, ..) ...

Accessing CPU temperature in python

I need an example code for accessing CPU temperature in python. I'm running windows 7, BTW. ...

"list index out of range"

Below I have the following code that is supposed to get the CPU temperature. import wmi w = wmi.WMI() print w.Win32_TemperatureProbe()[0].CurrentReading When I run it I get the following warning however: Traceback (most recent call last): File "<string>", line 244, in run_nodebug File "<module1>", line 3, in <module> IndexError:...

maximize load but don't bring it to a crawl

I have a shell script that runs very cpu intensive programs. FFMPEG,ffmpeg2theora,etc. and I want to be able to run them but not choke the server. Is there something I can do to make sure the running programs are running as fast as possible but not hurting the server? Like a priority system...if something else comes along that needs it ...

NetBeans 6.9 and javaw.exe uses > 50% of CPU

Hi, When i work with NetBeans 6.9 for PHP the javaw.exe is occupying more then 50% of CPU and about 450mb ram (ram is not really the problem) but CPU tend to overheat. I had jdk6.5 for 64bit sys and now updated to latest jdk6.21 but it is the same, the CPU is always near 100% is there a solution to this high requirements of javaw.ex...

How to access directly to VGA

Hi guys. As most of you know CPUs are not well designed to do floating point calculation in contrast to GPUs. I am wondering how to use GPU's power without any abstraction layer or driver. Can I program for a GPU using assembly, C, C++ language (I mean how?). Although assembly seems to help me access the gpu directly, C/C++ are likely t...

Two loop bodies or one (result identical)

I have long wondered what is more efficient with regards to making better use of CPU caches (which are known to benefit from locality of reference) - two loops each iterating over the same mathematical set of numbers, each with a different loop body, or having one loop that "concatenates" the two bodies into one, and thus accomplishes id...

x86 LOCK question on multi-core CPUs

Is it true that the x86 ASM "LOCK" command prefix causes all cores to freeze while the instruction following "LOCK" is being executed? I read this in a blog post and it doesn't make sense. I can't find anything that indicates if this is true or not. ...

CentOS CPU usage

Is there a way to get CPU usage in CentOS? I need to parse this information and graph it from a Perl script, so it should preferably be a simple tool that prints out one singular output. ...

Do RFID tags have a processor?

Do RFID tags have a "real" processor capable of simple computations? If so, what is the processing power of nowadays RFID processors? ...

Implement CPU extensions in a kernel module

Hi all, I'm looking for information relating to implementing certain CPU extensions in a kernel module. I've found something related: http://www.mirrors.docunext.com/lxr/http/source/arch/mips/kernel/unaligned.c in fact, it's the only source code that I can find that is even close. Basically, I have a binary only shared object built wit...

Gigaflops of a processor

I discovered my computer has NVIDIA CUDA Technology and I want measure the power of processing, in CPU and GPU. Instead of searching for a program to do this, I want have a deeper understanding of how it works. What kind of code (C/C++) I need? ...

Why "netbook OSs" just run on netbooks?

What are the differences between a Netbook and Notebook? İs it CPU architecture? What are differences between a netbook CPU architecture and notebook CPU architecture? ...

What is the interface that change the cpu frequency and the core voltage on the windows platform?

I want to find the interface supplied by windows to change the CPU frequency and core voltage. Thanks! ...

Erlang - Compatible CPU's / Servers

Possible Duplicate: Does Erlang work on any non-x86 processors? Im having trouble finding a list of compatible CPU's for erlang. I have read its somewhere on the erlang site.. not an easy find so far. Besides maybe a link does anyone recommend a certain server? I am looking to run on as many cores as possible An Intel Quad...

AS3 CPU Performance with +100 MovieClip copies

I have a movieclip wich has a simple movement of a simple shape. This movieclip is copied many times to create a graphical effect. As the number of copies, or the complexity of the movieclip increases, CPU usage goes up. As from 90 copies, when I keep moving the mouse over the swf movie in a circle, playback stops (hangs). When the mous...

c++ high memory and cpu

ok well i have a simple game that uses really high of memory and cpu. cpu goes over 44% and memory goes over 5000. here is my code Code how to fix this? EDIT memory: 5000 bytes. cpu: 44% on i5 the program get slower by the time it runs. ...

Time each CPU core spends in C0 power state

The title says it all. Any help figuring out how to do this would be great: How much time each CPU core spent in the C0 power state over the past second. This is for a mac app so Objective-C, cocoa and c are needed. Thank you! ...

2 basic computer questions

Question 1: Where exactly does the internal register and internal cache exist? I understand that when a program is loaded into main memory it contains a text section, a stack, a heap and so on. However is the register located in a fixed area of main memory, or is it physically on the CPU and doesn't reside in main memory? Does this app...

how to get cpu usage in Qt

I have a main server and 4 computers connected. How can I learn which computer use how much cpu and disk. I write code Qt and c++ Thans a lot. ...