cpu

What is the Apple A4 processor

What is the apple A4 processor, used in the iPad, and how does it improve upon existing CPU design? ...

How do interrupts work on the Intel 8080?

How do interrupts work on the Intel 8080? I have searched Google and in Intel's official documentation (197X), and I've found only a little description about this. I need a detailed explanation about it, to emulate this CPU. ...

MySQL Query Issue - Count Query Uses lot of CPU

Hi, We have a table on mysql to log all visitors of our site. The structure is shown below CREATE TABLE `tblvisitors` ( `visitorURL` longtext, `visitorDatetime` datetime DEFAULT NULL, `visitorIP` varchar(255) DEFAULT NULL, `visitorID` int(10) NOT NULL AUTO_INCREMENT, `visitorUser` varchar(255) DEFAUL...

Invalidating the CPU's cache

When my program performs a load operation with acquire semantics/store operation with release semantics or perhaps a full-fence, it invalidates the CPU's cache. My question is this: which part of the cache is actually invalidated? only the cache-line that held the variable that I've used acquire/release? or perhaps the entire cache is in...

Unmeasurable CPU usage?

Hi Chaps, Im trying to monitor the CPU usage of a process I've been updating to do a bit more work. However reading the /proc/pid/stat file, the jiffie counts (of utime,stime, etc) of the process will not increase. (It is definately doing some work, I can see it with strace etc). The amount of work the process is doing is relatively ti...

Optimal CPU utilization thresholds

I have built software that I deploy on Windows 2003 server. The software runs as a service continuously and it's the only application on the Windows box of importance to me. Part of the time, it's retrieving data from the Internet, and part of the time it's doing some computations on that data. It's multi-threaded -- I use thread pool...

[Iphone] Is "create then release then re-create then release" better than "create then use twice then release" ?

Hey guys, Let's put you this in context ;) Suppose you have a tableview that you can refresh. Would you keep the activityAnimator in memory or re-create it every time you click on refresh ... ? I know this could sound pretty obvious, it seems pretty clear that in the first case you get to speed up your app and in the other case you ge...

Python: Reliably monitor current CPU usage

I'd like to monitor the current system-wide CPU usage on a Mac with Python. I've written some code that starts 'ps', and adds up all the values from the '%cpu' column. def psColumn(colName): """Get a column of ps output as a list""" ps = subprocess.Popen(["ps", "-A", "-o", colName], stdout=subprocess.PIPE) (stdout, stderr) = ps.commu...

How to fast get Hardware-ID in C#?

I need in my license Program use hardware id ,I tried use WMI,but it still slow . I need Cpu,HDD,Motherboard info. ...

How to optimize this js (now CPU is over 40% when the page is opened)

I have this piece of JavaScript on my page and it loads the CPU considerably. Is there any way to optimize the code? ( I'm using jQuery, so jQuery solutions will be fine ) function Particle() { this.particleContainerWidth = $('#particle-container').width() - 100; this.particleContainerHeight = $('#particle-conta...

Tomcat6 on Linux uses 100% CPU whenever ServerSocket is idle

Greetings I am running my webapp on Tomcat6 on Java6 on Ubuntu8.04. The main servlet of this app opens a ServerSocket, with the following simple code: ServerSocket serverSocket = new ServerSocket(6767); Socket xmlSocket = serverSocket.accept(); Of course this runs in a separate thread and with the necessary try-catch blocks....

Cache bandwidth per tick for modern CPUs

Hello What is a speed of cache accessing for modern CPUs? How many bytes can be read or written from memory every processor clock tick by Intel P4, Core2, Corei7, AMD? Please, answer with both theoretical (width of ld/sd unit with its throughput in uOPs/tick) and practical numbers (even memcpy speed tests, or STREAM benchmark), if any....

What does "Embedded" mean?

I notice that Core i3-330M is specified as "Embedded" while the Core i5-430 is not. What technically does "Embedded" mean? Here is where I see the speicfication: i3-330M: http://ark.intel.com/Product.aspx?id=47663 i5-430M: http://ark.intel.com/Product.aspx?id=43537 ...

Read then conditional write vs. write

Which is, on average, faster - check the value then, if needed, assign, or simply assign? Or, in C++ terms: bool b; if(b) b = false; or b = false; Assume that the if() condition is true with 50% probability. The answer will be, most likely, highly architecture dependent - please voice your low-level considerations. Writing alwa...

Flex AIR SwfLoader CPU Usage > 50% problem

I have an AIR application, I use SwfLoader to load another swf file to display in this app. The problem is the CPU Usage always takes over 50%, but it only takes 15% when the swf file runs in standalone mode. Does anyone meet this issue? Please give me some advices. Thanks a lot ...

Java Profiling on Linux

I have a fairly complex Java application that is utilizing a lot of CPU, and would like to know if there is any recommendation on a profile tool that I could use to determine the cause of the CPU utilization. My goal is to pinpoint the location in the code where it is using most of the CPU time. ...

Is CPU execution time different in Loop with Sleep() and Long Loops without sleep(), with both having the same total running time?

Hello, I have a loop that runs for approx. 25 minutes i.e 1500 seconds. [100 loops with sleep(15)] The execution time for the statements inside loop is very less. My scripts are hosted on GoDaddy. I am sure that they are having some kind of limit on execution time. My question is, are they concerned with "the total CPU execution tim...

Getting CPU temperature using Python?

How do I retrieve the temperature of my CPU using Python? (Assuming I'm on Linux) ...

What are good/great books on Logic Design ?

I want a couple good books that cover the subject of logic design, making computer circuits. There seems to be a lot of expensive books on logic design but it is unclear which ones are good. ...

Performance of std::pow - cache misses???

I've been trying to optimize a numeric program of mine, and have run into something of a mystery. I'm looping over code that performs thousands of floating point operations of which 1 call to pow - nevertheless, that call takes 5% of the time... That's not necessarily a critical issue, but it is odd, so I'd like to understand what's ha...