xfs
[Top] [All Lists]

Re: XFS mkfs/mount options

To: xfs@xxxxxxxxxxx
Subject: Re: XFS mkfs/mount options
From: Mark <musicman529@xxxxxxxxx>
Date: Tue, 17 Jun 2008 10:29:37 -0700 (PDT)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=1x95siqWzPS7I3mYhe5COl1BPfcNJx+PZvip1m+nJoa6WQRwYiePod3qXwvcc+g1Vm3sPqNTLdAIT0St43S2z0yCScjni/xc3SG1fg38itGtL4g8LlSz95WhHPcNGbh561oImQipxRfpgS6nmFtVTVqv+pB6xEBuyydHVtF/qlk=;
Reply-to: MusicMan529@xxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
--- On Tue, 6/17/08, Justin Piszcz <jpiszcz@xxxxxxxxxxxxxxx> wrote:

> From: Justin Piszcz <jpiszcz@xxxxxxxxxxxxxxx>
> Subject: Re: XFS mkfs/mount options
> To: "Mark" <musicman529@xxxxxxxxx>
> Cc: xfs@xxxxxxxxxxx
> Date: Tuesday, June 17, 2008, 5:27 AM
> 
> How did you tune your IRQ delivery?

Generically:

echo X > /proc/irq/[IRQ#]/smp_affinity

Where X is a 32-bit hexadecimal bitmask.

My real procedure:

First, I confirmed that both drives (sda and sdb) were triggering different 
interrupts on the same CPU. "cat /dev/sda > /dev/null &" for activity, followed 
by "cat /proc/interrupts" a few times. (NOT AS ROOT!) Interrupt 20 was 
triggering only on the second CPU. Killed the background task.

Repeat, using "cat /dev/sdb > /dev/null &". Interrupt 21, also routing to the 
second CPU. Bottleneck likely confirmed.

A short hunt in /usr/src/linux/Documentation turned up the smp_affinity files. 
Looking at /proc/irq/2[01]/smp_affinity shows that both contain "ffffffff", 
that is, use all available CPU's.

To force the matter, I typed:

echo 00000001 > /proc/irq/21/smp_affinity
echo 00000002 > /proc/irq/20/smp_affinity

I dropped privileges, then repeated the "cat /dev..." above for both drives, 
confirming that interrupts were indeed going to CPU0 for int21 and CPU1 for 
int20.

Running a homebrewed multi-threading benchmark showed a possible speed-up for 
writes on XFS. I have not yet run "official" tests (Bonnie++ or my own) but 
will do so tonight. I expect the loss from cache-bouncing to be canceled out by 
the win from concurrent I/O.

-- 
Mark

"What better place to find oneself than
 on the streets of one's home village?"
      --Capt. Jean-Luc Picard, "Family"


<Prev in Thread] Current Thread [Next in Thread>