Moazam Rajas Sun hosted weblog garbage collection II

Tuesday Jan 17, 2006

This is one of the coolest and most practical things I've seen in a while. DTrace hooks for the Apache webserver. 'Matty' (Ryan Matteson) over at daemons.net wrote this up and posted it on the OpenSolaris forums a little while ago. Matty includes the full source code for mod_dtrace here.

Some examples from mod_dtrace,

View HTTP Requests By Method:

  $ viewreqs.pl -d 5
  Timestamp GETs POSTs HEADs TRACEs
  02:05:59  0    0     0     0
  02:06:04  12   0     0     0
  02:06:09  15   0     0     0
  02:06:14  59   0     0     0
  02:06:19  68   0     0     0
  02:06:24  70   0     0     0


  View HTTP Requests By HTTPD Process:

  $ viewreqsbyproc.d
  Execname  Process  Requests Processed
  httpd     19103       16
  httpd     19152       17
  httpd     19101       17
  httpd     19102       19
  httpd     19104       20
  httpd     19105       20

Reading some of the articles from Matty, it sounds like he's one of those super-uber-sysadmins with amazing multi-OS skills.
I currently run my personal site via 1and1.com which charges me $70/month for a dedicated Linux server on which I have full root access. The service has been great and the connection speed is very good also, but I'm starting to look for greener pastures as I really would like to host my site on a Solaris machine instead. My reasoning is that I'm just more knowledgable with Solaris and would like to have the ability to run zones, dtrace scripts, etc.

I'm looking for a hosting provider who can offer me similar pricing as 1and1.com but uses Solaris (x86 is fine by me). I could even supply my own hardware if I had to, but the monthly bandwidth price has to be reasonable.

Friday Jan 13, 2006

After a day or so of hacking, I was finally able to get Solaris 10 U1 x86 to run on my new Fujitsu P7120D with fully fuctioning widescreen (1280x768) resolution and support for the Atheros Super AG wireless card. For those who are not familiar with this machine, the Fujitsu 7120D is a subcompact laptop with a crisp widescreen LCD, a built-in DVD drive, and excellent battery life.

The general steps for installation and configuration are as follows,

To install base OS
1. Boot and install from Solaris 10u1 DVD by selecting the 'Interactive Text (Console)' option.

To install wireless driver
1. Download and install the SUNWatheros package from the OpenSolaris ath page.
2. Follow instructions on the aforementioned OpenSolaris ath page except the 'wificonfig createprofile' section is incorrect and should be

wificonfig createprofile essid=ssid encryption=wep wepkey1=wepkey
To install native widescreen video driver
1. Download the frkit from OpenSolaris.
2. Install the 915resolution package from within frkit. Don't install the cardbus or wifi packages, they seem to break the SUNWatheros driver. I have to confirm if both are the cause of the break, or just one. More news later on this.
3. Run xorgconfig and select the i810 generic driver.
4. Within the xorgconfig program, set custom Horizontal screen specs to 30-65 and Vert to 30-60.
5. Uncomment the following two lines in /etc/X11/intel_vbios.conf

modeline="3c 1280 768 24"
export modeline
6. Edit your /etc/X11/xorg.conf and add a 'Modes "1280x768"' line within Section Screen, Subsection Display, for example,

Section "Screen"
.......
    Subsection "Display"
    Depth       16
    Modes      "1280x768"
    ViewPort   0 0
7. Reboot...

If you face problems with any of this, feel free to ping me and I'll try to help out as much as I can.
After a day or so of hacking, I was finally able to get Solaris 10 U1 x86 to run on my new Fujitsu P7120D with fully fuctioning widescreen (1280x768) resolution and support for the Atheros Super AG wireless card. The general steps are as follows,

To install base OS
1. Boot and install from Solaris 10u1 DVD by selecting the 'Interactive Text (Console)' option.

To install wireless driver
1. Download and install the SUNWatheros package from the OpenSolaris ath page.
2. Follow instructions on the aforementioned OpenSolaris ath page except the 'wificonfig createprofile' section is incorrect and should be

wificonfig createprofile essid=ssid encryption=wep wepkey1=wepkey
To install native widescreen video driver
1. Download the frkit from OpenSolaris.
2. Install the 915resolution package from within frkit. Don't install the cardbus or wifi packages, they seem to break the SUNWatheros driver. I have to confirm if both are the cause of the break, or just one. More news later on this.
3. Run xorgconfig and select the i810 generic driver.
4. Within the xorgconfig program, set custom Horizontal screen specs to 30-65 and Vert to 30-60.
5. Uncomment the following two lines in /etc/X11/intel_vbios.conf

modeline="3c 1280 768 24"
export modeline
6. Edit your /etc/X11/xorg.conf and add a 'Modes "1280x768"' line within Section Screen, Subsection Display, for example,

Section "Screen"
.......
    Subsection "Display"
    Depth       16
    Modes      "1280x768"
    ViewPort   0 0
7. Reboot...

If you face problems with any of this, feel free to ping me and I'll try to help out as much as I can.