High load average but low CPU usage

January 17th, 2010

One of my Debian servers had its load average pegged at 3.0 but top didn’t show anything using a lot of CPU. A little Google research revealed this approach that solved things for me:

top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'

top - 11:53:48 up 5 days, 18:47,  1 user,  load average: 3.00, 3.00, 3.00
Tasks: 132 total,   1 running, 131 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us, 12.3%sy,  3.8%ni, 83.3%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2075620k total,  1773432k used,   302188k free,   395648k buffers
Swap:  2650684k total,      716k used,  2649968k free,  1165208k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 8548 root      20   0  2296  684  576 D    0  0.0   0:00.00 find
 8675 root      20   0  2296  684  576 D    0  0.0   0:00.00 find
32070 root      20   0  2296  688  576 D    0  0.0   0:00.00 find
Total status D: 3
tempe:~# killall -9 find

After that, the load average immediately began dropping back to normal.

A Firefox search engine plugin

December 14th, 2009

If, like me, you often find yourself searching for judicial opinions online, particularly to freely-available complete versions, and especially to Federal Circuit Court and Supreme Court opinions, then you’ve probably encountered the opinions at resource.org. I particularly like to link to these versions on my syllabi, because the paragraphs are numbered and then I can specify for students precisely which parts to read, in cases where we aren’t reading the entire opinion.

I just made such searches a lot easier for myself by creating this Firefox search engine plugin that searches resource.org via Google.

I typically know the citation or party name that I’m looking for, and so this search engine plugin puts your terms in quotation marks automatically so that Google searches for exactly that search phrase on resource.org.

In using this plugin so far, I get exactly the opinion I am looking for as the first link far more often than I used to when just using Google. Try it for yourself.

links for 2009-12-13

December 13th, 2009

links for 2009-12-10

December 10th, 2009

Installing a Rich Text Editor in Drupal

November 23rd, 2009

This was harder than it should have been as the instructions could be clearer that two separate downloads are required. I’ve summarized here:

I assume you have ssh or command line access to your host. If not, you could accomplish the same thing using ftp, but you’ll have to pay attention to what directory you upload into:

1. Install Drupal 6.x
2. Download the Drupal WYSIWYG part of FCKeditor from http://drupal.org/project/fckeditor
3. Extract that in sites/all/modules (you may have to create the modules dir) with tar -zvxf fckeditor-6.x-1.4.tar.gz
4. cd to sites/all/modules/fckeditor
5. Download the FCKeditor part of FCKeditor: http://ckeditor.com/download
6. Extract that in sites/all/modules/fckeditor/fckeditor [Yes, seriously.] with tar -zvxf FCKeditor_2.6.5.tar.gz
7. Go enable the FCKeditor module in the drupal admin section, it’ll be down below all the core modules in its own section.

Rebuilding Software RAID Array on Debian

October 19th, 2009

I don’t know why I always forget this command, or why it is so hard to discern from the man page / –help information. I just had my drives in an existing RAID array get out of sync and needed to rebuild the one that was down. This did the trick:

mdadm /dev/md0 -a /dev/sdb1

This is on a software RAID array called /dev/md0 made up of /dev/sda1 and /dev/sdb1.

CD Baby’s Shipment Confirmation Email

October 7th, 2009

CD Baby just sent me the following shipment confirmation email. It’s witty enough that I’m willing to give them (and my friend’s great CD!) a free plug here. Companies that write emails like this are in short supply.

Brian-

Thanks for your order with CD Baby!

USPS

(1) David Harris: St. Bartholomew and The Frail Stag

Your CD has been gently taken from our CD Baby shelves with sterilized contamination-free gloves and placed onto a satin pillow.

A team of 50 employees inspected your CD and polished it to make sure it was in the best possible condition before mailing.

Our packing specialist from Japan lit a candle and a hush fell over the crowd as he put your CD into the finest gold-lined box that money can buy.

We all had a wonderful celebration afterwards and the whole party marched down the street to the post office where the entire town of Portland waved “Bon Voyage!” to your package, on its way to you, in our private CD Baby jet on this day, October 7, 2009.

We hope you had a wonderful time shopping at CD Baby. In commemoration, we have placed your picture on our wall as “Customer of the Year.” We’re all exhausted but can’t wait for you to come back to CDBABY.COM!!

Thank you, thank you, thank you!
Sigh…

We miss you already. We’ll be right here at http://cdbaby.com/, patiently awaiting your return.

CD Baby
The little store with the best new independent music.
http://cdbaby.com cdbaby@cdbaby.com (503)595-3000

Coverage of Cyberlawcases.com by Berkeley

September 3rd, 2009

Nice coverage of our new blog, cyberlawcases.com, by Berkeley, though I don’t think I would have chosen such a large photo of myself.

New Cyberlaw Group Blog

August 31st, 2009

Today, Jason Schultz, Aaron Perzanowski, Joe Gratz, and I launched our new Cyberlaw Cases blog. You can read about it there, but please click on the Top 10 Pending Cyberlaw Cases chart. That thing took me forever…

The 1870 Patent and Copyright Act

July 6th, 2009

Primary Sources on Copyright (1450-1900) has some great resources, but when I want to look at a multi-page pdf I always get frustrated if there is not a “download the whole pdf” option and I have to flip through it page by page online. So, here is An Act to revise, consolidate, and amend the Statutes relating to Patents and Copyrights (Jul. 8, 1870) as a single 20-page pdf.