nuxx.net
Making, baking, and (un-)breaking things in Southeast Michigan.

Category computers

Pagefile on OS X

[Cross posting this from because of smarter people here. Please delete if inappropriate.]

Does anyone here have any pointers to good info on OS X’s pagefile? It appears that it is all handled by dynamic pager (8), but I’m having a hard time finding info beyond simply moving the pagefile to another disk.

The reason I’m asking is because, in my experience, one can greatly improve paging performance by allocating pagefile space on multiple spindles. As I’ve got a pair of disks in my G5, that’s exactly what I’d like to do.

As it is, it looks like dynamic_pager can only take one argument for the base filename for the pagefile. Hopefully this isn’t the case…

computersmoved from livejournal

512MB? Bah!

[Cross posted to and …]

I know this rant will probably get me flamed for being somewhat off topic, but hopefully some folks will find it useful:

512MB of RAM is not enough for OS X!

I suppose I should have know this and planned accordingly, but I didn’t and now I’m suffering the consequences.

See, I normally have 1.5GB in this machine, but when running the Apple Hardware Test the other day in order to determine if my Airport Extreme card was bad, one of my 512MB DIMMs tested bad. No problem, it’s a Crucial part, so it’s got a lifetime warranty. Well, I pulled the RAM to ship it back to Crucial, and now this machine is borderline unusable. I cannot wait for the RAM too get back here… Hell, maybe I’ll order another GB in the mean time, just so I can have something usable!

(Note: I could not do a cross ship as I purchased the RAM through a vendor. Crucial still handles the warranty. The machine is a dual 2.0Ghz PowerMac G5, and I installed the extra RAM after unboxing before it was ever powered on, so I hadn’t ever realized low memory would be this painful.)

acquired thingscomputersmoved from livejournal

PC Needed

Can someone help me find a particular PC? I’m looking for an older machine, so long as the CPU is passively cooled. Yeah, I mean one of those giant heatsink things just hanging out there…

I also want to stick a dead quiet hard disk in there and finally have a silent firewall. Mine’s getting old and noisy.

acquired thingscomputersmoved from livejournal

rez.nuxx.net

Just FYI, the websites on rez.nuxx.net will be inaccessible for a brief period of time tomorrow. I hope for this to be in the morning, and for under a minute in time. In short, I have to replace the version of cronolog I installed earlier today. The current version (from ports) defaults to writing all files as root, which isn’t good. Fortunately this patch from 2002 seems to have it flop to whatever UID/GID one specifies before writing the files.

I want to move to this version… This should be a quick, seamless switch. Add the appropriate flags to the Apache config files, stop httpd, replace the binary, set appropriate permissions on existing files so they can be appended, start httpd, done.

I’m just paranoid, and I wanted to give people a heads-up in case things seem slightly amiss for a few minutes tomorrow.

Oh, and yeah, the whole new way of rotating logs seems to work great. Parsing all logs generated since ~5pm today took under a minute.

computersmoved from livejournalnuxx.net

More stuffs…


Click for more…

Well, as hoped, I got the wort for the Random Vanilla Stout made yesterday. It’s now sitting down in the basement fermenting away. It seems to be fermenting quite quickly, which I’m attributing to the quart starter I’d made along with the addition of a good quantity of yeast energizer and yeast nutrient (2 tsp and 4 tsp, respectively). It’s not fermenting as foamy / vigorously as last time, but it’s still getting on pretty well.

I missed the target gravity of the beer, ending up at 1.062, which was six points off from the target of 1.068. Hopefully that’s not too bad, though. It should still end up being around 6% ABV if all goes well.

But, yeah… Click that image there up top and you’ll be able to see more peeektures.

—

In case you haven’t tried it before, Google Desktop is freakin’ sweet. I’ve used it before on my work laptop, but I’d run into some problems with it and my antivirus software.

Well, with the v2.0 release this morning, I dove in and fixed those problems. I’d forgotten how much I like it… If you are someone who uses Outlook for your daily mail uses, it makes searching large archives really, really easy.

See, I personally think Outlook/Exchange works really well — better than any other shared email / calendaring system currently available — but it’s search sucks. Hard. And lots. Well, thanks to Google Desktop I can actually find old stuff in my email. Well, as soon as it finishes indexing…. (I’ve got a lot of work email.)

Now, if only Spotlight worked so well.

—

I don’t know why it took me so long, but I finally ‘get’ the Flying Spaghetti Monster (Wikipedia Link). It’s just… yeah. A wonderful counterpoint to bible girl at work. I even acquired this piece of wallpaper which I’m currently using on my work laptop (except with the genitals blurred) and made this much more minimal one. Both are available at 1024 x 768.

beercomputersmoved from livejournal

Apache Logfile Analysis…

(First, this is a test post from Semagic behind the work firewall…)

Okay, so I think I’ve got a good way of processing the logs from websites that I host. I’m going to document how I do it here for myself and anyone else who might happen to care.

First off, I’m using Apache 2.0, cronolog to handle log files (essentially rotation… but not), and Webalizer to parse the files and provide reports.

First, each Apache vhost is logged via a pipe to cronolog so that it makes subdirectories for Year and Month, naming the file with Year-Month-Day-access.log. For example, today’s file as logged below would be /var/data/wwwlogs/default/2005/08/2005-08-22-access.log. This is done by CustomLog and ErrorLog lines for each vhost which are similar to this:

CustomLog “|/usr/local/sbin/cronolog /var/data/wwwlogs/default/%Y/%m/%Y-%m-%d-access.log” combined
ErrorLog “|/usr/local/sbin/cronolog /var/data/wwwlogs/default/%Y/%m/%Y-%m-%d-errors.log”

That alone will make it easier to look through logfiles, should the need arise.

Next, a script is set to run once per night which first runs Webazolver on all the log files in order to build a cache of resolved hostnames and then runs Webalizer itself, using that cache. File processing is done with the -p argument in order to provide incremental parsing. As each log file should only be parsed once, the end result should be that each day’s set of data is added to the collective reports.

Here is the script which I call run_webalizer.sh and will run via cron each morning (around 12:30am local time, I’d imagine):

#!/bin/sh

# First, run webazolver to resolve all IPs
for i in /var/data/wwwlogs/*
do CURLOG=`date -v-1d +”$i/%Y/%m/%Y-%m-%d-access.log”`
/usr/local/bin/webazolver -Q -p -N 10 -D /var/db/webalizer_cache.db $CURLOG
done

# Run webalizer with all config files…
for i in /var/data/wwwlogs/*
do VHOST=`echo $i | cut -f5 -d\/`
CURLOG=`date -v-1d +”$i/%Y/%m/%Y-%m-%d-access.log”`
/usr/local/bin/webalizer -Q -p -n $VHOST -o /var/data/www/admin/webalizer/$VHOST -D /var/db/webalizer_cache.db -N 10 -r $VHOST\/ -s \*$VHOST $CURLOG
done

Well, hopefully some people will find this useful. It appears that it’ll work fine for now. I guess I’ll know for sure after a few days…

computersmoved from livejournal