performance-tuning

oprofile unable to produce callgraph on ARM

This is actually an exact duplicate of this SO question which unfortunately does not have any answer. Is it possible to get a proper callgraph on ARM? I'm using oprofile 0.9.6 on an ARM926 which does not have performance counters so oprofile defaults to using the timer interrupt, I've set the --callgraph option and my app is compiled wit...

oprofile on Linux running in a virtual machine

I'm running a Linux Ubuntu 10.4 VM using VirtualBox. I'm trying to use oprofile to profile some application in the virtual machine. I've installed oprofile 0.9.6 but I cannot get it to work. When I try to start I get the following error: opcontrol --start /usr/local/bin/opcontrol: line 323: /usr/local/bin/ophelp: cannot execute binary f...

Asp.net application bottleneck identification: any suggestion?

Hi everybody, we are struggling to find out what could be the asp.net application performance decrease when we pass from our staging server to our production server and we would like to hear from you to help us find the bottleneck. Our staging server is a Intel Core 2 Quad CPU Q8200 (2.33 GHz) with 4GB of RAM, Windows Server 2003 R2 SP2...

How to avoid this stackoverflow exception?

Here is the situation, I am developing a binary search tree and in each node of the tree I intend to store the height of its own for further balancing the tree during avl tree formation. Previously I had an iterative approach to calculate the height of a node during balancing the tree like the following. (The following code belongs to a...

Performance issues in writing to large files?

I have been recently involved in handling the console logs for a server and I was wondering, out of curiosity, that is there a performance issue in writing to a large file as compared to small ones. For instance is it a good idea to keep the log file size small instead of letting them grow bulky, but I was not able to argue much in favo...

Animated gifs to signal that something is computing ? what are better alternatives ?

I have written some javascript whereas if you click on some divs those expand with some data. it takes a few seconds to populate the divs. So to avoid users getting frustrated I have done the following: if user clicks on div then add animated gif (moving bar,...) on div when data is ready event is triggered and animated gif is remov...

Best MySQL server configuration for performance?

Hi there, We have a database with 150 GB in size running MySQL 5.0.45 using MyIsam tables, there are big tables with over 5 GB in sizes, and 2GB in indices. The server config is: 8GB Dual Core 3.2GHz – hyper threading enabled Single raid 5 - SCSI 1gb nic 64 bit OS Here is our my.cnf file: [client] port = 3306 socket ...

Magento Performance Tuning

I have a server which is running more than 15 Magento stores, but they are not performing well, though I have a giant server for hosting them. My server configuration is - 8 CPU's Quad Core 24GB RAM and 2 TB HDD. My current page load is 1.6sec. I want it under 600ms. I have already installed APC, & eAccelerator and tuned Apache's parame...

Why is Django so Slow to Refresh Compared to a PHP Site?

This is a nagging issue that I've had with Django. Compared to a typical PHP site, it takes forever to refresh and see any changes I've made. During development I have Apache set to MaxRequestsPerChild 1 - this is fairly slow but is necessary because you end up viewing 'stale' code without it. Running the development server is far worse...

Rotating an array of bits in C

I've just started learning C and I'm having some problems with some code I want to write. Basically I have this struct that is a bit array, with the number of bits in the array, and a pointer to a buffer of chars, that stores the bits. My strategy for rotating the bit array is simply taking the number of rotations (mod the length to a...

Video conference/web chat using red5+flex4, performance issues on higher res. - how to pinpoint?

Hello. I have performance issues with my test web chat app - video playback is very slow on, around 1 frame per few seconds at 640x480, 15fps, quality: 90. Network usage is low (gigabit LAN), cpu's still have some headroom so it should be the software. Quick description of my setup: red5 0.9.1; simple flash broadcast and subscribe deri...

Performance issue- measuring network utilisation by one specific .Net application

Hi, We have moved our new asp.net application to production some time back on the client side. My client has a dedicted 8 mbps internet link for their whole corporate. Now client is complaining about slowness of their corporate internet due to our application. Now we have to give data to client about how much internet bandwidth is us...

A WAIT lock without a corresponding GRANT

I'm trying to investigate a performance problem at a client site. I've looked through the blocking data for the site and come up with a couple of SPIDs to investigate over a time period. I've then looked at the data from sys.syslockinfo and found that one of the problem SPIDs has a WAIT on an Intent Exclusive Table lock. I tried to find ...

SQL Database Design - Cache Tables?

Hi there, What's a common/best practice for database design when it comes to improving performance on count(1) queries? (Im currently using SQLite) I've normalized my data, it exists on multiple tables, and for simple things I want to do on a single table with a good index -- queries are acceptably quick for my purposes. eg: SELECT c...

IIS keep cache for the longest possible time

Is the any option so I can specify the time that objects remain in cache? I'm facing performance issues since after some minutes of idle the responses to requests take a while to process. I believe this is due to the cache being cleaned. ...

Is UDP under windows slow or is it virtual box

I'm developing a UDP client/server app. I've discovered with iperf that the UDP limit to my virtual machine is maxing out at around 100Mbit/s. I have a quad core CPU so I've given windows 2 cores. I'm not sure where to point the finger because TCP maxes out around 450Mbit/s which is better, but also a bit slow. Is this a limitation o...

My Lazy Flash Loader, Does it work correctly and behave accordingly?

Version 1: <style> embed { display: none; } </style> <script> var p1 = 0; var p2 = 1; var amount = 0; /* var counter = 0; */ $(window).scroll(function() { /*if(counter % 2 === 0){ */ if($(window).scrollTop() &gt;= amount){ amount+=500; if(!($(&#39;embed&#39;).slice(p1,p2).show())){ $(window).unbind(&quot;scroll&quot;); } ++p1;++p...

Query times out in SP, but runs fine in query analyzer

I seem to be facing a strange issue in SQL 2008. I have a query which runs fine and fast from query analyser, but times out if run through a stored procedure! The SP just starts with this query and has no other code before this query SELECT col1,col2 FROM TBL1 (nolock) INNER JOIN TBL2 (nolock) ON tbl1.col=LEFT(tbl2.col1,LEN(tbl2.col1)...

Possible Server Improvements?

Hi All, I need an expert insight to my problem. most of my experience is development so i dont have enough grasp regarding server issues or maintenance. Main problem is when traffic is high request to this SQL server times out. there are several applications connecting to this server, some are web some are windows app. i would like to k...

AppFabric Caching - Proper use of DataCacheFactory and DataCache

I am looking for the most performant way to arrange usage of the datacache and datacache factory for AppFabric caching calls, for between 400 and 700 cache gets per page load (and barely any puts). It seems that using a single static DataCacheFactory (or possibly a couple in a round-robin setup) is the way to go. Do I call GetCache("ca...