Mac Pro SpecsI think the image to the left will appeal to those geek fans who occasionally come here.

Yep. I am the proud owner of a new 8-core Mac Pro. I’ve only had it for a day now, but I’m already liking how fast it is. Once turned on, you get to the login screen in about 8 seconds, which is pretty bloody quick!

Mac Pro CPUsThanks to Apples Migration Assitant I had my user account, settings, applications, documents and files on to the Mac Pro in just over an hour.

The image to the right shows activity monitor looking at the eight cores individually. At the time I was processing some images in Aperture without even a dent to general running of the system. It’s still processing now and there’s no slow down or lag in general computer use.

I’ve still got to try fully loading the system up to see how it responds. I remember a couple of years ago I tried ripping a DVD to see what kind of time scale it took. I’m going to try a similar thing on here and then see how much faster it is. I’m sure I’ll boast about the results in a later post!


I use loadavg to monitor memory, CPU and network usage on my VPS, just so I can get the bigger picture about what’s happening when I’m not about. However, with the introduction of SLM on my VPS I found that loadavg was reporting incorrect memory usage.

Looking through the PHP code for loadavg, I could see the commands that were being issued to get memory usage. I found this one:

cat /proc/user_beancounters

This was the command that outputted the incorrect RAM usage. It was always about 40 - 100 megabytes out. Far too much for my liking!
Later on in the script, there’s a call to /proc/meminfo if the information from the above code can’t be ascertained. This seemed to be giving the correct information. I worked out that a simple switch would be able to tell the scripts if SLM was enabled and if so, go straight to the latter piece of code and get the correct RAM usage.

Here are the changes you need to make in order to get loadavg working on an SLM based VPS.

Open config.php and add this underneath “Size of kilobyte”

// If you're on a virtuozzo VPS, you may have SLM enabled.
$slm = TRUE;

Open logger.php and change

$beancounters = @shell_exec("/bin/beanc 2> /dev/null");
if (!$beancounters) {
	if (file_exists('/proc/user_beancounters')) {
		$beancounters = `cat /proc/user_beancounters 2> /dev/null`;
	}
	else {
		$ded=TRUE;
	}
}

To

if($slm == TRUE) {
	$ded = TRUE;
} else {
	$beancounters = @shell_exec("/bin/beanc 2> /dev/null");
	if (!$beancounters) {
		if (file_exists('/proc/user_beancounters')) {
			$beancounters = `cat /proc/user_beancounters 2> /dev/null`;
		}
		else {
			$ded=TRUE;
		}
	}
}

That’s you sorted. Re-upload the changed files, delete any existing logs and watch the difference in reported memory usage!

lotsa emails this way!