cpu

How many words can be in the address space?

心已入冬 提交于 2019-12-12 06:40:09
问题 Here is the problem I am working on The Problem: A high speed workstation has 64 bit words and 64 bit addresses with address resolution at the byte level. How many words can in be in the address space of the workstation? I defined the different terms in the problem Word Size - Processor natural unit of data. The word size determines the amount of information that can be processed in one go Byte Level Addressing - Hardware architectures that support accessing individual bytes within a word 64

Detecting AES-NI CPU instructions

馋奶兔 提交于 2019-12-12 05:38:10
问题 Recent Intel and AMD CPUs support specific AES instructions that increase the performance of encryption and decryption. Is it possible to to detect when these instructions are called? For example by writing a kernel module that monitors the instructions that are sent to the CPU? Or is the kernel still to high-level? 回答1: My understanding is that instructions like AESENC require no special privileges, so you won't be able to trap them with one of the usual fault handlers even in the kernel.

Troubleshoot High CPU Usage on Windows Server

本小妞迷上赌 提交于 2019-12-12 05:17:16
问题 We have J2EE based web application. Intermittently we are facing high CPU usage (80-90%) on our production environment. We are unable to replicate it on our QA environment. Production Environment: Windows 2012 Server (64 bit), JDK 1.8 (64 bit) For troubleshooting we have taken thread dump. It shows total 215 threads. 111 threads are in WAITING status 34 threads are in RUNNABLE status 67 threads are in TIMED_WAITING status 3 threads are in BLOCKED status How can we find which threads are

CPU and Memory Cap for an AppDomain

故事扮演 提交于 2019-12-12 03:17:27
问题 I want to host an exe in an appdomain and assign a CPU and Memory cap to it so that it does not use more than the assigned processing power. Is this possible to do and how? 回答1: You can't cap the maximum memory directly, as far as I know. However, from .NET 4 on, the memory currently allocated by an AppDomain is available in the AppDomain.MonitoringSurvivedMemorySize property if AppDomain.MonitoringIsEnabled is set to true . You can spin up a watchdog thread to monitor allocations. 回答2: Looks

Can 2 threads run concurrently? Or just 1? (given the possibility of hyperthreading)

狂风中的少年 提交于 2019-12-12 02:59:47
问题 The following is the output of cat /etc/cpuinfo and does not state whether the core is hyperthreaded or not. How do I find out whether or not two threads can potentially run concurrently? processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU E5507 @ 2.27GHz stepping : 5 microcode : 0x11 cpu MHz : 2266.750 cache size : 4096 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 6 fpu : yes fpu_exception : yes cpuid

How does a cache miss EXACTLY occur?

自作多情 提交于 2019-12-12 02:52:08
问题 I'm trying to understand how exactly a cache miss occurs. So far this is the way I understand it: CPU requests for address x, searches its own (L1/L2) cache for it. If it is not there then it's a cache miss. Now what is missing here is how exactly does it find out that the information is not available in cache? What information do cache lines reserve? So far I know a cache line should contain this information: Address of the information, Data within that address. Having this information CPU

UIView animation using 90%CPU

人盡茶涼 提交于 2019-12-12 02:48:47
问题 hi i have animation which loop but are using 90% of my iphone CPU processing and are heating up the phone. what have i done wrong ? anybody can give me some advise ? thanks -(void)nextAnimation:(float)previousWidth { //picture loop imageViewTop.image = imageViewBottom.image; imageViewBottom.image = [imageArray objectAtIndex:[imageArray count] - 1]; [imageArray insertObject:imageViewBottom.image atIndex:0]; [imageArray removeLastObject]; imageViewTop.alpha = 1.0; imageViewBottom.alpha = 0.0;

Standard way of Tracking/Calculating CPU and IO usage of process

帅比萌擦擦* 提交于 2019-12-12 02:42:44
问题 I have been looking for standard way of calculating CPU and I/O usage of running a process. I was looking into following options. Running a Windows program and detect when it ends with C++ How does this code calculate the number of CPU cycles elapsed? http://www.codeproject.com/KB/threads/Get_CPU_Usage.aspx I am not able to get the last one working. I need these figures. usr = userTime - last_userTime; ker = kernelTime - last_kernelTime; idl = idleTime - last_idleTime; I am primarily looking

Javascript Abort POST Request on Retry/Refresh (HIGH CPU Usage)

狂风中的少年 提交于 2019-12-12 02:38:22
问题 Recently my Apache server's CPU has been at 100% (all day, that is). I think I have found my issue. On a page, a user has the ability to click a button and send a POST request to a PHP file on my server. Sometimes the PHP file takes a LONG (and I mean VERY long) time to respond or sometimes does not respond at all: function buttonFunction() { $.post("http://ipaddress/core/file.php",{username:username, password:pword, coins:coins}, function(data) { // Stuff }); } Hypothesis 1: I believe that